@breinzhang/mivark 0.1.1 → 0.1.3

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 CHANGED
@@ -23,19 +23,19 @@
23
23
  ## Features
24
24
 
25
25
  - **Markdown Editing (Three Modes)**
26
- - Switch seamlessly between **Rich (WYSIWYG)**, **Reader**, and **Source** modes while preserving a single canonical Markdown text state.
27
- - Built-in **round-trip fidelity guard**: when a document contains syntax that rich editing cannot safely preserve, Mivark automatically keeps it in Source mode so your original bytes are never silently rewritten.
26
+ - Markdown opens in **Reader**. Switch to **Rich (WYSIWYG)**, **Source**, or **Split** to edit the same document.
27
+ - Built-in **round-trip fidelity guard**: when a document contains syntax that rich editing cannot safely preserve, the round-trip guard blocks rich editing so your original bytes are preserved.
28
28
  - Supports GitHub Flavored Markdown (GFM), Mermaid diagrams, slash commands, and light and dark themes.
29
29
  - **Safe saving**: manual save by default (optional auto-save in Settings), disk modification conflict detection before writing, and atomic file replacement.
30
30
  - **JSON Editor**
31
- - Edit and save text in the syntax-highlighted **Raw** view, with find and replace. Switch to **Visual** to read the current buffer as an expandable tree with indented fields and values.
32
- - Visual mode parses up to 8 MiB in a Web Worker and pages large branches. Files larger than 32 MiB open in a paged preview.
31
+ - JSON opens in **Raw** with syntax highlighting, find, and replace. Switch to **Form** to edit field names, types, and values inline or add and remove fields and array items. In **Raw**, **Restore Formatting** recovers the original layout after formatting.
32
+ - Form mode parses up to 8 MiB in a Web Worker and pages large branches. Files larger than 32 MiB open in a paged preview.
33
33
  - **Image Viewer**
34
34
  - View **PNG, JPEG, WebP, GIF, BMP, and SVG** files with zoom and fit-to-window controls.
35
35
  - **PDF Viewer (Read-Only)**
36
36
  - Read local PDFs up to 128 MiB with continuous scrolling, outline or thumbnail navigation, and zoom.
37
37
  - **Desktop Workflow**
38
- - Multi-tab workspace, folder explorer sidebar, drag-and-drop file opening, OS file associations, and single-instance window focus.
38
+ - Multi-tab workspace, folder explorer, and **Projects** on the start page for frequently used folders. The app bundles Geist and Geist Mono for offline use.
39
39
 
40
40
  ## Security & Privacy
41
41
 
@@ -65,14 +65,16 @@ If published to npm under a maintainer scope, you can install the precompiled de
65
65
  npm install -g @breinzhang/mivark
66
66
  mivark --version
67
67
  mivark /path/to/README.md
68
+ mivark /path/to/project
68
69
  ```
69
70
 
70
71
  ### 3. Homebrew Cask (macOS)
71
72
 
72
- If published to a Homebrew Tap:
73
+ Install via the shared Homebrew Tap ([`breinzhang/homebrew-apps`](https://github.com/breinzhang/homebrew-apps)):
73
74
 
74
75
  ```sh
75
- brew install --cask breinzhang/mivark/mivark
76
+ brew tap breinzhang/apps
77
+ brew install --cask breinzhang/apps/mivark
76
78
  ```
77
79
 
78
80
  ### First-Launch Notice (Unsigned / Ad-hoc Builds)
@@ -50,3 +50,95 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
50
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
51
  SOFTWARE.
52
52
 
53
+ Copyright (c) 2023 Vercel, in collaboration with basement.studio
54
+
55
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
56
+ This license is copied below, and is also available with a FAQ at:
57
+ http://scripts.sil.org/OFL
58
+
59
+ -----------------------------------------------------------
60
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
61
+ -----------------------------------------------------------
62
+
63
+ PREAMBLE
64
+ The goals of the Open Font License (OFL) are to stimulate worldwide
65
+ development of collaborative font projects, to support the font creation
66
+ efforts of academic and linguistic communities, and to provide a free and
67
+ open framework in which fonts may be shared and improved in partnership
68
+ with others.
69
+
70
+ The OFL allows the licensed fonts to be used, studied, modified and
71
+ redistributed freely as long as they are not sold by themselves. The
72
+ fonts, including any derivative works, can be bundled, embedded,
73
+ redistributed and/or sold with any software provided that any reserved
74
+ names are not used by derivative works. The fonts and derivatives,
75
+ however, cannot be released under any other type of license. The
76
+ requirement for fonts to remain under this license does not apply
77
+ to any document created using the fonts or their derivatives.
78
+
79
+ DEFINITIONS
80
+ "Font Software" refers to the set of files released by the Copyright
81
+ Holder(s) under this license and clearly marked as such. This may
82
+ include source files, build scripts and documentation.
83
+
84
+ "Reserved Font Name" refers to any names specified as such after the
85
+ copyright statement(s).
86
+
87
+ "Original Version" refers to the collection of Font Software components as
88
+ distributed by the Copyright Holder(s).
89
+
90
+ "Modified Version" refers to any derivative made by adding to, deleting,
91
+ or substituting -- in part or in whole -- any of the components of the
92
+ Original Version, by changing formats or by porting the Font Software to a
93
+ new environment.
94
+
95
+ "Author" refers to any designer, engineer, programmer, technical
96
+ writer or other person who contributed to the Font Software.
97
+
98
+ PERMISSION AND CONDITIONS
99
+ Permission is hereby granted, free of charge, to any person obtaining
100
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
101
+ redistribute, and sell modified and unmodified copies of the Font
102
+ Software, subject to the following conditions:
103
+
104
+ 1) Neither the Font Software nor any of its individual components,
105
+ in Original or Modified Versions, may be sold by itself.
106
+
107
+ 2) Original or Modified Versions of the Font Software may be bundled,
108
+ redistributed and/or sold with any software, provided that each copy
109
+ contains the above copyright notice and this license. These can be
110
+ included either as stand-alone text files, human-readable headers or
111
+ in the appropriate machine-readable metadata fields within text or
112
+ binary files as long as those fields can be easily viewed by the user.
113
+
114
+ 3) No Modified Version of the Font Software may use the Reserved Font
115
+ Name(s) unless explicit written permission is granted by the corresponding
116
+ Copyright Holder. This restriction only applies to the primary font name as
117
+ presented to the users.
118
+
119
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
120
+ Software shall not be used to promote, endorse or advertise any
121
+ Modified Version, except to acknowledge the contribution(s) of the
122
+ Copyright Holder(s) and the Author(s) or with their explicit written
123
+ permission.
124
+
125
+ 5) The Font Software, modified or unmodified, in part or in whole,
126
+ must be distributed entirely under this license, and must not be
127
+ distributed under any other license. The requirement for fonts to
128
+ remain under this license does not apply to any document created
129
+ using the Font Software.
130
+
131
+ TERMINATION
132
+ This license becomes null and void if any of the above conditions are
133
+ not met.
134
+
135
+ DISCLAIMER
136
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
137
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
138
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
139
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
140
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
141
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
142
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
143
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
144
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/bin/mivark.mjs CHANGED
@@ -31,7 +31,7 @@ if (flagArgs.includes('--help') || flagArgs.includes('-h')) {
31
31
 
32
32
  用法:
33
33
  mivark [--version] [--help]
34
- mivark <文件路径...> 启动/聚焦 Mivark 并打开文件(支持 .md/.json/图片)
34
+ mivark <文件或文件夹路径...> 启动/聚焦 Mivark 并打开指定路径
35
35
 
36
36
  说明:
37
37
  - npm 包只负责启动预编译的桌面程序;不包含也不执行 Rust 编译。
@@ -140,7 +140,12 @@ try {
140
140
  manifest,
141
141
  });
142
142
  // Wait for LaunchServices acceptance, not for the long-lived GUI to exit.
143
- runChecked('open', ['-a', appPath, ...(fileArgs.length ? ['--args', ...fileArgs] : [])]);
143
+ // Start a process for path requests even when LaunchServices already has a
144
+ // window. The single-instance plugin forwards the arguments to that window.
145
+ runChecked(
146
+ 'open',
147
+ fileArgs.length ? ['-n', '-a', appPath, '--args', ...fileArgs] : ['-a', appPath],
148
+ );
144
149
  } else {
145
150
  const exePath = path.join(payloadDir, expectedArtifact);
146
151
  await verifyArtifact(exePath, manifest.sha256);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breinzhang/mivark",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Mivark desktop launcher — starts the precompiled Mivark.app / Mivark.exe",
5
5
  "bin": {
6
6
  "mivark": "bin/mivark.mjs"
@@ -10,9 +10,9 @@
10
10
  "node": ">=20"
11
11
  },
12
12
  "optionalDependencies": {
13
- "@breinzhang/mivark-darwin-arm64": "0.1.1",
14
- "@breinzhang/mivark-darwin-x64": "0.1.1",
15
- "@breinzhang/mivark-win32-x64": "0.1.1"
13
+ "@breinzhang/mivark-darwin-arm64": "0.1.3",
14
+ "@breinzhang/mivark-darwin-x64": "0.1.3",
15
+ "@breinzhang/mivark-win32-x64": "0.1.3"
16
16
  },
17
17
  "files": [
18
18
  "bin/",