@publish.os/nextjs 0.0.1-alpha.91 → 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 -2
- package/compiler-assets/nextjs/defaults/group/page.tsx +7 -6
- package/compiler-assets/nextjs/defaults/project/next.config.mjs +2 -1
- 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 +9 -1
- package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +3 -0
- package/compiler-assets/nextjs/shims/proxy.ts +156 -54
- package/dist/{build-operation-5QMLXF7N.js → build-operation-CJDUL4OW.js} +5 -5
- package/dist/{chunk-GBPLER5H.js → chunk-3T4HVDSC.js} +2 -2
- package/dist/{chunk-UYGCOWRF.js → chunk-DX7PXFCM.js} +860 -50
- package/dist/{chunk-F3AGNDF4.js → chunk-DZ3VWEV5.js} +860 -575
- package/dist/{chunk-OXOFRXEI.js → chunk-NHSLTARU.js} +1284 -1164
- package/dist/{chunk-ORIUWJBQ.js → chunk-SBMDONTV.js} +3 -2
- package/dist/compiler.js +42 -23
- package/dist/components/blocks/agent-actions.d.ts +7 -7
- package/dist/components/blocks/agent-actions.js +1 -32
- package/dist/components/blocks/toc.d.ts +7 -7
- package/dist/components/ui/button.d.ts +1 -2
- package/dist/{compose-CVBJRAF6.js → compose-44GJSMXD.js} +2 -2
- package/dist/config/createNextConfig.js +2 -0
- package/dist/{dev-operation-OSHHWRWK.js → dev-operation-WNECBHZ5.js} +17 -7
- package/dist/{ide-support-CU6Z5PVR.js → ide-support-TG74L4FF.js} +3 -3
- package/dist/index.d.ts +143 -126
- package/dist/index.js +25 -0
- package/dist/kernel/components/blocks/AgentActions.d.ts +7 -7
- package/dist/kernel/components/blocks/AgentActions.js +1 -32
- package/dist/kernel/components/blocks/agent-actions.d.ts +1 -2
- package/dist/kernel/components/blocks/agent-actions.js +1 -32
- package/dist/kernel/components/blocks/animated-icon-swap.d.ts +2 -2
- package/dist/kernel/components/blocks/color-palette.d.ts +2 -2
- package/dist/kernel/components/blocks/logo-block.d.ts +2 -2
- package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +6 -5
- package/dist/kernel/components/blocks/nav-breadcrumb.js +19 -13
- package/dist/kernel/components/blocks/navbar.d.ts +5 -4
- package/dist/kernel/components/blocks/navbar.js +62 -42
- package/dist/kernel/components/blocks/navigation-progress.d.ts +2 -2
- package/dist/kernel/components/blocks/next-prev.d.ts +4 -4
- package/dist/kernel/components/blocks/next-prev.js +29 -6
- package/dist/kernel/components/blocks/page-list.d.ts +4 -4
- package/dist/kernel/components/blocks/page-list.js +30 -7
- package/dist/kernel/components/blocks/search.d.ts +9 -15
- package/dist/kernel/components/blocks/sidebar-node.d.ts +3 -5
- package/dist/kernel/components/blocks/sidebar-node.js +12 -2
- package/dist/kernel/components/blocks/sidebar.d.ts +6 -7
- package/dist/kernel/components/blocks/sidebar.js +132 -26
- package/dist/kernel/components/blocks/theme-toggle.d.ts +3 -4
- package/dist/kernel/components/blocks/toc-client.d.ts +7 -7
- package/dist/kernel/components/blocks/toc.d.ts +3 -3
- package/dist/kernel/components/mdx/components/blockquote.d.ts +2 -2
- package/dist/kernel/components/mdx/components/callout.d.ts +3 -3
- package/dist/kernel/components/mdx/components/code-block.d.ts +2 -2
- package/dist/kernel/components/mdx/components/copy-code-button.d.ts +2 -2
- package/dist/kernel/components/mdx/components/figure-caption.d.ts +2 -2
- package/dist/kernel/components/mdx/components/figure.d.ts +3 -3
- package/dist/kernel/components/mdx/components/footnotes.d.ts +2 -2
- package/dist/kernel/components/mdx/components/heading-copy-link.d.ts +2 -2
- package/dist/kernel/components/mdx/components/heading.d.ts +2 -2
- package/dist/kernel/components/mdx/components/hr.d.ts +4 -4
- package/dist/kernel/components/mdx/components/image-zoom.d.ts +3 -3
- package/dist/kernel/components/mdx/components/image-zoom.js +3 -2
- package/dist/kernel/components/mdx/components/image.d.ts +2 -2
- package/dist/kernel/components/mdx/components/image.js +1 -1
- package/dist/kernel/components/mdx/components/inline-code.d.ts +2 -2
- package/dist/kernel/components/mdx/components/kbd.d.ts +3 -3
- package/dist/kernel/components/mdx/components/link.d.ts +3 -3
- package/dist/kernel/components/mdx/components/paragraph.d.ts +2 -2
- package/dist/kernel/components/mdx/components/strikethrough.d.ts +2 -2
- package/dist/kernel/components/mdx/components/table.d.ts +7 -7
- package/dist/kernel/components/mdx/components/task-list.d.ts +3 -3
- package/dist/kernel/components/mdx/components/video-player.d.ts +2 -2
- package/dist/kernel/components/mdx/components/video.d.ts +2 -3
- package/dist/kernel/components/mdx/error-boundary.d.ts +2 -3
- package/dist/kernel/components/mdx/error-fallback.d.ts +2 -2
- package/dist/kernel/components/mdx/mdx.d.ts +42 -11
- package/dist/kernel/components/mdx/mdx.js +1 -1
- package/dist/kernel/components/next-image.d.ts +3 -3
- package/dist/kernel/components/ui/accordion.d.ts +7 -7
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +2 -3
- package/dist/kernel/components/ui/breadcrumb.d.ts +13 -13
- package/dist/kernel/components/ui/button-group.d.ts +5 -5
- package/dist/kernel/components/ui/button.d.ts +3 -3
- package/dist/kernel/components/ui/card.d.ts +7 -7
- package/dist/kernel/components/ui/dialog.d.ts +10 -10
- package/dist/kernel/components/ui/drawer.d.ts +12 -12
- package/dist/kernel/components/ui/kbd.d.ts +3 -3
- package/dist/kernel/components/ui/link.d.ts +3 -3
- package/dist/kernel/components/ui/menu.d.ts +22 -22
- package/dist/kernel/components/ui/mod-key.d.ts +2 -3
- package/dist/kernel/components/ui/navigation-menu.d.ts +15 -15
- package/dist/kernel/components/ui/popover.d.ts +11 -11
- package/dist/kernel/components/ui/progress.d.ts +7 -7
- package/dist/kernel/components/ui/scroll-area.d.ts +1 -2
- package/dist/kernel/components/ui/select.d.ts +16 -16
- package/dist/kernel/components/ui/separator.d.ts +3 -3
- package/dist/kernel/components/ui/table.d.ts +7 -7
- package/dist/kernel/components/ui/tabs.d.ts +12 -12
- package/dist/kernel/components/ui/tag.d.ts +3 -3
- package/dist/kernel/components/ui/text.d.ts +4 -4
- package/dist/kernel/components/ui/toast.d.ts +11 -11
- package/dist/kernel/components/ui/tooltip.d.ts +9 -9
- package/dist/kernel/defaults.registry.d.ts +2 -2
- package/dist/kernel/defaults.registry.js +2 -2
- package/dist/kernel/routes/agent/markdown.d.ts +4 -0
- package/dist/kernel/routes/agent/markdown.js +11 -7
- package/dist/kernel/routes/layouts/group.d.ts +1 -1
- package/dist/kernel/routes/metadata/feed.d.ts +1 -2
- package/dist/kernel/routes/metadata/feed.js +34 -29
- package/dist/kernel/routes/metadata/llms.d.ts +3 -31
- package/dist/kernel/routes/metadata/llms.js +2 -200
- 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 +15 -1
- package/dist/kernel/routes/metadata/sitemap.js +200 -112
- package/dist/kernel/routes/not-found.js +1 -1
- package/dist/kernel/routes/pages/group.d.ts +3 -3
- package/dist/kernel/routes/pages/group.js +10 -4
- package/dist/kernel/routes/pages/leaf.d.ts +9 -4
- package/dist/kernel/routes/pages/leaf.js +16 -8
- package/dist/kernel/routes/pages/root.d.ts +3 -3
- package/dist/kernel/routes/pages/root.js +20 -5
- package/dist/keyboard-shortcuts.d.ts +2 -2
- 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/search.d.ts +2 -9
- package/dist/search.js +2 -7
- package/dist/sidebar-types-CMrMM0Nj.d.ts +105 -0
- package/dist/theme-scope.d.ts +2 -2
- package/dist/types-BbqmOzLC.d.ts +168 -0
- package/dist/types-TjH1ek0X.d.ts +22 -0
- package/dist/types.d.ts +116 -91
- package/dist/{validate-local-source-SV44DBQT.js → validate-local-source-EN2GW4FR.js} +3 -3
- package/dist/{validate-publish-os-source-NZJF3TB2.js → validate-publish-os-source-OEWQDB7B.js} +2 -2
- package/init/seed/minimal/publish.os/blog/index.tsx +25 -22
- package/init/seed/minimal/publish.os/blog/page.tsx +31 -16
- package/init/seed/minimal/publish.os/components/blog/copy-link.tsx +1 -1
- package/init/seed/minimal/publish.os/components/blog/frontmatter.ts +41 -0
- package/init/seed/minimal/publish.os/publish.os.config.json +13 -2
- package/init/seed/minimal/seed.json +1 -0
- package/init/seed/scratch/publish.os/publish.os.config.json +1 -1
- package/package.json +4 -4
- package/release/app/phosphor/package.json +1 -1
- package/release/app/phosphor/pnpm-lock.yaml.template +53 -127
- package/release/compiler/pnpm-lock.yaml.template +49 -123
- package/release/release.json +4 -4
- package/dist/sidebar-types-DKpR27II.d.ts +0 -25
- package/dist/types-CJWRG05y.d.ts +0 -76
- package/dist/types-CUtrppxt.d.ts +0 -69
- package/dist/types-J2w_puPF.d.ts +0 -128
- package/dist/{button-BdCScEKi.d.ts → button-D6Xp2HBm.d.ts} +1 -1
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 };
|
package/dist/types-J2w_puPF.d.ts
DELETED
|
@@ -1,128 +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 LayoutProps = {
|
|
120
|
-
children: React.ReactNode;
|
|
121
|
-
site: SiteData;
|
|
122
|
-
tree: TreeNode[];
|
|
123
|
-
node: TreeNode;
|
|
124
|
-
currentPath: string;
|
|
125
|
-
group: string;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export type { LayoutProps as L, ManifestLike as M, PageStatus as P };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ReactNode, ComponentPropsWithRef } from 'react';
|
|
1
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
3
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { ReactNode, ComponentPropsWithRef } from 'react';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
6
|
readonly variant?: "solid" | "soft" | "outline" | "ghost" | null | undefined;
|