@bobfrankston/msger 0.1.346 → 0.1.348
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/README.md +13 -2
- package/msger-native/bin/msgernative.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,8 +51,11 @@ msger -html "<span style='color:red;background-color:yellow'>Alert!</span>"
|
|
|
51
51
|
msger -url "https://example.com"
|
|
52
52
|
msger -url "file:///path/to/page.html"
|
|
53
53
|
|
|
54
|
-
# Render a local markdown file (
|
|
55
|
-
|
|
54
|
+
# Render a local markdown file — use the mdview wrapper (msger doesn't auto-render .md)
|
|
55
|
+
mdview todo.md
|
|
56
|
+
|
|
57
|
+
# Display arbitrary HTML as a complete page (no template, no buttons) — used by mdview
|
|
58
|
+
msger -raw -html "<!doctype html><html>...</html>"
|
|
56
59
|
|
|
57
60
|
# Load URL with hash fragment
|
|
58
61
|
msger -url "https://example.com" -hash section1
|
|
@@ -258,6 +261,7 @@ Options:
|
|
|
258
261
|
-ontop, --ontop Keep window always on top
|
|
259
262
|
-detach, --detach Launch window independently (parent returns immediately)
|
|
260
263
|
-fullscreen, --fullscreen Start window in fullscreen mode (F11 to toggle, Escape to exit)
|
|
264
|
+
-raw, --raw With -html: load HTML as-is, no msger template/buttons (alias: -full)
|
|
261
265
|
-debug, --debug Return debug info (HTML, size, autoSize) in result
|
|
262
266
|
-v, -version, --version Show version number
|
|
263
267
|
-help, -?, --help Show help message
|
|
@@ -390,6 +394,7 @@ interface MessageBoxOptions {
|
|
|
390
394
|
timeout?: number; // Auto-close after N seconds
|
|
391
395
|
detach?: boolean; // Launch detached from parent process
|
|
392
396
|
fullscreen?: boolean; // Start window in fullscreen mode (F11 to toggle)
|
|
397
|
+
rawHtml?: boolean; // With html: load HTML as-is, no msger template/buttons (used by mdview). CLI: -raw
|
|
393
398
|
debug?: boolean; // Return debug info (HTML, size, autoSize) in result
|
|
394
399
|
}
|
|
395
400
|
```
|
|
@@ -404,6 +409,12 @@ interface MessageBoxResult {
|
|
|
404
409
|
closed?: boolean; // True if closed programmatically via handle.close()
|
|
405
410
|
dismissed?: boolean; // True if user pressed Escape
|
|
406
411
|
timeout?: boolean; // True if closed due to timeout
|
|
412
|
+
bounds?: { // Screen-relative window geometry at close (pixels). See msgcommon README.
|
|
413
|
+
x: number;
|
|
414
|
+
y: number;
|
|
415
|
+
width: number;
|
|
416
|
+
height: number;
|
|
417
|
+
};
|
|
407
418
|
debug?: { // Debug info (if debug option was true)
|
|
408
419
|
html: string; // Generated HTML content
|
|
409
420
|
width: number; // Window width
|
|
Binary file
|