react-docs-ui 0.7.3 → 0.7.5

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.
@@ -21314,21 +21314,17 @@ async function ub(e = "zh-cn") {
21314
21314
  //#endregion
21315
21315
  //#region src/lib/frontmatter.ts
21316
21316
  function db(e) {
21317
- if (!e.startsWith("---\n")) return {
21317
+ let t = e.replace(/^\uFEFF/, ""), n = t.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);
21318
+ if (!n) return {
21318
21319
  data: {},
21319
21320
  content: e
21320
21321
  };
21321
- let t = e.indexOf("\n---\n", 4);
21322
- if (t === -1) return {
21323
- data: {},
21324
- content: e
21325
- };
21326
- let n = e.slice(4, t), r = e.slice(t + 5);
21322
+ let r = n[1], i = t.slice(n[0].length);
21327
21323
  try {
21328
- let e = nt.load(n);
21324
+ let e = nt.load(r);
21329
21325
  return {
21330
21326
  data: e && typeof e == "object" ? e : {},
21331
- content: r
21327
+ content: i
21332
21328
  };
21333
21329
  } catch (t) {
21334
21330
  return console.warn("[frontmatter] Failed to parse YAML frontmatter:", t), {
@@ -1,4 +1,4 @@
1
- import { c as e, n as t, t as n } from "./DocsApp-_rW6UKxz.js";
1
+ import { c as e, n as t, t as n } from "./DocsApp-B-VaP4ms.js";
2
2
  //#region src/docs-app.ts
3
3
  var r = !1;
4
4
  function i() {
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./theme-provider-fNhx9xK0.js";
2
- import { A as n, B as r, C as i, D as a, E as o, F as ee, G as te, H as ne, I as re, J as ie, K as ae, L as oe, M as se, N as ce, O as le, P as ue, R as s, S as c, T as l, U as u, V as d, W as f, X as p, Y as m, _ as h, a as g, b as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, o as D, p as O, q as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L, z as R } from "./DocsApp-_rW6UKxz.js";
2
+ import { A as n, B as r, C as i, D as a, E as o, F as ee, G as te, H as ne, I as re, J as ie, K as ae, L as oe, M as se, N as ce, O as le, P as ue, R as s, S as c, T as l, U as u, V as d, W as f, X as p, Y as m, _ as h, a as g, b as _, d as v, f as y, g as b, h as x, i as S, j as C, k as w, l as T, m as E, o as D, p as O, q as k, r as A, s as j, t as M, u as N, v as P, w as F, x as I, y as L, z as R } from "./DocsApp-B-VaP4ms.js";
3
3
  import { t as z } from "./utils-Ct96Mtjw.js";
4
4
  import { C as B, S as V, a as H, b as U, f as de, i as fe, o as pe, p as me, v as he, x as ge, y as _e } from "./mdx-components-m1cGPhc8.js";
5
5
  import { a as ve, c as ye, i as W, n as be, o as G, r as K, s as q, t as J } from "./dialog-D8otbqQL.js";
@@ -1 +1 @@
1
- {"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../src/lib/frontmatter.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAuBlE"}
1
+ {"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../src/lib/frontmatter.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAqBlE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-docs-ui",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
5
  "description": "React documentation site UI components — navigation, sidebar, search, code highlight, MDX rendering and theming to help you build docs fast.",
6
6
  "homepage": "https://shenjianZ.github.io/react-docs-ui",