react-docs-ui 0.6.13 → 0.6.14

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,4 +1,4 @@
1
- import { u as ee, j as e, c as x, aL as ie, al as J, aM as le, ao as se, ab as ce, ap as de, an as ue, az as me, aD as xe } from "./DocsApp-DTFpyBOl.js";
1
+ import { u as ee, j as e, c as x, aL as ie, al as J, aM as le, ao as se, ab as ce, ap as de, an as ue, az as me, aD as xe } from "./DocsApp-CodPVxvb.js";
2
2
  import Q, { useState as d, useRef as D, useCallback as S, useEffect as _ } from "react";
3
3
  import { Bot as $, User as ge, X as G, CheckCheck as pe, CheckCircle as he, Copy as re, Loader2 as X, AlertCircle as fe, Check as oe, RefreshCw as ve, Pencil as be, Trash2 as te, Square as je, Send as ye, AlertTriangle as Ne, GripVertical as we, Settings as ke, Plus as ne, Star as Ce, ExternalLink as Pe, EyeOff as Ie, Eye as Ee, Info as Se, Save as Ae } from "lucide-react";
4
4
  import Te from "react-markdown";
@@ -318,7 +318,7 @@ const Vd = () => {
318
318
  if (e === void 0)
319
319
  throw new Error("useTheme must be used within a ThemeProvider");
320
320
  return e;
321
- }, Rw = Zr(() => import("./SearchRuntime-Dk265vam.js")), Iw = {
321
+ }, Rw = Zr(() => import("./SearchRuntime-ClG0KzkU.js")), Iw = {
322
322
  openSearch: () => {
323
323
  }
324
324
  }, Kd = Xr(Iw);
@@ -32626,8 +32626,11 @@ function Qg(e) {
32626
32626
  return e ? {
32627
32627
  js: "javascript",
32628
32628
  ts: "typescript",
32629
- sh: "shell",
32629
+ sh: "bash",
32630
32630
  shell: "bash",
32631
+ pwsh: "powershell",
32632
+ ps1: "powershell",
32633
+ psm1: "powershell",
32631
32634
  yml: "yaml",
32632
32635
  md: "markdown",
32633
32636
  rb: "ruby",
@@ -34859,28 +34862,28 @@ function V5(e = {}) {
34859
34862
  };
34860
34863
  }
34861
34864
  const K5 = Zr(
34862
- () => import("./GlobalContextMenu-hGNTKw3S.js").then((e) => ({
34865
+ () => import("./GlobalContextMenu-B-Yx5Wqe.js").then((e) => ({
34863
34866
  default: e.GlobalContextMenu
34864
34867
  }))
34865
34868
  ), X5 = Zr(
34866
- () => import("./MdxContent.lazy-DsQt7MZQ.js")
34869
+ () => import("./MdxContent.lazy-BrPJ1yjA.js")
34867
34870
  );
34868
34871
  function Z5() {
34869
- import("./MdxContent.lazy-DsQt7MZQ.js");
34872
+ import("./MdxContent.lazy-BrPJ1yjA.js");
34870
34873
  }
34871
34874
  function Y5() {
34872
34875
  globalThis.dispatchEvent(new Event("react-docs-ui:content-ready"));
34873
34876
  }
34874
34877
  const J5 = Zr(
34875
- () => import("./index-ByXnCzVt.js").then((e) => ({
34878
+ () => import("./index-B8So8dyN.js").then((e) => ({
34876
34879
  default: e.AISelectionTrigger
34877
34880
  }))
34878
34881
  ), Q5 = Zr(
34879
- () => import("./index-ByXnCzVt.js").then((e) => ({
34882
+ () => import("./index-B8So8dyN.js").then((e) => ({
34880
34883
  default: e.AIChatDialog
34881
34884
  }))
34882
34885
  ), eN = Zr(
34883
- () => import("./index-ByXnCzVt.js").then((e) => ({
34886
+ () => import("./index-B8So8dyN.js").then((e) => ({
34884
34887
  default: e.AISettingsPanel
34885
34888
  }))
34886
34889
  );
@@ -1,7 +1,7 @@
1
- import { b as D, j as e } from "./DocsApp-DTFpyBOl.js";
1
+ import { b as D, j as e } from "./DocsApp-CodPVxvb.js";
2
2
  import { useCallback as c } from "react";
3
3
  import { useNavigate as A, useLocation as Q } from "react-router-dom";
4
- import { C as W, a as _, b as J, c as k, d as C, e as t, f as y, g as w, h as f, i as v, j as P, k as d } from "./context-menu-CBGG4zJl.js";
4
+ import { C as W, a as _, b as J, c as k, d as C, e as t, f as y, g as w, h as f, i as v, j as P, k as d } from "./context-menu-C46tlmGf.js";
5
5
  const K = {
6
6
  "zh-cn": {
7
7
  page: "页面",
@@ -1,4 +1,4 @@
1
- import { aE as R, j as t, d as de, h as me, aF as pe, aG as fe, a2 as he, B as H, a0 as be, a3 as ge, a1 as we, c as xe, aB as ye, aH as ke, aI as Ce, aJ as Ne, aK as je } from "./DocsApp-DTFpyBOl.js";
1
+ import { aE as R, j as t, d as de, h as me, aF as pe, aG as fe, a2 as he, B as H, a0 as be, a3 as ge, a1 as we, c as xe, aB as ye, aH as ke, aI as Ce, aJ as Ne, aK as je } from "./DocsApp-CodPVxvb.js";
2
2
  import * as r from "react";
3
3
  import ve from "react-markdown";
4
4
  import Se from "rehype-autolink-headings";
@@ -1,5 +1,5 @@
1
1
  import h from "katex";
2
- import { M as T } from "./MdxContent-B664V_Hk.js";
2
+ import { M as T } from "./MdxContent-BdKn0Oni.js";
3
3
  h.__defineMacro("\\ce", function(A) {
4
4
  return W(A.consumeArgs(1)[0], "ce");
5
5
  });
@@ -1,4 +1,4 @@
1
- import { j as s, c as z, d as P, h as K, aF as V, aG as $ } from "./DocsApp-DTFpyBOl.js";
1
+ import { j as s, c as z, d as P, h as K, aF as V, aG as $ } from "./DocsApp-CodPVxvb.js";
2
2
  import { useState as y, useRef as j, useEffect as p, useCallback as E, createContext as q, useContext as H, forwardRef as M } from "react";
3
3
  import { useNavigate as Q } from "react-router-dom";
4
4
  import R from "flexsearch";
@@ -1,6 +1,6 @@
1
- import { j as s } from "./DocsApp-DTFpyBOl.js";
1
+ import { j as s } from "./DocsApp-CodPVxvb.js";
2
2
  import { useEffect as o } from "react";
3
- import { S as i, u, a as n } from "./SearchDialog-Cfam5kUW.js";
3
+ import { S as i, u, a as n } from "./SearchDialog-Cyz5zTp6.js";
4
4
  function c({
5
5
  openSignal: e,
6
6
  placeholder: t
@@ -1,4 +1,4 @@
1
- import { j as o, c as d } from "./DocsApp-DTFpyBOl.js";
1
+ import { j as o, c as d } from "./DocsApp-CodPVxvb.js";
2
2
  import * as r from "react";
3
3
  import * as e from "@radix-ui/react-context-menu";
4
4
  import { ChevronRightIcon as l, CheckIcon as c, CircleIcon as m } from "lucide-react";
@@ -1,5 +1,5 @@
1
- import { p as t, a as o } from "./DocsApp-DTFpyBOl.js";
2
- import { D as s } from "./DocsApp-DTFpyBOl.js";
1
+ import { p as t, a as o } from "./DocsApp-CodPVxvb.js";
2
+ import { D as s } from "./DocsApp-CodPVxvb.js";
3
3
  let e = !1;
4
4
  function p() {
5
5
  e || (e = !0, t(), o());
@@ -0,0 +1,12 @@
1
+ import { A, u as I } from "./DocsApp-CodPVxvb.js";
2
+ import { A as e, a as r, b as s } from "./AISettingsPanel-Cvu2lFDx.js";
3
+ import { c as g, d as p } from "./AISettingsPanel-Cvu2lFDx.js";
4
+ export {
5
+ r as AIChatDialog,
6
+ g as AIChatInput,
7
+ p as AIChatMessage,
8
+ A as AIProvider,
9
+ e as AISelectionTrigger,
10
+ s as AISettingsPanel,
11
+ I as useAI
12
+ };
@@ -1,13 +1,13 @@
1
- import { j as a, c as t, d, e as l, f as g, g as p, h as m, B as u } from "./DocsApp-DTFpyBOl.js";
2
- import { A as k, i as T, C as P, k as j, l as _, m as N, n as y, o as R, q as E, r as F, D as L, s as B, t as G, v as H, w as z, x as O, y as V, z as W, E as q, F as K, G as Q, H as U, I as $, J, K as X, L as Y, M as Z, N as aa, O as ea, P as oa, Q as sa, R as ta, S as na, T as ra, U as ia, V as da, W as la, X as ga, Y as pa, Z as ma, _ as ua, $ as ca, a0 as ha, a1 as xa, a2 as Ca, a3 as fa, a4 as Ma, a5 as Da, a6 as wa, a7 as va, a8 as ba, a9 as Sa, aa as Ia, ab as Aa, ac as ka, ad as Ta, ae as Pa, af as ja, ag as _a, ah as Na, ai as ya, aj as Ra, ak as Ea, al as Fa, am as La, an as Ba, ao as Ga, ap as Ha, aq as za, ar as Oa, as as Va, at as Wa, au as qa, av as Ka, aw as Qa, ax as Ua, ay as $a, az as Ja, aA as Xa, u as Ya, aB as Za, aC as ae, b as ee, aD as oe } from "./DocsApp-DTFpyBOl.js";
1
+ import { j as a, c as t, d, e as l, f as g, g as p, h as m, B as u } from "./DocsApp-CodPVxvb.js";
2
+ import { A as k, i as T, C as P, k as j, l as _, m as N, n as y, o as R, q as E, r as F, D as L, s as B, t as G, v as H, w as z, x as O, y as V, z as W, E as q, F as K, G as Q, H as U, I as $, J, K as X, L as Y, M as Z, N as aa, O as ea, P as oa, Q as sa, R as ta, S as na, T as ra, U as ia, V as da, W as la, X as ga, Y as pa, Z as ma, _ as ua, $ as ca, a0 as ha, a1 as xa, a2 as Ca, a3 as fa, a4 as Ma, a5 as Da, a6 as wa, a7 as va, a8 as ba, a9 as Sa, aa as Ia, ab as Aa, ac as ka, ad as Ta, ae as Pa, af as ja, ag as _a, ah as Na, ai as ya, aj as Ra, ak as Ea, al as Fa, am as La, an as Ba, ao as Ga, ap as Ha, aq as za, ar as Oa, as as Va, at as Wa, au as qa, av as Ka, aw as Qa, ax as Ua, ay as $a, az as Ja, aA as Xa, u as Ya, aB as Za, aC as ae, b as ee, aD as oe } from "./DocsApp-CodPVxvb.js";
3
3
  import "react";
4
4
  import { Command as c } from "cmdk";
5
5
  import { Search as h } from "lucide-react";
6
- import { C as te, l as ne, b as re, e as ie, c as de, j as le, k as ge, f as pe, m as me, g as ue, i as ce, h as he, a as xe } from "./context-menu-CBGG4zJl.js";
7
- import { I as fe, M as Me } from "./MdxContent-B664V_Hk.js";
8
- import { a as we, c as ve, d as be, A as Se, b as Ie } from "./AISettingsPanel-KzfonkeY.js";
9
- import { u as x } from "./SearchDialog-Cfam5kUW.js";
10
- import { a as ke, b as Te, c as Pe, d as je, S as _e, e as Ne, g as ye, h as Re, f as Ee, s as Fe, t as Le } from "./SearchDialog-Cfam5kUW.js";
6
+ import { C as te, l as ne, b as re, e as ie, c as de, j as le, k as ge, f as pe, m as me, g as ue, i as ce, h as he, a as xe } from "./context-menu-C46tlmGf.js";
7
+ import { I as fe, M as Me } from "./MdxContent-BdKn0Oni.js";
8
+ import { a as we, c as ve, d as be, A as Se, b as Ie } from "./AISettingsPanel-Cvu2lFDx.js";
9
+ import { u as x } from "./SearchDialog-Cyz5zTp6.js";
10
+ import { a as ke, b as Te, c as Pe, d as je, S as _e, e as Ne, g as ye, h as Re, f as Ee, s as Fe, t as Le } from "./SearchDialog-Cyz5zTp6.js";
11
11
  function C({
12
12
  className: e,
13
13
  ...o
@@ -1,6 +1,7 @@
1
1
  export declare const siteShikiBundle: {
2
2
  langs: {
3
3
  bash: () => Promise<typeof import("shiki/langs/*")>;
4
+ powershell: () => Promise<typeof import("shiki/langs/*")>;
4
5
  markdown: () => Promise<typeof import("shiki/langs/*")>;
5
6
  yaml: () => Promise<typeof import("shiki/langs/*")>;
6
7
  javascript: () => Promise<typeof import("shiki/langs/*")>;
@@ -1 +1 @@
1
- {"version":3,"file":"shiki-bundle.d.ts","sourceRoot":"","sources":["../../../src/generated/shiki-bundle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAe3B,CAAA"}
1
+ {"version":3,"file":"shiki-bundle.d.ts","sourceRoot":"","sources":["../../../src/generated/shiki-bundle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgB3B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"shiki-highlighter.d.ts","sourceRoot":"","sources":["../../../src/lib/shiki-highlighter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,kBAAkB,EAAyB,MAAM,YAAY,CAAA;AAErG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAErD,KAAK,WAAW,GAAG,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAErD,KAAK,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAA;AAErC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;CACpC;AAOD,eAAO,MAAM,mBAAmB,oSAkCtB,CAAA;AAE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AiDjB;AAED,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,CAMpE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,CAMjE;AAWD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAoB5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-docs-ui",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
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",
@@ -1,12 +0,0 @@
1
- import { A, u as I } from "./DocsApp-DTFpyBOl.js";
2
- import { A as e, a as r, b as s } from "./AISettingsPanel-KzfonkeY.js";
3
- import { c as g, d as p } from "./AISettingsPanel-KzfonkeY.js";
4
- export {
5
- r as AIChatDialog,
6
- g as AIChatInput,
7
- p as AIChatMessage,
8
- A as AIProvider,
9
- e as AISelectionTrigger,
10
- s as AISettingsPanel,
11
- I as useAI
12
- };