react-docs-ui 0.6.11 → 0.6.12

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,6 +1,7 @@
1
- import { l as D, m as e, C as A, n as Q, o as W, p as C, q as j, r as t, s as y, t as w, v as f, w as v, x as P, y as d } from "./index-DOSBzyKY.js";
1
+ import { a as D, j as e } from "./DocsApp-CEu0IOyd.js";
2
2
  import { useCallback as c } from "react";
3
- import { useNavigate as _, useLocation as J } from "react-router-dom";
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-BX0jqPJI.js";
4
5
  const K = {
5
6
  "zh-cn": {
6
7
  page: "页面",
@@ -81,11 +82,11 @@ const K = {
81
82
  resetThemePref: !0
82
83
  }
83
84
  };
84
- function Z({
85
+ function ee({
85
86
  children: b,
86
87
  config: S
87
88
  }) {
88
- const l = _(), m = J(), { theme: N, setTheme: g } = D(), s = c(async (a) => {
89
+ const l = A(), m = Q(), { theme: N, setTheme: g } = D(), s = c(async (a) => {
89
90
  if (navigator.clipboard && window.isSecureContext)
90
91
  await navigator.clipboard.writeText(a);
91
92
  else {
@@ -140,13 +141,13 @@ function Z({
140
141
  }, []), p = S?.enabled === !1 ? null : { ...x, ...S };
141
142
  if (!p)
142
143
  return /* @__PURE__ */ e.jsx("div", { className: "min-h-screen", children: b });
143
- const i = { ...x.page, ...p.page }, h = { ...x.site, ...p.site }, T = { ...x.appearance, ...p.appearance }, k = Object.values(i).some(Boolean), I = Object.values(h).some(Boolean), $ = Object.values(T).some(Boolean);
144
- return /* @__PURE__ */ e.jsxs(A, { children: [
145
- /* @__PURE__ */ e.jsx(Q, { asChild: !0, children: /* @__PURE__ */ e.jsx("div", { className: "min-h-screen", children: b }) }),
146
- /* @__PURE__ */ e.jsxs(W, { children: [
147
- k && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
148
- /* @__PURE__ */ e.jsx(C, { children: o.page }),
149
- /* @__PURE__ */ e.jsxs(j, { children: [
144
+ const i = { ...x.page, ...p.page }, h = { ...x.site, ...p.site }, T = { ...x.appearance, ...p.appearance }, j = Object.values(i).some(Boolean), I = Object.values(h).some(Boolean), $ = Object.values(T).some(Boolean);
145
+ return /* @__PURE__ */ e.jsxs(W, { children: [
146
+ /* @__PURE__ */ e.jsx(_, { asChild: !0, children: /* @__PURE__ */ e.jsx("div", { className: "min-h-screen", children: b }) }),
147
+ /* @__PURE__ */ e.jsxs(J, { children: [
148
+ j && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
149
+ /* @__PURE__ */ e.jsx(k, { children: o.page }),
150
+ /* @__PURE__ */ e.jsxs(C, { children: [
150
151
  i.copyUrl && /* @__PURE__ */ e.jsx(t, { onClick: L, children: o.copyUrl }),
151
152
  i.copyTitle && /* @__PURE__ */ e.jsx(t, { onClick: B, children: o.copyTitle }),
152
153
  i.copyMarkdownLink && /* @__PURE__ */ e.jsx(t, { onClick: q, children: o.copyMarkdownLink }),
@@ -162,9 +163,9 @@ function Z({
162
163
  ] })
163
164
  ] }),
164
165
  I && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
165
- k && /* @__PURE__ */ e.jsx(y, {}),
166
- /* @__PURE__ */ e.jsx(C, { children: o.site }),
167
- /* @__PURE__ */ e.jsxs(j, { children: [
166
+ j && /* @__PURE__ */ e.jsx(y, {}),
167
+ /* @__PURE__ */ e.jsx(k, { children: o.site }),
168
+ /* @__PURE__ */ e.jsxs(C, { children: [
168
169
  h.goHome && /* @__PURE__ */ e.jsx(t, { onClick: z, children: o.goHome }),
169
170
  h.quickNav && /* @__PURE__ */ e.jsxs(w, { children: [
170
171
  /* @__PURE__ */ e.jsx(f, { children: o.quickNav }),
@@ -187,9 +188,9 @@ function Z({
187
188
  ] })
188
189
  ] }),
189
190
  $ && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
190
- (k || I) && /* @__PURE__ */ e.jsx(y, {}),
191
- /* @__PURE__ */ e.jsx(C, { children: o.appearance }),
192
- /* @__PURE__ */ e.jsxs(j, { children: [
191
+ (j || I) && /* @__PURE__ */ e.jsx(y, {}),
192
+ /* @__PURE__ */ e.jsx(k, { children: o.appearance }),
193
+ /* @__PURE__ */ e.jsxs(C, { children: [
193
194
  T.theme && /* @__PURE__ */ e.jsxs(w, { children: [
194
195
  /* @__PURE__ */ e.jsx(f, { children: o.theme }),
195
196
  /* @__PURE__ */ e.jsx(v, { children: /* @__PURE__ */ e.jsxs(P, { value: N, children: [
@@ -205,5 +206,5 @@ function Z({
205
206
  ] });
206
207
  }
207
208
  export {
208
- Z as GlobalContextMenu
209
+ ee as GlobalContextMenu
209
210
  };