@bobfrankston/msger 0.1.344 → 0.1.346
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 +3 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/msger-native/bin/msgernative.exe +0 -0
- package/package.json +1 -1
- package/shower.d.ts +1 -0
package/README.md
CHANGED
|
@@ -51,6 +51,9 @@ 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 (.md / .markdown auto-detected, no extension needed)
|
|
55
|
+
msger -url "file:///y:/notes/todo.md"
|
|
56
|
+
|
|
54
57
|
# Load URL with hash fragment
|
|
55
58
|
msger -url "https://example.com" -hash section1
|
|
56
59
|
msger -url "https://example.com" -hash "#intro"
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { showMessageBox, showService, ServiceHandle, MessageBoxOptions, MessageBoxResult, setAppName, setAppIcon } from "./shower.js";
|
|
1
|
+
export { showMessageBox, showMessageBoxEx, MessageBoxHandle, closeMessageBox, showService, ServiceHandle, MessageBoxOptions, MessageBoxResult, setAppName, setAppIcon } from "./shower.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Export showMessageBox and types for use as a library
|
|
2
|
-
export { showMessageBox, showService, ServiceHandle, setAppName, setAppIcon } from "./shower.js";
|
|
2
|
+
export { showMessageBox, showMessageBoxEx, MessageBoxHandle, closeMessageBox, showService, ServiceHandle, setAppName, setAppIcon } from "./shower.js";
|
|
3
3
|
// If run directly (e.g., `node .` or `node index.js`), run the CLI
|
|
4
4
|
// @ts-ignore - import.meta.main is available in Node.js 20+
|
|
5
5
|
if (import.meta.main) {
|
|
Binary file
|
package/package.json
CHANGED
package/shower.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface MessageBoxOptions {
|
|
|
15
15
|
html?: string; /** HTML content to display in the message box */
|
|
16
16
|
url?: string; /** URL to load external content (web URL or file path) */
|
|
17
17
|
hash?: string; /** Hash fragment to append to URL (requires url to be set). Leading # is optional. */
|
|
18
|
+
rawHtml?: boolean; /** When true with html, load HTML as-is (no msger template wrapper, no buttons). Used by mdview. */
|
|
18
19
|
size?: {
|
|
19
20
|
width: number; /** Window width */
|
|
20
21
|
height: number; /** Window height */
|