crossnote 0.9.37 → 0.9.38
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 +12 -4
- package/out/cjs/index.cjs +294 -283
- package/out/cli/index.cjs +500 -16
- package/out/esm/index.mjs +296 -285
- package/out/server-app/server-app.css +1 -1
- package/out/server-app/server-app.js +115 -7
- package/out/types/src/markdown-engine/index.d.ts +32 -2
- package/out/types/src/serve/graph-host-shim.d.ts +6 -0
- package/out/types/src/serve/markdown-files.d.ts +1 -0
- package/out/types/src/server-app/components/LayoutView.d.ts +3 -0
- package/out/types/src/server-app/components/TabStrip.d.ts +3 -1
- package/out/types/src/server-app/components/TitleBar.d.ts +3 -1
- package/out/types/src/server-app/components/Welcome.d.ts +2 -1
- package/out/types/src/server-app/lib/api.d.ts +43 -0
- package/out/types/src/server-app/lib/preview-theme.d.ts +1 -0
- package/out/types/src/server-app/lib/wiki.d.ts +11 -1
- package/out/types/src/server-app/types.d.ts +4 -0
- package/out/types/src/wiki/index.d.ts +36 -0
- package/out/types/test/serve/markdown-files.test.d.ts +1 -0
- package/out/types/test/server-app/preview-theme.test.d.ts +1 -0
- package/out/types/test/server-app/types.test.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/out/webview/backlinks.css +1 -1
- package/out/webview/backlinks.js +4 -4
- package/out/webview/graph-view.css +1 -1
- package/out/webview/graph-view.js +5 -5
- package/out/webview/preview.css +1 -1
- package/out/webview/preview.js +137 -137
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -163,17 +163,25 @@ $ crossnote build-wiki docs wiki --vscode # reuse VS Code settings, too
|
|
|
163
163
|
- Every note is the exact preview page the serve server renders, shown in a
|
|
164
164
|
sandboxed (`allow-scripts`) iframe: diagrams, math, the sidebar TOC and
|
|
165
165
|
zoom all work. Shared assets (the webview bundle, mermaid, themes, …) are
|
|
166
|
-
stored once and inlined when a note is opened; local images
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
stored once and inlined when a note is opened; local images **and remote
|
|
167
|
+
`http(s)` images** (fetched once per build, capped at 8 MB with a 10 s
|
|
168
|
+
timeout, best-effort) are embedded as data URIs, so the file renders
|
|
169
|
+
offline — CDN-hosted math assets still need the reader to be online.
|
|
169
170
|
- The wiki is read-only by construction — nothing in the file can write
|
|
170
171
|
anywhere. Editing UI, code-chunk run buttons and task-list checkboxes are
|
|
171
172
|
hidden or inert, note-to-note links resolve inside the file, external
|
|
172
173
|
links open new tabs, and links to notes that are not part of the wiki
|
|
173
|
-
explain so instead of navigating away.
|
|
174
|
+
explain so instead of navigating away. The graph view opens as a pane
|
|
175
|
+
beside the active one and backlinks resolve from data embedded at export
|
|
176
|
+
time — both work offline inside the file. Themes _can_ be changed from
|
|
177
|
+
the preview's right-click menu — every stylesheet ships in the file and
|
|
178
|
+
the selection persists in the browser's localStorage.
|
|
174
179
|
- Config resolution is the same as `serve`
|
|
175
180
|
(`defaults ← VS Code settings with --vscode ← global crossnote config ←
|
|
176
181
|
<directory>/.crossnote`), per directory.
|
|
182
|
+
- The exported file carries no absolute paths of the machine it was built
|
|
183
|
+
on — notes are keyed by root-relative paths (prefixed with the root's
|
|
184
|
+
folder name when several roots are packed).
|
|
177
185
|
- The preview context menu (in `serve` and in the VS Code extension) has an
|
|
178
186
|
**Export ▸ Wiki** item that builds the same file: the server writes it
|
|
179
187
|
next to the notes as `crossnote-wiki.html` (never overwriting a previous
|