Host element the browser panel is appended into.
Callback when a dataset is selected. Receives the full URL (not
just the path). May be sync or async; the browser does NOT wait for
the returned Promise — it fires the callback, attaches a .catch
(so an async load failure is logged + toasted rather than becoming an
unhandled rejection), and closes immediately. Return false
synchronously to keep the browser open without treating the selection
as a failure.
OptionalonOptionalcurrentCurrently loaded dataset URL, used to determine the initial directory.
OptionaloriginFallback origin for relative path resolution (defaults to window.location.origin).
Construction options for DatasetBrowser — where to mount the panel and how to react to selection/close, plus the context needed to pick the initial directory and resolve relative paths.