@openpkg-ts/doc-generator 0.5.0 → 0.6.0
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/dist/react-styled.d.ts +113 -12
- package/dist/react-styled.js +694 -344
- package/package.json +1 -1
package/dist/react-styled.d.ts
CHANGED
|
@@ -591,28 +591,63 @@ interface ExportIndexPageProps {
|
|
|
591
591
|
* AI SDK-style clean layout with responsive 2-column grid.
|
|
592
592
|
*/
|
|
593
593
|
declare function ExportIndexPage({ spec, baseHref, description, className, showSearch, showFilters }: ExportIndexPageProps): ReactNode4;
|
|
594
|
-
import { OpenPkg as OpenPkg11,
|
|
594
|
+
import { OpenPkg as OpenPkg11, SpecExportKind as SpecExportKind5 } from "@openpkg-ts/spec";
|
|
595
595
|
import { ReactNode as ReactNode5 } from "react";
|
|
596
|
+
interface FullAPIReferencePageProps {
|
|
597
|
+
/** OpenPkg spec */
|
|
598
|
+
spec: OpenPkg11;
|
|
599
|
+
/** Filter to specific kinds (default: all) */
|
|
600
|
+
kinds?: SpecExportKind5[];
|
|
601
|
+
/** Show kind filter buttons (default: true) */
|
|
602
|
+
showFilters?: boolean;
|
|
603
|
+
/** Show in-page TOC navigation (default: false) */
|
|
604
|
+
showTOC?: boolean;
|
|
605
|
+
/** Custom title (default: spec.meta.name) */
|
|
606
|
+
title?: string;
|
|
607
|
+
/** Custom description */
|
|
608
|
+
description?: ReactNode5;
|
|
609
|
+
/** Custom className */
|
|
610
|
+
className?: string;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Single-page API reference that renders all exports in a scrollable view.
|
|
614
|
+
* Similar to Stripe's API documentation layout.
|
|
615
|
+
*
|
|
616
|
+
* @example
|
|
617
|
+
* ```tsx
|
|
618
|
+
* // Show all exports with TOC
|
|
619
|
+
* <FullAPIReferencePage spec={spec} showTOC />
|
|
620
|
+
* ```
|
|
621
|
+
*
|
|
622
|
+
* @example
|
|
623
|
+
* ```tsx
|
|
624
|
+
* // Show only functions
|
|
625
|
+
* <FullAPIReferencePage spec={spec} kinds={['function']} title="Functions" />
|
|
626
|
+
* ```
|
|
627
|
+
*/
|
|
628
|
+
declare function FullAPIReferencePage({ spec, kinds, showFilters, showTOC, title, description, className }: FullAPIReferencePageProps): ReactNode5;
|
|
629
|
+
import { OpenPkg as OpenPkg12, SpecExport as SpecExport6 } from "@openpkg-ts/spec";
|
|
630
|
+
import { ReactNode as ReactNode6 } from "react";
|
|
596
631
|
interface FunctionPageProps {
|
|
597
632
|
export: SpecExport6;
|
|
598
|
-
spec:
|
|
633
|
+
spec: OpenPkg12;
|
|
599
634
|
}
|
|
600
635
|
/**
|
|
601
636
|
* Stripe-style function page with two-column layout.
|
|
602
637
|
* Left: parameters, returns. Right: sticky code examples.
|
|
603
638
|
*/
|
|
604
|
-
declare function FunctionPage({ export: exp, spec }: FunctionPageProps):
|
|
605
|
-
import { OpenPkg as
|
|
606
|
-
import { ReactNode as
|
|
639
|
+
declare function FunctionPage({ export: exp, spec }: FunctionPageProps): ReactNode6;
|
|
640
|
+
import { OpenPkg as OpenPkg13, SpecExport as SpecExport7 } from "@openpkg-ts/spec";
|
|
641
|
+
import { ReactNode as ReactNode7 } from "react";
|
|
607
642
|
interface InterfacePageProps {
|
|
608
643
|
export: SpecExport7;
|
|
609
|
-
spec:
|
|
644
|
+
spec: OpenPkg13;
|
|
610
645
|
}
|
|
611
646
|
/**
|
|
612
647
|
* Stripe-style interface/type page with two-column layout.
|
|
613
648
|
* Left: properties, methods. Right: sticky code examples.
|
|
614
649
|
*/
|
|
615
|
-
declare function InterfacePage({ export: exp, spec }: InterfacePageProps):
|
|
650
|
+
declare function InterfacePage({ export: exp, spec }: InterfacePageProps): ReactNode7;
|
|
616
651
|
import { SpecSchema as SpecSchema2, SpecSignatureParameter as SpecSignatureParameter4 } from "@openpkg-ts/spec";
|
|
617
652
|
interface ParameterItemProps {
|
|
618
653
|
/** Parameter to display */
|
|
@@ -637,14 +672,80 @@ interface NestedPropertyItemProps {
|
|
|
637
672
|
* Features expandable nested params, type annotations, and required/optional badges.
|
|
638
673
|
*/
|
|
639
674
|
declare function ParameterItem({ param, depth, className }: ParameterItemProps): React.ReactNode;
|
|
640
|
-
import { OpenPkg as
|
|
641
|
-
import { ReactNode as
|
|
675
|
+
import { OpenPkg as OpenPkg14, SpecExport as SpecExport8 } from "@openpkg-ts/spec";
|
|
676
|
+
import { ReactNode as ReactNode8 } from "react";
|
|
642
677
|
interface VariablePageProps {
|
|
643
678
|
export: SpecExport8;
|
|
644
|
-
spec:
|
|
679
|
+
spec: OpenPkg14;
|
|
645
680
|
}
|
|
646
681
|
/**
|
|
647
682
|
* Stripe-style variable/constant page with two-column layout.
|
|
648
683
|
*/
|
|
649
|
-
declare function VariablePage({ export: exp, spec }: VariablePageProps):
|
|
650
|
-
|
|
684
|
+
declare function VariablePage({ export: exp, spec }: VariablePageProps): ReactNode8;
|
|
685
|
+
import { OpenPkg as OpenPkg15, SpecExport as SpecExport9 } from "@openpkg-ts/spec";
|
|
686
|
+
import { ReactNode as ReactNode9 } from "react";
|
|
687
|
+
interface ClassSectionProps {
|
|
688
|
+
export: SpecExport9;
|
|
689
|
+
spec: OpenPkg15;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Class section for use in single-page API reference.
|
|
693
|
+
* Renders an APISection with constructor, methods, and properties.
|
|
694
|
+
*/
|
|
695
|
+
declare function ClassSection({ export: exp, spec }: ClassSectionProps): ReactNode9;
|
|
696
|
+
import { OpenPkg as OpenPkg16, SpecExport as SpecExport10 } from "@openpkg-ts/spec";
|
|
697
|
+
import { ReactNode as ReactNode10 } from "react";
|
|
698
|
+
interface EnumSectionProps {
|
|
699
|
+
export: SpecExport10;
|
|
700
|
+
spec: OpenPkg16;
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Enum section for use in single-page API reference.
|
|
704
|
+
* Renders an APISection with enum members.
|
|
705
|
+
*/
|
|
706
|
+
declare function EnumSection({ export: exp, spec }: EnumSectionProps): ReactNode10;
|
|
707
|
+
import { OpenPkg as OpenPkg17, SpecExport as SpecExport11 } from "@openpkg-ts/spec";
|
|
708
|
+
import { ReactNode as ReactNode11 } from "react";
|
|
709
|
+
interface ExportSectionProps {
|
|
710
|
+
export: SpecExport11;
|
|
711
|
+
spec: OpenPkg17;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Router component that renders the appropriate section based on kind.
|
|
715
|
+
* Used by FullAPIReferencePage to render each inline.
|
|
716
|
+
*/
|
|
717
|
+
declare function ExportSection({ export: exp, spec }: ExportSectionProps): ReactNode11;
|
|
718
|
+
import { OpenPkg as OpenPkg18, SpecExport as SpecExport12 } from "@openpkg-ts/spec";
|
|
719
|
+
import { ReactNode as ReactNode12 } from "react";
|
|
720
|
+
interface FunctionSectionProps {
|
|
721
|
+
export: SpecExport12;
|
|
722
|
+
spec: OpenPkg18;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Function section for use in single-page API reference.
|
|
726
|
+
* Renders an APISection with parameters and returns.
|
|
727
|
+
*/
|
|
728
|
+
declare function FunctionSection({ export: exp, spec }: FunctionSectionProps): ReactNode12;
|
|
729
|
+
import { OpenPkg as OpenPkg19, SpecExport as SpecExport13 } from "@openpkg-ts/spec";
|
|
730
|
+
import { ReactNode as ReactNode13 } from "react";
|
|
731
|
+
interface InterfaceSectionProps {
|
|
732
|
+
export: SpecExport13;
|
|
733
|
+
spec: OpenPkg19;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Interface/type section for use in single-page API reference.
|
|
737
|
+
* Renders an APISection with properties and methods.
|
|
738
|
+
*/
|
|
739
|
+
declare function InterfaceSection({ export: exp, spec }: InterfaceSectionProps): ReactNode13;
|
|
740
|
+
import { OpenPkg as OpenPkg20, SpecExport as SpecExport14 } from "@openpkg-ts/spec";
|
|
741
|
+
import { ReactNode as ReactNode14 } from "react";
|
|
742
|
+
interface VariableSectionProps {
|
|
743
|
+
export: SpecExport14;
|
|
744
|
+
spec: OpenPkg20;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Variable/constant section for use in single-page API reference.
|
|
748
|
+
* Renders an APISection with type information.
|
|
749
|
+
*/
|
|
750
|
+
declare function VariableSection({ export: exp, spec }: VariableSectionProps): ReactNode14;
|
|
751
|
+
export { groupMembersByKind, getExampleTitle, getExampleLanguage, getExampleCode, cleanCode, VariableSectionProps, VariableSection, VariablePageProps, VariablePage, TypeTableProps, TypeTable, SignatureProps, Signature, ParameterItemProps, ParameterItem, ParamTableProps, ParamTable, ParamRowProps, ParamRow, NestedPropertyProps, NestedPropertyItemProps, NestedProperty, MembersTableProps, MembersTable, MemberRowProps, MemberRow, MemberGroups, InterfaceSectionProps, InterfaceSection, InterfacePageProps, InterfacePage, ImportSectionProps, ImportSection, FunctionSectionProps, FunctionSection, FunctionPageProps, FunctionPage, FullAPIReferencePageProps, FullAPIReferencePage, ExportSectionProps, ExportSection, ExportIndexPageProps, ExportIndexPage, ExportCardProps, ExportCard, ExpandablePropertyProps, ExpandableProperty, ExampleBlockProps, ExampleBlock, EnumSectionProps, EnumSection, EnumPageProps, EnumPage, CollapsibleMethodProps, CollapsibleMethod, CodeTabsProps, CodeTabs, CodeTab, ClassSectionProps, ClassSection, ClassPageProps, ClassPage, APIPageProps, APIPage };
|