diffbook-app 0.10.2 → 0.10.3

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.
@@ -1,5 +1,5 @@
1
1
  import { t as createServerFn } from "../server.js";
2
- import { a as readRegistry, c as renderArticle, n as resolveSourceContext, o as rehypeCollectToc, r as GitBookUnavailableError, s as rehypeMarkMermaid, t as currentSourceMode, u as rehypeSlug } from "./source-mode-4uG8Ej3e.js";
2
+ import { a as readRegistry, c as renderArticle, n as resolveSourceContext, o as rehypeCollectToc, r as GitBookUnavailableError, s as rehypeMarkMermaid, t as currentSourceMode, u as rehypeSlug } from "./source-mode-CkdaTy9w.js";
3
3
  import { I as mdxComponents } from "./dist-Dum_xO7d.js";
4
4
  import { t as createServerRpc } from "./createServerRpc-DwsoH1hp.js";
5
5
  import * as jsxRuntime from "react/jsx-runtime";
@@ -360,6 +360,7 @@ var getRenderedPage = createServerFn({ method: "GET" }).validator((data) => data
360
360
  page,
361
361
  ...await renderArticle(page.body, {
362
362
  slug: page.slug,
363
+ isIndex: page.isIndex,
363
364
  document: context.links.document,
364
365
  base
365
366
  })
@@ -5,7 +5,7 @@ import { t as Route$4 } from "./search-WKn1ukuf.js";
5
5
  import { t as Route$5 } from "./_bookSlug-DchAAhuW.js";
6
6
  import { t as Route$6 } from "./_-1L9ZXE-q.js";
7
7
  import { t as Route$7 } from "./search-B9QT-xba.js";
8
- import { i as LocalBookSource, n as resolveSourceContext, t as currentSourceMode } from "./source-mode-4uG8Ej3e.js";
8
+ import { i as LocalBookSource, n as resolveSourceContext, t as currentSourceMode } from "./source-mode-CkdaTy9w.js";
9
9
  import { useEffect, useState } from "react";
10
10
  import { HeadContent, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, useRouter, useRouterState } from "@tanstack/react-router";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { t as createServerFn } from "../server.js";
2
- import { l as searchBookPages, n as resolveSourceContext, t as currentSourceMode } from "./source-mode-4uG8Ej3e.js";
2
+ import { l as searchBookPages, n as resolveSourceContext, t as currentSourceMode } from "./source-mode-CkdaTy9w.js";
3
3
  import { t as createServerRpc } from "./createServerRpc-DwsoH1hp.js";
4
4
  //#region src/server/search.ts?tss-serverfn-split
5
5
  var searchBook_createServerFn_handler = createServerRpc({
@@ -30866,14 +30866,16 @@ function displayName(value) {
30866
30866
  }
30867
30867
  async function readPageFile(sourcePath, slug) {
30868
30868
  const { data, body } = parseFrontmatter(await readFile(sourcePath, "utf8"));
30869
+ const name = path.basename(sourcePath, path.extname(sourcePath));
30869
30870
  return {
30870
30871
  slug,
30871
- title: pageTitle(data, body, displayName(path.basename(sourcePath, path.extname(sourcePath)))),
30872
+ title: pageTitle(data, body, displayName(name)),
30872
30873
  ...pageOrder(data) === void 0 ? {} : { order: pageOrder(data) },
30873
30874
  ...data.audience === "private" ? { audience: "private" } : {},
30874
30875
  body,
30875
30876
  sourcePath,
30876
- isMdx: path.extname(sourcePath).toLowerCase() === ".mdx"
30877
+ isMdx: path.extname(sourcePath).toLowerCase() === ".mdx",
30878
+ isIndex: name.toLowerCase() === "index" || name.toLowerCase() === "readme"
30877
30879
  };
30878
30880
  }
30879
30881
  async function findPage(docsDirectory, slug) {
@@ -3618,31 +3618,31 @@ async function getStartManifest(matchedRoutes) {
3618
3618
  var manifest = {
3619
3619
  "3f29b402143f5f71892967ea7bf5954237905ecb40c9be07215916a222d6fd8e": {
3620
3620
  functionName: "getCatalog_createServerFn_handler",
3621
- importer: () => import("./assets/book-mMc--P1C.js")
3621
+ importer: () => import("./assets/book-Cc70uOy-.js")
3622
3622
  },
3623
3623
  "4716699d9a9992d8bfbc79aca5d0e092a3715ea2be0688784405c139fb6bedd0": {
3624
3624
  functionName: "getTree_createServerFn_handler",
3625
- importer: () => import("./assets/book-mMc--P1C.js")
3625
+ importer: () => import("./assets/book-Cc70uOy-.js")
3626
3626
  },
3627
3627
  "76c6cbe6bafe3d837829b67f9530def4cd807fb9666d2a796582881558b0329a": {
3628
3628
  functionName: "searchBook_createServerFn_handler",
3629
- importer: () => import("./assets/search-BsCSJT7J.js")
3629
+ importer: () => import("./assets/search-v1XdllNB.js")
3630
3630
  },
3631
3631
  "b3d861154ecb7779bebdfc1368eda9f5ebe0b7ab9cfdbbd824b0de67b11de6fe": {
3632
3632
  functionName: "getBook_createServerFn_handler",
3633
- importer: () => import("./assets/book-mMc--P1C.js")
3633
+ importer: () => import("./assets/book-Cc70uOy-.js")
3634
3634
  },
3635
3635
  "c12cd95602f5ab3286987207732f6ae40e4df5559ae1cd1ddfd461ac9474264c": {
3636
3636
  functionName: "getRenderedPage_createServerFn_handler",
3637
- importer: () => import("./assets/book-mMc--P1C.js")
3637
+ importer: () => import("./assets/book-Cc70uOy-.js")
3638
3638
  },
3639
3639
  "d8862ad8bb0ba5cd129ec684eec14170424bd5a85fc84bd84e24d32b2db54c2d": {
3640
3640
  functionName: "getPage_createServerFn_handler",
3641
- importer: () => import("./assets/book-mMc--P1C.js")
3641
+ importer: () => import("./assets/book-Cc70uOy-.js")
3642
3642
  },
3643
3643
  "e857d6f9a3cc81796d517d2ba0206bbba7f56140652baea392b24b56fbc0ce62": {
3644
3644
  functionName: "getAppMode_createServerFn_handler",
3645
- importer: () => import("./assets/book-mMc--P1C.js")
3645
+ importer: () => import("./assets/book-Cc70uOy-.js")
3646
3646
  }
3647
3647
  };
3648
3648
  async function getServerFnById(id, access) {
@@ -5520,7 +5520,7 @@ var getBaseManifest = getProdBaseManifest;
5520
5520
  var createEarlyHintsForRequest = createEarlyHintsCollector;
5521
5521
  async function loadEntries() {
5522
5522
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
5523
- import("./assets/router-BnmwNZcP.js"),
5523
+ import("./assets/router-Bf5OYtVs.js"),
5524
5524
  import("./assets/start-n8qSJ9CO.js"),
5525
5525
  import("./assets/empty-plugin-adapters-BWkUiWlQ.js")
5526
5526
  ]);
package/package.json CHANGED
@@ -37,8 +37,8 @@
37
37
  "tailwind-merge": "^3.0.2",
38
38
  "tailwindcss": "^4.1.18",
39
39
  "tw-animate-css": "^1.3.6",
40
- "diffbook-core": "0.10.2",
41
- "diffbook-ui": "0.10.2"
40
+ "diffbook-core": "0.10.3",
41
+ "diffbook-ui": "0.10.3"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@playwright/test": "^1.57.0",
@@ -60,7 +60,7 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "version": "0.10.2",
63
+ "version": "0.10.3",
64
64
  "scripts": {
65
65
  "dev": "vite dev --port 3000",
66
66
  "build": "vite build",