Commit Graph
429 Commits
Author SHA1 Message Date
Zef Hemel 0569a037b2 fix (hopefully) for video embedding in SB+ 2026-05-12 13:46:58 +02:00
Zef Hemel 4e23e7a4c6 fix: more caching fixes 2026-05-12 13:45:34 +02:00
Zef Hemel 772757ad27 Fix: widget cache invalidation again
Two hard problems in CS...
2026-05-12 11:51:26 +02:00
Zef Hemel 06dfb01582 Add SB_DISABLE_SERVICE_WORKER mode 2026-05-12 10:08:59 +02:00
Zef Hemel 0ca442eb12 Fix: transform order on object indexing 2026-05-12 09:40:21 +02:00
Zef Hemel a96a86c0b5 Slightly optimize vertical jiggering by pre-computing all widgets on page load 2026-05-12 09:38:17 +02:00
Zef Hemel aa0996bbd0 Add X-Ray editor lens
New "Editor: Toggle X-Ray" command underlines every ranged object the indexer produces and shows a YAML tooltip per indexing tag on hover.
2026-05-09 12:32:11 +02:00
Zef Hemel 10898f2580 Add index.previewProcessedObjects syscall
Read access to the index pipeline validation, multi-tag  expansion, tagDefinition.transform()).
2026-05-09 12:30:08 +02:00
Zef Hemel 09059aa18a Lint: support rich HTML tooltips
LintDiagnostic adds `messageHtml` (rendered into the hover
  tooltip) and `markClass` (added to the inline range mark)
2026-05-09 12:29:19 +02:00
Zef Hemel 09a318a5e9 Revert "Fix ref links in tables regression"
This reverts commit 15ccabc361.
2026-05-07 08:13:07 +02:00
Zef Hemel 53968ce438 Merge branch 'main' of github.com:silverbulletmd/silverbullet 2026-05-06 16:46:09 +02:00
Zef Hemel 15ccabc361 Fix ref links in tables regression 2026-05-06 16:46:05 +02:00
0xferrousandGitHub d297a33b3f feat(auth): add password toggle button (#1963) 2026-05-06 16:44:36 +02:00
Zef Hemel a626453262 Offer API to external apps (e.g. Tauri) to properly support drag & dropping of files 2026-05-06 15:06:18 +02:00
Zef Hemel a28c661d24 refactor: config: rename ui order to priority (consistency with rest of SB), flip sort direction
Also: docs
2026-05-03 16:06:45 +02:00
Zef Hemel f24ee538a8 fix: config correct default value handling 2026-05-03 07:55:24 +02:00
Zef Hemel 46e8dcf112 syntax highlight for anchros 2026-04-30 19:47:03 +02:00
Zef Hemel 60c2ecf4d8 editor: navigate, toggle, and render anchor refs 2026-04-30 19:44:30 +02:00
Zef Hemel be0e1c60ca Add anchor resolving through space.readRef 2026-04-30 19:35:24 +02:00
Zef Hemel 4e6a855854 fix: correct argument order in index.getObjectByRef syscall 2026-04-30 18:03:18 +02:00
Zef Hemel 3670016408 anchor: parse $name as NamedAnchor inline node 2026-04-30 17:54:41 +02:00
Zef Hemel 70f100f066 Fixes #1952 2026-04-30 10:59:53 +02:00
Zef Hemel 81dbdae857 Fixes #1955 2026-04-30 10:59:53 +02:00
Lumen YangandGitHub 49ab50af43 Fix "white screen when booting" (#1953) 2026-04-29 13:03:15 +02:00
LogeshandGitHub 3a3f9f8ccd Change shadow DOM mode to 'open' (#1954) 2026-04-29 13:01:49 +02:00
Zef Hemel 0b5cf7c6af Make Configuration UI look more reasonable on mobile devices 2026-04-28 09:07:44 +02:00
Zef Hemel 563b20eece Security: set auth cookie security flags 2026-04-24 16:06:27 +02:00
Zef Hemel 1763b07c8f Remove indent/outdent key bindings clashing with browser forward/backward 2026-04-23 15:54:21 +02:00
Zef Hemel d0cb8e6c0e Menus: refactoring and renaming 2026-04-23 13:32:00 +02:00
Zef Hemel 47f9d9987c Annotated existing commands with menu placements 2026-04-23 10:16:49 +02:00
Zef Hemel 6dec86d236 Add initial schema support for native file menu bindings 2026-04-23 09:31:04 +02:00
Zef Hemel 8b241f9448 Rebranding LIQ to SLIQ! 2026-04-22 20:54:43 +02:00
Zef Hemel 6f5d3c776f fix: restrict Ctrl-v page-down binding to macOS 2026-04-22 14:23:07 +02:00
Zef Hemel 556404565e Client: portal notification panel to document.body
Render .sb-notifications via createPortal so notifications escape the top-bar stacking context and can overlay modal panels.
2026-04-21 16:55:24 +02:00
Zef Hemel b207e8a06e Client: extract prettifyShortcut into shared lib
Move isMacLike and prettifyShortcut out of command_palette into plug-api/lib/shortcut so the configuration manager's shortcuts UI can render identical key notation.
2026-04-21 16:54:24 +02:00
Zef Hemel a34c2d3ac9 Plugs: per-path load/unload syscalls
Track the source path on each Plug and rename the sandbox-factory "cacheKey" to "path" to reflect what it actually is. Fold the one-liner web_worker_sandbox helper into a WorkerSandbox.forPath factory and add system.loadPlug / system.unloadPlug syscalls so individual plugs can be (re)loaded by path — foundation for the upcoming configuration-manager libraries UI.
2026-04-21 16:51:33 +02:00
Zef Hemel e226bfd685 Client: add editor.focus syscall 2026-04-21 16:50:34 +02:00
Zef Hemel 15b1f37734 Potentially breaking CSS change for the themers: .sb-notifications is now elsewhere in the DOM
Goal: make it always appear above even modal windows
2026-04-21 16:29:38 +02:00
Zef Hemel 795c248a0c Set some sensible default (fallback) config options when defaults are not yet available (initial index) 2026-04-21 13:06:36 +02:00
Zef Hemel f1394f3bc0 Expose content type also via X-Content-Type header 2026-04-21 10:30:11 +02:00
Zef Hemel 21ce019ede Editor: move built-in commands from plug to client
Cursor motions, selection, delete, undo/redo, completion, and the various navigator/palette openers are registered directly on the CommandHook from client code, eliminating the async plug round-trip that was racing Enter/Backspace handling in some cases (especially e2e tests).

CommandHook gains `registerCommand` and a shared `mergeCommand`  helper so built-ins, plug commands.
2026-04-21 10:05:38 +02:00
Zef Hemel dcc5f8992c Plug compiler: add "build" steps (esbuild/sass/copy)
Adds an optional `build:` section to plug manifests, running esbuild,  sass, or copy transforms before asset bundling. Enables plugs to ship bundled TSX/SCSS UIs (used by the upcoming configuration-manager plug).
2026-04-21 10:04:34 +02:00
Zef Hemel 0c9c07b3e6 Config: schema defaults, UI categories and annotations
`config.define` now propagates schema `default` values, so features like smart quotes no longer need their own fallback constants.

Adds `defineCategory` / `getCategories` for the upcoming configuration  manager UI.
2026-04-21 10:03:40 +02:00
Zef Hemel efd827b721 Implements #510
Extracts almost all codemirror keyboard shortcuts into proper SB
commands so they can be rebound

Bonus: renders prettier versions of keyboard shortcuts on Mac
2026-04-17 16:45:11 +02:00
Zef Hemel ea2ad9a732 Add actionButton.define "command" attribute
This automatically triggers a command bound to an actionButton, and
notably also shows the keyboard shortcut connected to it (if any)
2026-04-16 14:23:54 +02:00
Zef Hemel 1ec2574836 Fix: button text wrapping 2026-04-16 14:09:51 +02:00
Zef Hemel c5a61acda2 Revert "Revert unnecessary Webkit hacks"
This reverts commit f46196adcf.
2026-04-14 08:09:58 +02:00
Zef Hemel 0627e7cb49 Fixes #1931 and #1923 (hopefully)
The service worker's proxy fallback only matched the wrapped "Offline"
error from HttpSpacePrimitives, but raw fetch() throws browser-native
errors like
"Failed to fetch" (Chrome), "NetworkError..." (Firefox), or "Load
failed"
(Safari). This caused a hard 503 instead of falling through to serve
local
data. Additionally, the `fullSyncConfirmed` flag reset on every service
worker
restart, forcing unnecessary proxying even when synced data existed in
IndexedDB.

In this commit:
- Use `isNetworkError()` in proxy_router.ts to catch all browser network
  errors
  and fall through to local serving instead of returning 503
* Recover `fullSyncConfirmed` from persisted sync snapshot on SW
  restart, so
  previously synced spaces serve locally immediately
* Adds e2e tests trying to emulate this behavior and prevent regressions
2026-04-14 08:01:43 +02:00
Zef Hemel f46196adcf Revert unnecessary Webkit hacks 2026-04-13 20:09:10 +02:00
Zef Hemel cf159dba06 Fix: too tall a mini editor in various pickers on Safari
Hacky, but... probably working with a safari bug here.
2026-04-13 18:04:44 +02:00