@doccov/fumadocs-adapter 0.0.1 → 0.0.2
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/CHANGELOG.md +7 -0
- package/bunup.config.ts +0 -1
- package/dist/components/index.d.ts +70 -70
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-pqaj3kdh.js → chunk-mmca4gp7.js} +653 -654
- package/package.json +1 -2
- package/src/components/api-page.tsx +3 -9
- package/src/components/class-page.tsx +3 -8
- package/src/components/code-example.tsx +6 -2
- package/src/components/collapsible-method.tsx +6 -13
- package/src/components/coverage-badge.tsx +5 -3
- package/src/components/enum-page.tsx +10 -6
- package/src/components/examples.tsx +0 -1
- package/src/components/expandable-property.tsx +5 -7
- package/src/components/function-page.tsx +7 -9
- package/src/components/index.ts +29 -44
- package/src/components/interface-page.tsx +6 -5
- package/src/components/members-section.tsx +6 -7
- package/src/components/parameter-card.tsx +2 -6
- package/src/components/type-table.tsx +6 -9
- package/src/components/variable-page.tsx +2 -7
- package/src/index.ts +3 -4
- package/src/server.ts +0 -1
- package/src/styles/docskit.css +8 -7
- package/tsconfig.json +0 -1
package/CHANGELOG.md
ADDED
package/bunup.config.ts
CHANGED
|
@@ -44,52 +44,27 @@ interface APIPageProps {
|
|
|
44
44
|
*/
|
|
45
45
|
declare function APIPage({ spec, instance, id }: APIPageProps);
|
|
46
46
|
import { OpenPkg as OpenPkg3, SpecExport as SpecExport2 } from "@openpkg-ts/spec";
|
|
47
|
-
interface
|
|
47
|
+
interface ClassPageProps {
|
|
48
48
|
export: SpecExport2;
|
|
49
49
|
spec: OpenPkg3;
|
|
50
50
|
}
|
|
51
|
-
declare function FunctionPage({ export: exp, spec }: FunctionPageProps);
|
|
52
|
-
import { OpenPkg as OpenPkg4, SpecExport as SpecExport3 } from "@openpkg-ts/spec";
|
|
53
|
-
interface ClassPageProps {
|
|
54
|
-
export: SpecExport3;
|
|
55
|
-
spec: OpenPkg4;
|
|
56
|
-
}
|
|
57
51
|
declare function ClassPage({ export: exp, spec }: ClassPageProps);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
declare function InterfacePage({ export: exp, spec }: InterfacePageProps);
|
|
64
|
-
import { OpenPkg as OpenPkg6, SpecExport as SpecExport5 } from "@openpkg-ts/spec";
|
|
65
|
-
interface EnumPageProps {
|
|
66
|
-
export: SpecExport5;
|
|
67
|
-
spec: OpenPkg6;
|
|
68
|
-
}
|
|
69
|
-
declare function EnumPage({ export: exp, spec }: EnumPageProps);
|
|
70
|
-
import { OpenPkg as OpenPkg7, SpecExport as SpecExport6 } from "@openpkg-ts/spec";
|
|
71
|
-
interface VariablePageProps {
|
|
72
|
-
export: SpecExport6;
|
|
73
|
-
spec: OpenPkg7;
|
|
74
|
-
}
|
|
75
|
-
declare function VariablePage({ export: exp, spec }: VariablePageProps);
|
|
76
|
-
import { OpenPkg as OpenPkg8, SpecSignatureParameter, SpecMember } from "@openpkg-ts/spec";
|
|
77
|
-
interface TypeTableProps {
|
|
78
|
-
items: (SpecSignatureParameter | SpecMember)[];
|
|
79
|
-
spec?: OpenPkg8;
|
|
80
|
-
showRequired?: boolean;
|
|
81
|
-
}
|
|
82
|
-
declare function TypeTable({ items, showRequired }: TypeTableProps);
|
|
83
|
-
import { SpecExport as SpecExport7 } from "@openpkg-ts/spec";
|
|
84
|
-
interface SignatureProps {
|
|
85
|
-
export: SpecExport7;
|
|
86
|
-
signatureIndex?: number;
|
|
52
|
+
interface CodeExampleProps {
|
|
53
|
+
code: string;
|
|
54
|
+
filename?: string;
|
|
55
|
+
language?: string;
|
|
87
56
|
}
|
|
88
|
-
declare function
|
|
89
|
-
|
|
90
|
-
|
|
57
|
+
declare function CodeExample({ code, filename, language }: CodeExampleProps);
|
|
58
|
+
import { SpecMember } from "@openpkg-ts/spec";
|
|
59
|
+
interface CollapsibleMethodProps {
|
|
60
|
+
member: SpecMember;
|
|
61
|
+
defaultExpanded?: boolean;
|
|
91
62
|
}
|
|
92
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Collapsible method section with expand/collapse behavior
|
|
65
|
+
* Shows compact signature when collapsed, full details when expanded
|
|
66
|
+
*/
|
|
67
|
+
declare function CollapsibleMethod({ member, defaultExpanded }: CollapsibleMethodProps);
|
|
93
68
|
import { SpecDocsMetadata } from "@openpkg-ts/spec";
|
|
94
69
|
interface CoverageBadgeProps {
|
|
95
70
|
docs: SpecDocsMetadata;
|
|
@@ -97,28 +72,19 @@ interface CoverageBadgeProps {
|
|
|
97
72
|
showDrift?: boolean;
|
|
98
73
|
}
|
|
99
74
|
declare function CoverageBadge({ docs, showMissing, showDrift }: CoverageBadgeProps);
|
|
100
|
-
import {
|
|
101
|
-
interface
|
|
102
|
-
|
|
103
|
-
spec
|
|
104
|
-
title?: string;
|
|
105
|
-
}
|
|
106
|
-
declare function MembersSection({ members, spec, title }: MembersSectionProps);
|
|
107
|
-
import { OpenPkg as OpenPkg10, SpecSignatureParameter as SpecSignatureParameter2 } from "@openpkg-ts/spec";
|
|
108
|
-
interface ParameterCardProps {
|
|
109
|
-
param: SpecSignatureParameter2;
|
|
110
|
-
spec?: OpenPkg10;
|
|
75
|
+
import { OpenPkg as OpenPkg4, SpecExport as SpecExport3 } from "@openpkg-ts/spec";
|
|
76
|
+
interface EnumPageProps {
|
|
77
|
+
export: SpecExport3;
|
|
78
|
+
spec: OpenPkg4;
|
|
111
79
|
}
|
|
112
|
-
declare function
|
|
113
|
-
interface
|
|
114
|
-
|
|
115
|
-
filename?: string;
|
|
116
|
-
language?: string;
|
|
80
|
+
declare function EnumPage({ export: exp, spec }: EnumPageProps);
|
|
81
|
+
interface ExamplesSectionProps {
|
|
82
|
+
examples: string[];
|
|
117
83
|
}
|
|
118
|
-
declare function
|
|
119
|
-
import {
|
|
84
|
+
declare function ExamplesSection({ examples }: ExamplesSectionProps);
|
|
85
|
+
import { SpecSchema, SpecSignatureParameter } from "@openpkg-ts/spec";
|
|
120
86
|
interface ExpandablePropertyProps {
|
|
121
|
-
param:
|
|
87
|
+
param: SpecSignatureParameter;
|
|
122
88
|
depth?: number;
|
|
123
89
|
}
|
|
124
90
|
interface NestedPropertyProps {
|
|
@@ -136,19 +102,28 @@ declare function NestedProperty({ name, schema, required, depth }: NestedPropert
|
|
|
136
102
|
* Entry point for rendering a parameter with progressive disclosure
|
|
137
103
|
*/
|
|
138
104
|
declare function ExpandableProperty({ param, depth }: ExpandablePropertyProps);
|
|
139
|
-
import {
|
|
140
|
-
interface
|
|
141
|
-
|
|
142
|
-
|
|
105
|
+
import { OpenPkg as OpenPkg5, SpecExport as SpecExport4 } from "@openpkg-ts/spec";
|
|
106
|
+
interface FunctionPageProps {
|
|
107
|
+
export: SpecExport4;
|
|
108
|
+
spec: OpenPkg5;
|
|
143
109
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
110
|
+
declare function FunctionPage({ export: exp, spec }: FunctionPageProps);
|
|
111
|
+
import { OpenPkg as OpenPkg6, SpecExport as SpecExport5 } from "@openpkg-ts/spec";
|
|
112
|
+
interface InterfacePageProps {
|
|
113
|
+
export: SpecExport5;
|
|
114
|
+
spec: OpenPkg6;
|
|
115
|
+
}
|
|
116
|
+
declare function InterfacePage({ export: exp, spec }: InterfacePageProps);
|
|
117
|
+
import { OpenPkg as OpenPkg7, SpecMember as SpecMember2 } from "@openpkg-ts/spec";
|
|
118
|
+
interface MembersSectionProps {
|
|
119
|
+
members: SpecMember2[];
|
|
120
|
+
spec?: OpenPkg7;
|
|
121
|
+
title?: string;
|
|
122
|
+
}
|
|
123
|
+
declare function MembersSection({ members, spec, title }: MembersSectionProps);
|
|
124
|
+
import { SpecMember as SpecMember3 } from "@openpkg-ts/spec";
|
|
150
125
|
interface MethodSectionProps {
|
|
151
|
-
member:
|
|
126
|
+
member: SpecMember3;
|
|
152
127
|
/** @deprecated Use CollapsibleMethod directly with defaultExpanded */
|
|
153
128
|
defaultExpanded?: boolean;
|
|
154
129
|
}
|
|
@@ -157,4 +132,29 @@ interface MethodSectionProps {
|
|
|
157
132
|
* @deprecated Use CollapsibleMethod directly for more control
|
|
158
133
|
*/
|
|
159
134
|
declare function MethodSection({ member, defaultExpanded }: MethodSectionProps);
|
|
135
|
+
import { OpenPkg as OpenPkg8, SpecSignatureParameter as SpecSignatureParameter2 } from "@openpkg-ts/spec";
|
|
136
|
+
interface ParameterCardProps {
|
|
137
|
+
param: SpecSignatureParameter2;
|
|
138
|
+
spec?: OpenPkg8;
|
|
139
|
+
}
|
|
140
|
+
declare function ParameterCard({ param, spec }: ParameterCardProps);
|
|
141
|
+
import { SpecExport as SpecExport6 } from "@openpkg-ts/spec";
|
|
142
|
+
interface SignatureProps {
|
|
143
|
+
export: SpecExport6;
|
|
144
|
+
signatureIndex?: number;
|
|
145
|
+
}
|
|
146
|
+
declare function Signature({ export: exp, signatureIndex }: SignatureProps);
|
|
147
|
+
import { OpenPkg as OpenPkg9, SpecMember as SpecMember4, SpecSignatureParameter as SpecSignatureParameter3 } from "@openpkg-ts/spec";
|
|
148
|
+
interface TypeTableProps {
|
|
149
|
+
items: (SpecSignatureParameter3 | SpecMember4)[];
|
|
150
|
+
spec?: OpenPkg9;
|
|
151
|
+
showRequired?: boolean;
|
|
152
|
+
}
|
|
153
|
+
declare function TypeTable({ items, showRequired }: TypeTableProps);
|
|
154
|
+
import { OpenPkg as OpenPkg10, SpecExport as SpecExport7 } from "@openpkg-ts/spec";
|
|
155
|
+
interface VariablePageProps {
|
|
156
|
+
export: SpecExport7;
|
|
157
|
+
spec: OpenPkg10;
|
|
158
|
+
}
|
|
159
|
+
declare function VariablePage({ export: exp, spec }: VariablePageProps);
|
|
160
160
|
export { VariablePageProps, VariablePage, TypeTableProps, TypeTable, SignatureProps, Signature, ParameterCardProps, ParameterCard, NestedPropertyProps, NestedProperty, MethodSectionProps, MethodSection, MembersSectionProps, MembersSection, InterfacePageProps, InterfacePage, FunctionPageProps, FunctionPage, ExpandablePropertyProps, ExpandableProperty, ExamplesSectionProps, ExamplesSection, EnumPageProps, EnumPage, CoverageBadgeProps, CoverageBadge, CollapsibleMethodProps, CollapsibleMethod, CodeExampleProps, CodeExample, ClassPageProps, ClassPage, APIPageProps, APIPage };
|
package/dist/components/index.js
CHANGED