baiten3d 0.1.0 → 0.1.2

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.
@@ -5,8 +5,8 @@ export interface SheetListDrawerProps {
5
5
  readonly publicationTitle: string;
6
6
  readonly sheets: readonly ComposedSheet[];
7
7
  readonly activeSpreadIndex: number;
8
- readonly onJumpToSpread: (spreadIndex: number) => void;
9
- readonly onSelectArticle: (slug: string) => void;
8
+ readonly onJumpToSpread: (spreadIndex: number, sheetIndex?: number) => void;
9
+ readonly onSelectArticle: (slug: string, sheetIndex?: number) => void;
10
10
  readonly onClose: () => void;
11
11
  }
12
12
  /**
@@ -1 +1 @@
1
- export { c as ArchiveIndexView, r as MagazineViewer, n as NewspaperViewer, t as NewsstandView } from "../../react-1yHcPcfO.js";
1
+ export { c as ArchiveIndexView, r as MagazineViewer, n as NewspaperViewer, t as NewsstandView } from "../../react-D1PVmQQw.js";
@@ -6,6 +6,7 @@
6
6
  * URL を汚染しないよう `pathname` のプレフィックスを必ず検証する。
7
7
  */
8
8
  export declare function readInitialPageParam(maxPages: number): number | null;
9
+ export declare function readInitialHashId(): string | null;
9
10
  export interface SyncReaderUrlOptions {
10
11
  readonly assetBase: string;
11
12
  readonly publicationId: string;
@@ -17,7 +18,12 @@ export interface SyncReaderUrlOptions {
17
18
  readonly omitPageOne?: boolean;
18
19
  /** 記事拡大・全文リーダーで個別記事を開いている場合のスラッグ */
19
20
  readonly articleSlug?: string | null;
21
+ /**
22
+ * 同一スラッグの記事が `paginateBy: "h2"` 等で複数ページへ分割されている場合に、
23
+ * 2ページ目以降でも `/{pub}/{slug}/?p=N` としてページ位置を URL へ保持する。
24
+ */
25
+ readonly preservePageWithArticle?: boolean;
20
26
  /** 記事を開く等の明示操作は pushState、ページめくりは replaceState */
21
27
  readonly push?: boolean;
22
28
  }
23
- export declare function syncReaderUrl({ assetBase, publicationId, latestEditionId, activeEditionId, page, omitPageOne, articleSlug, push, }: SyncReaderUrlOptions): void;
29
+ export declare function syncReaderUrl({ assetBase, publicationId, latestEditionId, activeEditionId, page, omitPageOne, articleSlug, preservePageWithArticle, push, }: SyncReaderUrlOptions): void;