@publish.os/nextjs 0.0.1-alpha.90 → 0.0.1-alpha.92
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.
- package/compiler-assets/nextjs/defaults/group/index.tsx +16 -11
- package/compiler-assets/nextjs/defaults/group/layout.tsx +6 -6
- package/compiler-assets/nextjs/defaults/group/page.tsx +36 -26
- package/compiler-assets/nextjs/defaults/project/next.config.mjs +21 -11
- package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +10 -0
- package/compiler-assets/nextjs/defaults/root/css/components/code-block.css +18 -0
- package/compiler-assets/nextjs/defaults/root/index.tsx +16 -11
- package/compiler-assets/nextjs/defaults/root/layout.tsx +7 -3
- package/compiler-assets/nextjs/shims/agent-user-agents.ts +65 -0
- package/compiler-assets/nextjs/shims/document.tsx +46 -0
- package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +5 -0
- package/compiler-assets/nextjs/shims/global-layout.tsx +8 -42
- package/compiler-assets/nextjs/shims/global-not-found.tsx +69 -0
- package/compiler-assets/nextjs/shims/markdown-route.ts +2 -0
- package/compiler-assets/nextjs/shims/metadata-icons.tsx +39 -0
- package/compiler-assets/nextjs/shims/not-found-content.tsx +53 -0
- package/compiler-assets/nextjs/shims/not-found-navigation.tsx +60 -0
- package/compiler-assets/nextjs/shims/proxy.ts +254 -86
- package/compiler-assets/nextjs/shims/site-fenced-code-block.tsx +2 -6
- package/compiler-assets/nextjs/shims/site-mdx-components.tsx +28 -16
- package/compiler-assets/nextjs/shims/site-mdx.tsx +6 -1
- package/dist/{build-operation-2JAYBSKF.js → build-operation-CJDUL4OW.js} +29 -23
- package/dist/{button-c3WGnxIj.d.ts → button-D6Xp2HBm.d.ts} +4 -4
- package/dist/capture-local-source-WGGDIUU2.js +258 -0
- package/dist/chunk-22RSSUNV.js +13 -0
- package/dist/chunk-3T4HVDSC.js +426 -0
- package/dist/{chunk-WKTEO6RS.js → chunk-4BC2L2KA.js} +46 -12
- package/dist/{chunk-WDY4IK6Z.js → chunk-5J3YUNRY.js} +3 -10
- package/dist/chunk-5KAD7W53.js +248 -0
- package/dist/{chunk-DWA3ZRGW.js → chunk-6C65KV7O.js} +2 -2
- package/dist/{chunk-GGKFQ3MA.js → chunk-6D2E6UMD.js} +144 -70
- package/dist/{chunk-7OGTPSKI.js → chunk-7NY22B5U.js} +8 -3
- package/dist/chunk-DX7PXFCM.js +2519 -0
- package/dist/{chunk-726GV2NF.js → chunk-DZ3VWEV5.js} +950 -632
- package/dist/chunk-EFO6AWXN.js +19 -0
- package/dist/chunk-IL4RJOKI.js +186 -0
- package/dist/{chunk-H6XILMZX.js → chunk-NHSLTARU.js} +2588 -1493
- package/dist/{chunk-DLDFHU7Y.js → chunk-NNBJZPFM.js} +4 -2
- package/dist/{chunk-VO2I7MTM.js → chunk-SBMDONTV.js} +10 -7
- package/dist/{chunk-YLTOLYWM.js → chunk-WL75GQ5M.js} +6 -18
- package/dist/compiler.d.ts +15 -2
- package/dist/compiler.js +111 -23
- package/dist/components/blocks/agent-actions.d.ts +81 -0
- package/dist/components/blocks/agent-actions.js +563 -0
- package/dist/components/blocks/toc.d.ts +43 -0
- package/dist/components/blocks/toc.js +136 -0
- package/dist/components/ui/button.d.ts +4 -0
- package/dist/components/ui/button.js +94 -0
- package/dist/compose-44GJSMXD.js +16 -0
- package/dist/config/createNextConfig.js +19 -3
- package/dist/{dev-operation-TZDVJCN7.js → dev-operation-WNECBHZ5.js} +134 -84
- package/dist/{framework-selection-X4U6Y6QC.js → framework-selection-ZVO323PK.js} +3 -2
- package/dist/ide-support-TG74L4FF.js +16 -0
- package/dist/index.d.ts +151 -95
- package/dist/index.js +25 -0
- package/dist/jsx-dev-runtime.d.ts +6 -0
- package/dist/jsx-dev-runtime.js +100 -0
- package/dist/jsx-runtime.d.ts +7 -0
- package/dist/jsx-runtime.js +97 -0
- package/dist/kernel/components/blocks/AgentActions.d.ts +37 -8
- package/dist/kernel/components/blocks/AgentActions.js +384 -174
- package/dist/kernel/components/blocks/agent-actions.d.ts +4 -0
- package/dist/kernel/components/blocks/agent-actions.js +563 -0
- package/dist/kernel/components/blocks/animated-icon-swap.d.ts +2 -2
- package/dist/kernel/components/blocks/animated-icon-swap.js +1 -1
- package/dist/kernel/components/blocks/color-palette.d.ts +2 -2
- package/dist/kernel/components/blocks/color-palette.js +4 -4
- package/dist/kernel/components/blocks/logo-block.d.ts +2 -2
- package/dist/kernel/components/blocks/logo-block.js +1 -1
- package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +6 -5
- package/dist/kernel/components/blocks/nav-breadcrumb.js +21 -15
- package/dist/kernel/components/blocks/navbar.d.ts +5 -4
- package/dist/kernel/components/blocks/navbar.js +79 -59
- package/dist/kernel/components/blocks/navigation-progress.d.ts +2 -2
- package/dist/kernel/components/blocks/navigation-progress.js +2 -2
- package/dist/kernel/components/blocks/next-prev.d.ts +4 -4
- package/dist/kernel/components/blocks/next-prev.js +30 -7
- package/dist/kernel/components/blocks/page-list.d.ts +4 -4
- package/dist/kernel/components/blocks/page-list.js +32 -9
- package/dist/kernel/components/blocks/search.d.ts +9 -15
- package/dist/kernel/components/blocks/search.js +16 -17
- package/dist/kernel/components/blocks/sidebar-node.d.ts +3 -5
- package/dist/kernel/components/blocks/sidebar-node.js +13 -3
- package/dist/kernel/components/blocks/sidebar.d.ts +6 -7
- package/dist/kernel/components/blocks/sidebar.js +137 -28
- package/dist/kernel/components/blocks/theme-toggle.d.ts +3 -4
- package/dist/kernel/components/blocks/theme-toggle.js +5 -5
- package/dist/kernel/components/blocks/toc-client.d.ts +40 -0
- package/dist/kernel/components/blocks/toc-client.js +495 -0
- package/dist/kernel/components/blocks/toc.d.ts +20 -2
- package/dist/kernel/components/blocks/toc.js +121 -179
- package/dist/kernel/components/mdx/components/blockquote.d.ts +2 -2
- package/dist/kernel/components/mdx/components/blockquote.js +1 -1
- package/dist/kernel/components/mdx/components/callout.d.ts +3 -3
- package/dist/kernel/components/mdx/components/callout.js +1 -1
- package/dist/kernel/components/mdx/components/code-block.d.ts +2 -2
- package/dist/kernel/components/mdx/components/code-block.js +2 -2
- package/dist/kernel/components/mdx/components/copy-code-button.d.ts +2 -2
- package/dist/kernel/components/mdx/components/copy-code-button.js +5 -4
- package/dist/kernel/components/mdx/components/figure-caption.d.ts +3 -3
- package/dist/kernel/components/mdx/components/figure-caption.js +3 -2
- package/dist/kernel/components/mdx/components/figure.d.ts +8 -4
- package/dist/kernel/components/mdx/components/figure.js +23 -13
- package/dist/kernel/components/mdx/components/footnotes.d.ts +2 -2
- package/dist/kernel/components/mdx/components/footnotes.js +1 -1
- package/dist/kernel/components/mdx/components/heading-copy-link.d.ts +2 -2
- package/dist/kernel/components/mdx/components/heading-copy-link.js +1 -1
- package/dist/kernel/components/mdx/components/heading.d.ts +2 -2
- package/dist/kernel/components/mdx/components/heading.js +6 -3
- package/dist/kernel/components/mdx/components/hr.d.ts +4 -4
- package/dist/kernel/components/mdx/components/hr.js +2 -2
- package/dist/kernel/components/mdx/components/image-zoom.d.ts +3 -3
- package/dist/kernel/components/mdx/components/image-zoom.js +4 -3
- package/dist/kernel/components/mdx/components/image.d.ts +2 -2
- package/dist/kernel/components/mdx/components/image.js +22 -17
- package/dist/kernel/components/mdx/components/inline-code.d.ts +2 -2
- package/dist/kernel/components/mdx/components/inline-code.js +1 -1
- package/dist/kernel/components/mdx/components/kbd.d.ts +3 -3
- package/dist/kernel/components/mdx/components/kbd.js +2 -2
- package/dist/kernel/components/mdx/components/link.d.ts +6 -6
- package/dist/kernel/components/mdx/components/link.js +2 -2
- package/dist/kernel/components/mdx/components/paragraph.d.ts +2 -2
- package/dist/kernel/components/mdx/components/paragraph.js +1 -1
- package/dist/kernel/components/mdx/components/strikethrough.d.ts +2 -2
- package/dist/kernel/components/mdx/components/strikethrough.js +1 -1
- package/dist/kernel/components/mdx/components/table.d.ts +7 -7
- package/dist/kernel/components/mdx/components/table.js +2 -2
- package/dist/kernel/components/mdx/components/task-list.d.ts +3 -3
- package/dist/kernel/components/mdx/components/task-list.js +1 -1
- package/dist/kernel/components/mdx/components/video-player.d.ts +8 -4
- package/dist/kernel/components/mdx/components/video-player.js +6 -2
- package/dist/kernel/components/mdx/components/video.d.ts +5 -4
- package/dist/kernel/components/mdx/components/video.js +7 -5
- package/dist/kernel/components/mdx/error-boundary.d.ts +3 -4
- package/dist/kernel/components/mdx/error-boundary.js +2 -2
- package/dist/kernel/components/mdx/error-fallback.d.ts +2 -2
- package/dist/kernel/components/mdx/error-fallback.js +1 -1
- package/dist/kernel/components/mdx/mdx.d.ts +57 -16
- package/dist/kernel/components/mdx/mdx.js +232 -35
- package/dist/kernel/components/mdx/rehype-heading-ids.d.ts +1 -0
- package/dist/kernel/components/mdx/rehype-heading-ids.js +5 -3
- package/dist/kernel/components/mdx/types.d.ts +1 -1
- package/dist/kernel/components/next-image.d.ts +12 -0
- package/dist/kernel/components/next-image.js +61 -0
- package/dist/kernel/components/ui/accordion.d.ts +7 -7
- package/dist/kernel/components/ui/accordion.js +1 -1
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +3 -4
- package/dist/kernel/components/ui/breadcrumb-trail.js +2 -2
- package/dist/kernel/components/ui/breadcrumb.d.ts +14 -14
- package/dist/kernel/components/ui/breadcrumb.js +4 -4
- package/dist/kernel/components/ui/button-group.d.ts +6 -6
- package/dist/kernel/components/ui/button-group.js +3 -3
- package/dist/kernel/components/ui/button.d.ts +59 -7
- package/dist/kernel/components/ui/button.js +43 -39
- package/dist/kernel/components/ui/card.d.ts +7 -7
- package/dist/kernel/components/ui/card.js +1 -1
- package/dist/kernel/components/ui/dialog.d.ts +10 -10
- package/dist/kernel/components/ui/dialog.js +1 -1
- package/dist/kernel/components/ui/drawer.d.ts +12 -12
- package/dist/kernel/components/ui/drawer.js +1 -1
- package/dist/kernel/components/ui/input.d.ts +2 -2
- package/dist/kernel/components/ui/input.js +1 -1
- package/dist/kernel/components/ui/kbd.d.ts +4 -4
- package/dist/kernel/components/ui/kbd.js +1 -1
- package/dist/kernel/components/ui/link.d.ts +11 -5
- package/dist/kernel/components/ui/link.js +2 -2
- package/dist/kernel/components/ui/menu.d.ts +22 -22
- package/dist/kernel/components/ui/menu.js +1 -1
- package/dist/kernel/components/ui/mod-key.d.ts +2 -3
- package/dist/kernel/components/ui/mod-key.js +2 -2
- package/dist/kernel/components/ui/navigation-menu.d.ts +15 -15
- package/dist/kernel/components/ui/navigation-menu.js +1 -1
- package/dist/kernel/components/ui/popover.d.ts +11 -11
- package/dist/kernel/components/ui/popover.js +1 -1
- package/dist/kernel/components/ui/progress.d.ts +7 -7
- package/dist/kernel/components/ui/progress.js +1 -1
- package/dist/kernel/components/ui/scroll-area.d.ts +9 -10
- package/dist/kernel/components/ui/scroll-area.js +1 -1
- package/dist/kernel/components/ui/select.d.ts +16 -16
- package/dist/kernel/components/ui/select.js +1 -1
- package/dist/kernel/components/ui/separator.d.ts +3 -3
- package/dist/kernel/components/ui/separator.js +1 -1
- package/dist/kernel/components/ui/table.d.ts +7 -7
- package/dist/kernel/components/ui/table.js +1 -1
- package/dist/kernel/components/ui/tabs.d.ts +12 -12
- package/dist/kernel/components/ui/tabs.js +1 -1
- package/dist/kernel/components/ui/tag.d.ts +3 -3
- package/dist/kernel/components/ui/tag.js +1 -1
- package/dist/kernel/components/ui/text.d.ts +4 -4
- package/dist/kernel/components/ui/text.js +1 -1
- package/dist/kernel/components/ui/toast.d.ts +11 -11
- package/dist/kernel/components/ui/toast.js +1 -1
- package/dist/kernel/components/ui/tooltip.d.ts +9 -9
- package/dist/kernel/components/ui/tooltip.js +1 -1
- package/dist/kernel/defaults.registry.d.ts +4 -17
- package/dist/kernel/defaults.registry.js +4 -19
- package/dist/kernel/routes/agent/markdown.d.ts +7 -0
- package/dist/kernel/routes/agent/markdown.js +229 -54
- package/dist/kernel/routes/layouts/group.d.ts +1 -1
- package/dist/kernel/routes/layouts/group.js +5 -7
- package/dist/kernel/routes/metadata/feed.d.ts +1 -2
- package/dist/kernel/routes/metadata/feed.js +119 -88
- package/dist/kernel/routes/metadata/llms.d.ts +3 -23
- package/dist/kernel/routes/metadata/llms.js +2 -103
- package/dist/kernel/routes/metadata/og-image.js +1 -1
- package/dist/kernel/routes/metadata/robots.d.ts +5 -3
- package/dist/kernel/routes/metadata/robots.js +4 -25
- package/dist/kernel/routes/metadata/sitemap.d.ts +36 -3
- package/dist/kernel/routes/metadata/sitemap.js +277 -49
- package/dist/kernel/routes/not-found.d.ts +34 -0
- package/dist/kernel/routes/not-found.js +213 -0
- package/dist/kernel/routes/pages/group.d.ts +5 -5
- package/dist/kernel/routes/pages/group.js +11 -5
- package/dist/kernel/routes/pages/leaf.d.ts +38 -6
- package/dist/kernel/routes/pages/leaf.js +21 -12
- package/dist/kernel/routes/pages/root.d.ts +5 -5
- package/dist/kernel/routes/pages/root.js +21 -6
- package/dist/keyboard-shortcuts.d.ts +2 -2
- package/dist/keyboard-shortcuts.js +1 -1
- package/dist/manifest-types-CcVPH_jh.d.ts +83 -0
- package/dist/resolvers/manifest-resolver.d.ts +2 -2
- package/dist/resolvers/manifest-resolver.js +65 -35
- package/dist/route-metadata-og-image-BeKKFHg7.d.ts +58 -0
- package/dist/search.d.ts +2 -9
- package/dist/search.js +9 -16
- package/dist/sidebar-types-CMrMM0Nj.d.ts +105 -0
- package/dist/theme-scope.d.ts +2 -2
- package/dist/theme-scope.js +1 -1
- package/dist/types-BbqmOzLC.d.ts +168 -0
- package/dist/types-TjH1ek0X.d.ts +22 -0
- package/dist/types-sM2g9nW0.d.ts +12 -0
- package/dist/types.d.ts +117 -91
- package/dist/utils/heading-ids.js +30 -11
- package/dist/utils/toc-selection.d.ts +7 -0
- package/dist/utils/toc-selection.js +14 -0
- package/dist/validate-local-source-EN2GW4FR.js +16 -0
- package/dist/validate-publish-os-source-OEWQDB7B.js +14 -0
- package/init/seed/minimal/publish.os/assets/blog/hello-world.svg +13 -0
- package/init/seed/minimal/publish.os/assets/favicon.dark.svg +13 -0
- package/init/seed/minimal/publish.os/assets/favicon.svg +13 -0
- package/init/seed/minimal/publish.os/blog/content/hello-world.mdx +48 -0
- package/init/seed/minimal/publish.os/blog/content/series-a.mdx +11 -0
- package/init/seed/minimal/publish.os/blog/index.tsx +85 -0
- package/init/seed/minimal/publish.os/blog/layout.tsx +13 -0
- package/init/seed/minimal/publish.os/blog/page.tsx +91 -0
- package/init/seed/minimal/publish.os/components/blog/copy-link.tsx +64 -0
- package/init/seed/minimal/publish.os/components/blog/frontmatter.ts +41 -0
- package/init/seed/minimal/publish.os/docs/content/get-started.mdx +2 -3
- package/init/seed/minimal/publish.os/docs/content/groups.mdx +5 -6
- package/init/seed/minimal/publish.os/publish.os.config.json +17 -2
- package/init/seed/minimal/publish.os/theme.css +3 -3
- package/init/seed/minimal/seed.json +12 -4
- package/init/seed/scratch/publish.os/docs/content/get-started.mdx +1 -1
- package/init/seed/scratch/publish.os/publish.os.config.json +1 -1
- package/package.json +48 -23
- package/release/app/phosphor/package.json +4 -4
- package/release/app/phosphor/pnpm-lock.yaml.template +123 -184
- package/release/compiler/package.json +5 -3
- package/release/compiler/pnpm-lock.yaml.template +153 -183
- package/release/release.json +6 -6
- package/dist/button-CtzUJB8u.d.ts +0 -11
- package/dist/chunk-535TM4A5.js +0 -1455
- package/dist/chunk-B2V22WRT.js +0 -297
- package/dist/chunk-NECL5IBJ.js +0 -318
- package/dist/chunk-SVYGXXYR.js +0 -36
- package/dist/chunk-UF6ATARM.js +0 -1100
- package/dist/compose-NN23UJGC.js +0 -13
- package/dist/ide-support-ZNW7ODFY.js +0 -15
- package/dist/kernel/components/blocks/design-system-preview.d.ts +0 -61
- package/dist/kernel/components/blocks/design-system-preview.js +0 -667
- package/dist/kernel/components/blocks/link-playground.d.ts +0 -5
- package/dist/kernel/components/blocks/link-playground.js +0 -744
- package/dist/kernel/components/blocks/navigation-progress-playground.d.ts +0 -5
- package/dist/kernel/components/blocks/navigation-progress-playground.js +0 -629
- package/dist/kernel/components/ui/theme-toggle.d.ts +0 -24
- package/dist/kernel/components/ui/theme-toggle.js +0 -53
- package/dist/sidebar-types-DKpR27II.d.ts +0 -25
- package/dist/types-BzkZty3r.d.ts +0 -147
- package/dist/types-CJWRG05y.d.ts +0 -76
- package/dist/types-CUtrppxt.d.ts +0 -69
- package/dist/validate-local-source-XRL2Y7XE.js +0 -14
- package/dist/validate-publish-os-source-DAPZ4QGE.js +0 -12
- package/init/seed/minimal/publish.os/assets/favicon/favicon.dark.png +0 -0
- package/init/seed/minimal/publish.os/assets/favicon/favicon.png +0 -0
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/ui/theme-toggle.tsx
|
|
4
|
-
import { Button } from "@publish.os/nextjs/kernel/components/ui/button";
|
|
5
|
-
import { MonitorIcon, MoonIcon, SunIcon } from "@phosphor-icons/react/ssr";
|
|
6
|
-
import { useTheme } from "next-themes";
|
|
7
|
-
import { useEffect, useMemo, useState } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var themeOrder = ["system", "light", "dark"];
|
|
10
|
-
function ThemeIcon({ theme }) {
|
|
11
|
-
return theme === "light" ? /* @__PURE__ */ jsx(SunIcon, { "aria-hidden": "true", size: 16 }) : theme === "dark" ? /* @__PURE__ */ jsx(MoonIcon, { "aria-hidden": "true", size: 16 }) : /* @__PURE__ */ jsx(MonitorIcon, { "aria-hidden": "true", size: 16 });
|
|
12
|
-
}
|
|
13
|
-
function normalizeTheme(theme) {
|
|
14
|
-
return theme === "light" || theme === "dark" ? theme : "system";
|
|
15
|
-
}
|
|
16
|
-
function ThemeToggle({
|
|
17
|
-
className,
|
|
18
|
-
onClick,
|
|
19
|
-
size = "sm",
|
|
20
|
-
title,
|
|
21
|
-
type = "button",
|
|
22
|
-
variant = "ghost",
|
|
23
|
-
...props
|
|
24
|
-
}) {
|
|
25
|
-
let { theme, setTheme } = useTheme(), [mounted, setMounted] = useState(!1), activeTheme = normalizeTheme(theme), nextTheme = useMemo(() => {
|
|
26
|
-
let index = themeOrder.indexOf(activeTheme);
|
|
27
|
-
return themeOrder[(index + 1) % themeOrder.length] ?? "system";
|
|
28
|
-
}, [activeTheme]);
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
setMounted(!0);
|
|
31
|
-
}, []);
|
|
32
|
-
let label = mounted ? `Switch to ${nextTheme} theme` : "Theme preference";
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
Button,
|
|
35
|
-
{
|
|
36
|
-
"aria-label": props["aria-label"] ?? label,
|
|
37
|
-
className,
|
|
38
|
-
iconOnly: !0,
|
|
39
|
-
onClick: (event) => {
|
|
40
|
-
onClick?.(event), event.defaultPrevented || setTheme(nextTheme);
|
|
41
|
-
},
|
|
42
|
-
size,
|
|
43
|
-
title: title ?? label,
|
|
44
|
-
type,
|
|
45
|
-
variant,
|
|
46
|
-
...props,
|
|
47
|
-
children: /* @__PURE__ */ jsx(ThemeIcon, { theme: mounted ? activeTheme : "system" })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
ThemeToggle
|
|
53
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Ref, ReactNode, MouseEvent } from 'react';
|
|
2
|
-
import { T as TreeNode } from './types-CJWRG05y.js';
|
|
3
|
-
|
|
4
|
-
type SidebarTreeNode = TreeNode & {
|
|
5
|
-
children?: SidebarTreeNode[];
|
|
6
|
-
};
|
|
7
|
-
type SidebarActiveState = "path-active" | "child-path-active";
|
|
8
|
-
type SidebarDepth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
9
|
-
type SidebarNodePrimitiveProps = {
|
|
10
|
-
activeState?: SidebarActiveState;
|
|
11
|
-
activeItemRef?: Ref<HTMLDivElement>;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
contentId?: string;
|
|
14
|
-
depth: SidebarDepth;
|
|
15
|
-
expanded?: boolean;
|
|
16
|
-
href?: string;
|
|
17
|
-
isExpandable?: boolean;
|
|
18
|
-
node: SidebarTreeNode;
|
|
19
|
-
onLinkClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
20
|
-
onToggle?: () => void;
|
|
21
|
-
parentExpanded: boolean;
|
|
22
|
-
title: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type { SidebarNodePrimitiveProps as S, SidebarTreeNode as a, SidebarActiveState as b, SidebarDepth as c };
|
package/dist/types-BzkZty3r.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
type SiteData = {
|
|
2
|
-
name: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
origin?: string;
|
|
5
|
-
og?: OgIndexMetadata;
|
|
6
|
-
};
|
|
7
|
-
type OgImageMetadata = string | {
|
|
8
|
-
src: string;
|
|
9
|
-
alt?: string;
|
|
10
|
-
};
|
|
11
|
-
type OgMetadata = {
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
image?: OgImageMetadata;
|
|
15
|
-
};
|
|
16
|
-
type OgIndexMetadata = OgMetadata & {
|
|
17
|
-
scope?: "page" | "subtree";
|
|
18
|
-
};
|
|
19
|
-
type Author = {
|
|
20
|
-
id?: string;
|
|
21
|
-
name: string;
|
|
22
|
-
handle?: string;
|
|
23
|
-
avatar?: string;
|
|
24
|
-
url?: string;
|
|
25
|
-
};
|
|
26
|
-
type PageStatus = "published" | "draft" | "archived";
|
|
27
|
-
type PageData<TMeta extends Record<string, unknown> = Record<string, unknown>> = {
|
|
28
|
-
fileID: string;
|
|
29
|
-
group: string;
|
|
30
|
-
slug: string;
|
|
31
|
-
path: string;
|
|
32
|
-
title: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
status: PageStatus;
|
|
35
|
-
publishedAt?: string;
|
|
36
|
-
updatedAt?: string;
|
|
37
|
-
authors: Author[];
|
|
38
|
-
tags: string[];
|
|
39
|
-
og?: OgMetadata;
|
|
40
|
-
meta: TMeta;
|
|
41
|
-
body: string;
|
|
42
|
-
};
|
|
43
|
-
type PageNode = {
|
|
44
|
-
type: "page";
|
|
45
|
-
fileID: string;
|
|
46
|
-
title: string;
|
|
47
|
-
path: string;
|
|
48
|
-
href?: string;
|
|
49
|
-
group: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
status: PageStatus;
|
|
52
|
-
publishedAt?: string;
|
|
53
|
-
updatedAt?: string;
|
|
54
|
-
authors: Author[];
|
|
55
|
-
tags?: string[];
|
|
56
|
-
og?: OgMetadata;
|
|
57
|
-
meta: Record<string, unknown>;
|
|
58
|
-
};
|
|
59
|
-
type SectionNode = {
|
|
60
|
-
type: "section";
|
|
61
|
-
id: string;
|
|
62
|
-
title: string;
|
|
63
|
-
path?: string;
|
|
64
|
-
href?: string;
|
|
65
|
-
group?: string;
|
|
66
|
-
children: TreeNode[];
|
|
67
|
-
};
|
|
68
|
-
type FolderNode = {
|
|
69
|
-
type: "folder";
|
|
70
|
-
id: string;
|
|
71
|
-
title: string;
|
|
72
|
-
path?: string;
|
|
73
|
-
href?: string;
|
|
74
|
-
group?: string;
|
|
75
|
-
children: TreeNode[];
|
|
76
|
-
};
|
|
77
|
-
type LinkNode = {
|
|
78
|
-
type: "link";
|
|
79
|
-
id: string;
|
|
80
|
-
title: string;
|
|
81
|
-
href: string;
|
|
82
|
-
};
|
|
83
|
-
type TreeNode = PageNode | SectionNode | FolderNode | LinkNode;
|
|
84
|
-
type RouteRecord = {
|
|
85
|
-
fileID: string;
|
|
86
|
-
slug: string;
|
|
87
|
-
path: string;
|
|
88
|
-
group: string;
|
|
89
|
-
};
|
|
90
|
-
type ResolvedAttribution = {
|
|
91
|
-
enabled: false;
|
|
92
|
-
} | {
|
|
93
|
-
enabled: true;
|
|
94
|
-
variant: "publish-dev";
|
|
95
|
-
label?: string;
|
|
96
|
-
hrefLabel?: string;
|
|
97
|
-
href: string;
|
|
98
|
-
};
|
|
99
|
-
type GroupManifest = {
|
|
100
|
-
key: string;
|
|
101
|
-
title: string;
|
|
102
|
-
path: string;
|
|
103
|
-
origin?: string;
|
|
104
|
-
ancestry?: string[];
|
|
105
|
-
og?: OgIndexMetadata;
|
|
106
|
-
meta?: Record<string, unknown>;
|
|
107
|
-
tree: TreeNode[];
|
|
108
|
-
pages: PageData[];
|
|
109
|
-
};
|
|
110
|
-
type ManifestLike = {
|
|
111
|
-
site: SiteData;
|
|
112
|
-
groups: Record<string, GroupManifest>;
|
|
113
|
-
routes: RouteRecord[];
|
|
114
|
-
pages: PageData[];
|
|
115
|
-
tree: TreeNode[];
|
|
116
|
-
attribution?: Record<string, ResolvedAttribution>;
|
|
117
|
-
contentHash: string;
|
|
118
|
-
};
|
|
119
|
-
type RootPageProps = {
|
|
120
|
-
site: SiteData;
|
|
121
|
-
tree: TreeNode[];
|
|
122
|
-
};
|
|
123
|
-
type LayoutProps = {
|
|
124
|
-
children: React.ReactNode;
|
|
125
|
-
site: SiteData;
|
|
126
|
-
tree: TreeNode[];
|
|
127
|
-
node: TreeNode;
|
|
128
|
-
currentPath: string;
|
|
129
|
-
group: string;
|
|
130
|
-
};
|
|
131
|
-
type PageProps<TMeta extends Record<string, unknown> = Record<string, unknown>> = {
|
|
132
|
-
site: SiteData;
|
|
133
|
-
tree: TreeNode[];
|
|
134
|
-
node: TreeNode;
|
|
135
|
-
page: PageData<TMeta>;
|
|
136
|
-
currentPath: string;
|
|
137
|
-
group: string;
|
|
138
|
-
};
|
|
139
|
-
type IndexPageProps = {
|
|
140
|
-
site: SiteData;
|
|
141
|
-
tree: TreeNode[];
|
|
142
|
-
node: TreeNode;
|
|
143
|
-
currentPath: string;
|
|
144
|
-
group: string;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export type { IndexPageProps as I, LayoutProps as L, ManifestLike as M, PageStatus as P, ResolvedAttribution as R, PageProps as a, RootPageProps as b };
|
package/dist/types-CJWRG05y.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
type OgImageMetadata = string | {
|
|
2
|
-
src: string;
|
|
3
|
-
alt?: string;
|
|
4
|
-
};
|
|
5
|
-
type OgMetadata = {
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
image?: OgImageMetadata;
|
|
9
|
-
};
|
|
10
|
-
type Author = {
|
|
11
|
-
id?: string;
|
|
12
|
-
name: string;
|
|
13
|
-
handle?: string;
|
|
14
|
-
avatar?: string;
|
|
15
|
-
url?: string;
|
|
16
|
-
};
|
|
17
|
-
type PageStatus = "published" | "draft" | "archived";
|
|
18
|
-
type PageData<TMeta extends Record<string, unknown> = Record<string, unknown>> = {
|
|
19
|
-
fileID: string;
|
|
20
|
-
group: string;
|
|
21
|
-
slug: string;
|
|
22
|
-
path: string;
|
|
23
|
-
title: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
status: PageStatus;
|
|
26
|
-
publishedAt?: string;
|
|
27
|
-
updatedAt?: string;
|
|
28
|
-
authors: Author[];
|
|
29
|
-
tags: string[];
|
|
30
|
-
og?: OgMetadata;
|
|
31
|
-
meta: TMeta;
|
|
32
|
-
body: string;
|
|
33
|
-
};
|
|
34
|
-
type PageNode = {
|
|
35
|
-
type: "page";
|
|
36
|
-
fileID: string;
|
|
37
|
-
title: string;
|
|
38
|
-
path: string;
|
|
39
|
-
href?: string;
|
|
40
|
-
group: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
status: PageStatus;
|
|
43
|
-
publishedAt?: string;
|
|
44
|
-
updatedAt?: string;
|
|
45
|
-
authors: Author[];
|
|
46
|
-
tags?: string[];
|
|
47
|
-
og?: OgMetadata;
|
|
48
|
-
meta: Record<string, unknown>;
|
|
49
|
-
};
|
|
50
|
-
type SectionNode = {
|
|
51
|
-
type: "section";
|
|
52
|
-
id: string;
|
|
53
|
-
title: string;
|
|
54
|
-
path?: string;
|
|
55
|
-
href?: string;
|
|
56
|
-
group?: string;
|
|
57
|
-
children: TreeNode[];
|
|
58
|
-
};
|
|
59
|
-
type FolderNode = {
|
|
60
|
-
type: "folder";
|
|
61
|
-
id: string;
|
|
62
|
-
title: string;
|
|
63
|
-
path?: string;
|
|
64
|
-
href?: string;
|
|
65
|
-
group?: string;
|
|
66
|
-
children: TreeNode[];
|
|
67
|
-
};
|
|
68
|
-
type LinkNode = {
|
|
69
|
-
type: "link";
|
|
70
|
-
id: string;
|
|
71
|
-
title: string;
|
|
72
|
-
href: string;
|
|
73
|
-
};
|
|
74
|
-
type TreeNode = PageNode | SectionNode | FolderNode | LinkNode;
|
|
75
|
-
|
|
76
|
-
export type { PageData as P, TreeNode as T };
|
package/dist/types-CUtrppxt.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
type SiteData = {
|
|
2
|
-
name: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
origin?: string;
|
|
5
|
-
og?: OgIndexMetadata;
|
|
6
|
-
};
|
|
7
|
-
type OgImageMetadata = string | {
|
|
8
|
-
src: string;
|
|
9
|
-
alt?: string;
|
|
10
|
-
};
|
|
11
|
-
type OgMetadata = {
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
image?: OgImageMetadata;
|
|
15
|
-
};
|
|
16
|
-
type OgIndexMetadata = OgMetadata & {
|
|
17
|
-
scope?: "page" | "subtree";
|
|
18
|
-
};
|
|
19
|
-
type Author = {
|
|
20
|
-
id?: string;
|
|
21
|
-
name: string;
|
|
22
|
-
handle?: string;
|
|
23
|
-
avatar?: string;
|
|
24
|
-
url?: string;
|
|
25
|
-
};
|
|
26
|
-
type PageStatus = "published" | "draft" | "archived";
|
|
27
|
-
type PageNode = {
|
|
28
|
-
type: "page";
|
|
29
|
-
fileID: string;
|
|
30
|
-
title: string;
|
|
31
|
-
path: string;
|
|
32
|
-
href?: string;
|
|
33
|
-
group: string;
|
|
34
|
-
description?: string;
|
|
35
|
-
status: PageStatus;
|
|
36
|
-
publishedAt?: string;
|
|
37
|
-
updatedAt?: string;
|
|
38
|
-
authors: Author[];
|
|
39
|
-
tags?: string[];
|
|
40
|
-
og?: OgMetadata;
|
|
41
|
-
meta: Record<string, unknown>;
|
|
42
|
-
};
|
|
43
|
-
type SectionNode = {
|
|
44
|
-
type: "section";
|
|
45
|
-
id: string;
|
|
46
|
-
title: string;
|
|
47
|
-
path?: string;
|
|
48
|
-
href?: string;
|
|
49
|
-
group?: string;
|
|
50
|
-
children: TreeNode[];
|
|
51
|
-
};
|
|
52
|
-
type FolderNode = {
|
|
53
|
-
type: "folder";
|
|
54
|
-
id: string;
|
|
55
|
-
title: string;
|
|
56
|
-
path?: string;
|
|
57
|
-
href?: string;
|
|
58
|
-
group?: string;
|
|
59
|
-
children: TreeNode[];
|
|
60
|
-
};
|
|
61
|
-
type LinkNode = {
|
|
62
|
-
type: "link";
|
|
63
|
-
id: string;
|
|
64
|
-
title: string;
|
|
65
|
-
href: string;
|
|
66
|
-
};
|
|
67
|
-
type TreeNode = PageNode | SectionNode | FolderNode | LinkNode;
|
|
68
|
-
|
|
69
|
-
export type { SiteData as S, TreeNode as T };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validateLocalSource
|
|
3
|
-
} from "./chunk-VO2I7MTM.js";
|
|
4
|
-
import "./chunk-726GV2NF.js";
|
|
5
|
-
import "./chunk-NECL5IBJ.js";
|
|
6
|
-
import "./chunk-535TM4A5.js";
|
|
7
|
-
import "./chunk-DLDFHU7Y.js";
|
|
8
|
-
import "./chunk-7OGTPSKI.js";
|
|
9
|
-
import "./chunk-YLTOLYWM.js";
|
|
10
|
-
import "./chunk-AI2UULNX.js";
|
|
11
|
-
import "./chunk-WDY4IK6Z.js";
|
|
12
|
-
export {
|
|
13
|
-
validateLocalSource
|
|
14
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validatePublishOsSource
|
|
3
|
-
} from "./chunk-726GV2NF.js";
|
|
4
|
-
import "./chunk-NECL5IBJ.js";
|
|
5
|
-
import "./chunk-535TM4A5.js";
|
|
6
|
-
import "./chunk-7OGTPSKI.js";
|
|
7
|
-
import "./chunk-YLTOLYWM.js";
|
|
8
|
-
import "./chunk-AI2UULNX.js";
|
|
9
|
-
import "./chunk-WDY4IK6Z.js";
|
|
10
|
-
export {
|
|
11
|
-
validatePublishOsSource
|
|
12
|
-
};
|
|
Binary file
|
|
Binary file
|