@shipbench/board 0.9.0 → 0.11.0

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.
@@ -0,0 +1,7 @@
1
+ import type { BoardNavigation } from './store/boardStore.js';
2
+ /**
3
+ * Keeps the open task in the page's URL and history. Only the page the CLI
4
+ * serves uses this, because there the board is the whole page; the library
5
+ * entry never touches history.
6
+ */
7
+ export declare function historyNavigation(): BoardNavigation;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { BoardAPI } from '@shipbench/core';
2
2
  import { type Root } from 'react-dom/client';
3
+ import type { BoardNavigation } from './store/boardStore.js';
3
4
  import { Board } from './ui/Board.js';
4
5
  import './styles.css';
5
6
  export interface CreateBoardOptions {
@@ -11,7 +12,11 @@ export interface CreateBoardOptions {
11
12
  * distinguishable. Hosts that own their own routing and tab title leave
12
13
  * this off. The name itself always comes from `config.name`. */
13
14
  documentTitle?: boolean;
15
+ /** Connects the open task to the host's own URL and history. The board
16
+ * never touches either itself, so a host that leaves this off keeps them
17
+ * as they are. */
18
+ navigation?: BoardNavigation;
14
19
  }
15
20
  export declare function createBoard(rootElement: HTMLElement, options: CreateBoardOptions): Root;
16
- export type { BoardAPI };
21
+ export type { BoardAPI, BoardNavigation };
17
22
  export { Board };