docs: generate medusa-react reference (#6004)
* add new plugin for better organization * added handling in theme for mutations and query types * added tsdoc to hooks * added tsdocs to utility functions * added tsdoc to providers * generated reference * general fixes for generated reference * generated api reference specs + general fixes * add missing import react * split utilities into different directories * added overview page * added link to customer authentication section * fix lint errors * added changeset * fix readme * fixed build error * added expand fields + other sections to overview * updated what's new section * general refactoring * remove unnecessary query field * fix links * added ignoreApi option
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import clsx from "clsx"
|
||||
import React from "react"
|
||||
import ParameterTypesItems from "./Items"
|
||||
import React, { Suspense, lazy } from "react"
|
||||
import { Loading } from "docs-ui"
|
||||
|
||||
export type Parameter = {
|
||||
name: string
|
||||
@@ -18,6 +18,8 @@ type ParameterTypesType = {
|
||||
expandUrl?: string
|
||||
} & React.HTMLAttributes<HTMLDivElement>
|
||||
|
||||
const ParameterTypesItems = lazy(async () => import("./Items"))
|
||||
|
||||
const ParameterTypes = ({
|
||||
parameters,
|
||||
className,
|
||||
@@ -28,10 +30,12 @@ const ParameterTypes = ({
|
||||
className={clsx("bg-docs-bg-surface shadow-card-rest rounded", className)}
|
||||
{...props}
|
||||
>
|
||||
<ParameterTypesItems
|
||||
parameters={parameters}
|
||||
expandUrl={props.expandUrl}
|
||||
/>
|
||||
<Suspense fallback={<Loading />}>
|
||||
<ParameterTypesItems
|
||||
parameters={parameters}
|
||||
expandUrl={props.expandUrl}
|
||||
/>
|
||||
</Suspense>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user