@xyo-network/react-typedoc 5.2.2 → 5.2.3
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/browser/index.mjs
CHANGED
|
@@ -400,7 +400,7 @@ var DeclarationContainerReflectionViewer = /* @__PURE__ */ __name(({ reflection,
|
|
|
400
400
|
return /* @__PURE__ */ React10.createElement(ContainerReflectionViewer, {
|
|
401
401
|
title: "DeclarationContainerReflectionViewer",
|
|
402
402
|
paper: hash.slice(1) === reflection.name,
|
|
403
|
-
bgcolor: hash.slice(1) === reflection.name ? theme.palette.background.default : void 0,
|
|
403
|
+
bgcolor: hash.slice(1) === reflection.name ? theme.vars.palette.background.default : void 0,
|
|
404
404
|
lookup,
|
|
405
405
|
itemRenderer,
|
|
406
406
|
reflection,
|
|
@@ -575,7 +575,7 @@ var TwoPanelReflectionViewer = /* @__PURE__ */ __name(({ reflection, itemRendere
|
|
|
575
575
|
hiddenFlags,
|
|
576
576
|
reflection,
|
|
577
577
|
lookup,
|
|
578
|
-
border: `1px solid ${theme.palette.grey["300"]}`,
|
|
578
|
+
border: `1px solid ${theme.vars.palette.grey["300"]}`,
|
|
579
579
|
borderRadius: 1,
|
|
580
580
|
paddingY: 1
|
|
581
581
|
})));
|
|
@@ -594,7 +594,7 @@ var TwoPanelReflectionViewer = /* @__PURE__ */ __name(({ reflection, itemRendere
|
|
|
594
594
|
overflow: "scroll",
|
|
595
595
|
borderRadius: 1,
|
|
596
596
|
padding: 1,
|
|
597
|
-
border: `1px solid ${theme.palette.grey["300"]}`
|
|
597
|
+
border: `1px solid ${theme.vars.palette.grey["300"]}`
|
|
598
598
|
}, reflectionGroups)));
|
|
599
599
|
}, "DetailsCol");
|
|
600
600
|
return /* @__PURE__ */ React14.createElement(FlexRow4, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/CommentViewer.tsx","../../src/JsonViewerButton.tsx","../../src/ProjectTwoPanelReflectionViewer.tsx","../../src/ReflectionViewer/Container.tsx","../../src/createLookup.ts","../../src/ReflectionViewer/ReflectionGroupViewer.tsx","../../src/resolveChildren.ts","../../src/ReflectionViewer/ReflectionViewer.tsx","../../src/ReflectionViewer/NameViewer.tsx","../../src/trimFlagLabel.ts","../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildArrayString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildIntersectionString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts","../../src/ReflectionViewer/SomeTypeViewer/buildReflectionString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildUnionString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx","../../src/ReflectionViewer/Declaration.tsx","../../src/ReflectionViewer/DeclarationContainer.tsx","../../src/ReflectionViewer/Project.tsx","../../src/TwoPanelReflectionViewer.tsx","../../src/TreeViewer/Reflection.tsx","../../src/TreeViewer/ReflectionGroup.tsx","../../src/SourceViewer.tsx"],"sourcesContent":["import { Typography } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport type { Comment } from 'typedoc'\n\nexport interface CommentViewerProps extends FlexBoxProps {\n comment: Comment\n}\n\nexport const CommentViewer: React.FC<CommentViewerProps> = ({ comment, ...props }) => {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n <Typography variant=\"body2\">{comment.summary[0]?.text}</Typography>\n </FlexCol>\n )\n}\n","import {\n Dialog, DialogActions, DialogContent, DialogTitle,\n} from '@mui/material'\nimport type { ButtonExProps } from '@xylabs/react-button'\nimport { ButtonEx } from '@xylabs/react-button'\nimport type { JsonViewerExProps } from '@xyo-network/react-payload-raw-info'\nimport { JsonViewerEx } from '@xyo-network/react-payload-raw-info'\nimport React, { useState } from 'react'\n\nexport type JsonViewerButtonProps = ButtonExProps & {\n jsonViewProps?: Partial<JsonViewerExProps>\n src: object\n}\n\nexport const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({\n jsonViewProps, src, title, ...props\n}) => {\n const [open, setOpen] = useState(false)\n return (\n <>\n <ButtonEx onClick={() => setOpen(!open)} {...props}>\n JSON\n </ButtonEx>\n <Dialog open={open} onClose={() => setOpen(false)}>\n {title\n ? <DialogTitle>{title}</DialogTitle>\n : null}\n <DialogContent>\n <JsonViewerEx value={src} {...jsonViewProps} />\n </DialogContent>\n <DialogActions>\n <ButtonEx onClick={() => setOpen(false)}>Close</ButtonEx>\n </DialogActions>\n </Dialog>\n </>\n )\n}\n","import { assertEx } from '@xylabs/assert'\nimport React from 'react'\nimport type { ProjectReflection } from 'typedoc'\n\nimport type { ContainerReflectionViewerProps } from './ReflectionViewer/index.ts'\nimport { DeclarationContainerReflectionViewer } from './ReflectionViewer/index.ts'\nimport { TwoPanelReflectionViewer } from './TwoPanelReflectionViewer.tsx'\n\nexport const ProjectTwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>> = ({\n reflection,\n itemRenderer = DeclarationContainerReflectionViewer,\n ...props\n}) => {\n assertEx(reflection.isProject, () => 'Project expected to be Project')\n return <TwoPanelReflectionViewer itemRenderer={itemRenderer} reflection={reflection} {...props} />\n}\n","import React from 'react'\nimport type { ContainerReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup.ts'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer.tsx'\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\nimport type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nexport interface ContainerReflectionViewerProps<T extends ContainerReflection = ContainerReflection> extends ReflectionViewerProps<T> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n itemRenderer?: React.FC<ReflectionViewerProps<any>>\n}\n\nexport const ContainerReflectionViewer: React.FC<ContainerReflectionViewerProps> = ({\n children,\n reflection,\n hiddenFlags,\n itemRenderer = ReflectionViewer,\n ...props\n}) => {\n const lookup = createLookup(reflection)\n\n return (\n <ReflectionViewer title=\"ContainerReflectionViewer\" sources reflection={reflection} lookup={lookup} {...props}>\n {reflection.groups?.map((group: ReflectionGroup) => {\n return (\n <ReflectionGroupViewer\n margin={1}\n lookup={lookup}\n renderer={itemRenderer}\n key={group.title}\n group={group}\n reflection={reflection}\n hiddenFlags={hiddenFlags}\n alignItems=\"stretch\"\n />\n )\n })}\n {children}\n </ReflectionViewer>\n )\n}\n","import type { ContainerReflection, DeclarationReflection } from 'typedoc'\n\nexport const createLookup = <T extends DeclarationReflection>(reflection: ContainerReflection) => {\n const lookup: Record<number, T> = {}\n if (reflection.children) for (const item of reflection.children) lookup[item.id] = item as unknown as T\n return lookup\n}\n","import { Typography } from '@mui/material'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\nimport type {\n ContainerReflection, ReflectionFlags, ReflectionGroup,\n} from 'typedoc'\n\nimport { JsonViewerButton } from '../JsonViewerButton.tsx'\nimport { resolveChildren } from '../resolveChildren.ts'\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\nimport type { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nexport interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {\n autoScroll?: boolean\n group: ReflectionGroup\n reflection: ContainerReflection\n renderer?: React.FC<ReflectionViewerProps>\n}\n\nconst hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {\n let hide = false\n for (const hiddenFlag of hiddenFlags) {\n if (flags?.[hiddenFlag]) {\n hide = true\n }\n }\n return hide\n}\n\nexport const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps> = ({\n autoScroll = false,\n children,\n hiddenFlags,\n group,\n lookup,\n renderer = ReflectionViewer,\n variant,\n ...props\n}) => {\n const resolvedChildren = resolveChildren(group, lookup) ?? []\n\n const visibleChildren\n = hiddenFlags\n ? resolvedChildren.reduce((acc, item) => {\n return acc + (hide(item.flags, hiddenFlags) ? 0 : 1)\n }, 0)\n : 1\n\n const { hash } = useLocation()\n useEffect(() => {\n if (hash && autoScroll) {\n document.querySelector(hash)?.scrollIntoView({ behavior: 'smooth' })\n }\n }, [hash, autoScroll])\n\n return visibleChildren > 0\n ? (\n <FlexCol title=\"ReflectionGroupViewer\" {...props}>\n <FlexRow marginY={1} justifyContent=\"flex-start\">\n <Typography variant={variant}>{group.title}</Typography>\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={resolveChildren(group, lookup)} />\n </FlexRow>\n {resolveChildren(group, lookup).map((reflection) => {\n return reflection\n // I wrap this in a div since React does not understand that they have keys using the Renderer\n ? (\n <div id={reflection.name} key={reflection.id}>\n {renderer({\n hiddenFlags, lookup, margin: 1, padding: 1, reflection,\n }) as React.ReactNode}\n </div>\n )\n : null\n })}\n {children}\n </FlexCol>\n )\n : null\n}\n","import type { Reflection } from 'typedoc'\n\nimport type { ReflectionLookup } from './ReflectionLookup.ts'\nimport type { SomeReflection } from './SomeReflection.ts'\n\ntype ReflectionWithChildren = { children: Reflection[] }\n\nexport const resolveChildren = <T extends SomeReflection>(reflection: ReflectionWithChildren, lookup: ReflectionLookup = {}): T[] => {\n return (reflection.children?.map((child) => {\n switch (typeof child) {\n case 'object': {\n return child\n }\n case 'number': {\n const childObj = lookup[child]\n if (childObj === undefined) {\n throw new Error(`Child Reference Not Found [${child}]`)\n }\n return childObj\n }\n default: {\n throw new Error(`Invalid Child Type [${typeof child}, ${child}]`)\n }\n }\n }) ?? []) as T[]\n}\n","import { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport type { ReflectionFlags } from 'typedoc'\n\nimport { CommentViewer } from '../CommentViewer.tsx'\nimport type { SomeReflection } from '../SomeReflection.ts'\nimport { NameViewer } from './NameViewer.tsx'\nimport type { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nconst hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {\n let hide = false\n for (const hiddenFlag of hiddenFlags) {\n if (flags?.[hiddenFlag]) {\n hide = true\n }\n }\n return hide\n}\n\nexport const ReflectionViewer: React.FC<ReflectionViewerProps> = ({\n variant, nameViewer, children, reflection, hiddenFlags, ...props\n}) => {\n const someReflection = reflection as SomeReflection\n\n return hide(reflection?.flags, hiddenFlags)\n ? null\n : (\n <FlexCol title=\"ReflectionViewer\" alignItems=\"stretch\" {...props}>\n {nameViewer === undefined\n ? <NameViewer marginY={0.25} variant={variant} reflection={someReflection} reflectionViewer={ReflectionViewer} />\n : nameViewer}\n {reflection.comment\n ? <CommentViewer comment={reflection.comment} />\n : null}\n {/* sources && reflection.sources && children ? (\n <>\n {reflection.sources.map((source, index) => {\n return <SourceViewer key={index} source={source} />\n })}\n </>\n ) : null */}\n {someReflection.parameters?.map((parameter) => {\n return <ReflectionViewer hiddenFlags={hiddenFlags} marginY={0.25} marginX={1} key={parameter.id} reflection={parameter} />\n }) ?? null}\n {children}\n </FlexCol>\n )\n}\n","import type { TypographyVariant } from '@mui/material'\nimport {\n Chip, Stack, Typography,\n} from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { JsonViewerButton } from '../JsonViewerButton.tsx'\nimport type { SomeReflection } from '../SomeReflection.ts'\nimport { trimFlagLabel } from '../trimFlagLabel.ts'\nimport type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'\nimport { SomeTypeViewer } from './SomeTypeViewer/index.ts'\n\nexport interface NameViewerProps extends FlexBoxProps {\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n variant?: TypographyVariant\n}\n\nexport const NameViewer: React.FC<NameViewerProps> = ({\n reflectionViewer, variant, reflection, ...props\n}) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type\n ? <>: </>\n : null}\n </Typography>\n <SomeTypeViewer reflection={reflection} reflectionViewer={reflectionViewer} />\n </FlexRow>\n <Stack direction=\"row\" spacing={1}>\n <Chip size=\"small\" label={reflection.kind} />\n {reflection.flags\n ? Object.entries(reflection.flags).map(([flag, value]) => {\n return value ? <Chip size=\"small\" key={flag} label={trimFlagLabel(flag)} variant=\"outlined\" /> : null\n })\n : null}\n </Stack>\n {document && document?.location.hostname === 'localhost' && (\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={reflection} />\n )}\n </FlexRow>\n )\n}\n","export const trimFlagLabel = (label: string) => {\n if (label.startsWith('is')) {\n return label.slice(2)\n }\n return label\n}\n","import type { TypographyProps } from '@mui/material'\nimport { Typography } from '@mui/material'\nimport React from 'react'\n\nimport type { SomeReflection } from '../../SomeReflection.ts'\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport { buildTypeString } from './buildTypeString.tsx'\n\nexport interface SomeTypeViewerProps extends TypographyProps {\n opacity?: number\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n}\n\nexport const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({\n opacity = 0.5, reflection, reflectionViewer, ...props\n}) => {\n const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : ''\n if (typeof typeReactNode === 'string') {\n return (\n <Typography title=\"SomeTypeViewer\" style={{ opacity }} {...props}>\n {typeReactNode}\n </Typography>\n )\n }\n return <>{typeReactNode}</>\n}\n","import type { ArrayType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildArrayString = (typeObj: ArrayType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n const typeString = typeBuilder(typeObj.elementType, reflectionViewer)\n if (typeof typeString === 'string') {\n parts.push(typeString)\n }\n parts.push('[]')\n return parts\n}\n","import type { IntersectionType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildIntersectionString = (typeObj: IntersectionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' & '),\n )\n }\n return parts\n}\n","import type { ReferenceType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildReferenceString = (typeObj: ReferenceType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n parts.push(typeObj.name)\n if (typeObj.typeArguments) {\n parts.push(\n '<',\n typeObj.typeArguments\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(', '),\n '>',\n )\n }\n return parts\n}\n","import React from 'react'\nimport type { ReflectionType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\n\nexport const buildReflectionString = (typeObj: ReflectionType, reflectionViewer: React.FC<ReflectionViewerProps>) => {\n if (typeObj.declaration) {\n return <>{reflectionViewer({ reflection: typeObj.declaration })}</>\n }\n}\n","import type { UnionType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildUnionString = (typeObj: UnionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' | '),\n )\n }\n return parts\n}\n","import type { ReactNode } from 'react'\nimport type { SomeType, Type } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport { buildArrayString } from './buildArrayString.tsx'\nimport { buildIntersectionString } from './buildIntersectionString.tsx'\nimport { buildReferenceString } from './buildReferenceString.ts'\nimport { buildReflectionString } from './buildReflectionString.tsx'\nimport { buildUnionString } from './buildUnionString.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildTypeString: TypeBuilder = (type: SomeType | Type, reflectionViewer: React.FC<ReflectionViewerProps>): ReactNode => {\n const someType = type as SomeType\n const parts: string[] = []\n\n switch (someType.type) {\n case 'intrinsic': {\n parts.push(someType.name)\n break\n }\n case 'intersection': {\n parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'literal': {\n parts.push(JSON.stringify(someType.value))\n break\n }\n case 'array': {\n parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reference': {\n parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'union': {\n parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reflection': {\n return buildReflectionString(someType, reflectionViewer)\n }\n default: {\n parts.push('#', someType.type, '#')\n break\n }\n }\n return parts.join('')\n}\n","import React from 'react'\nimport type { DeclarationReflection, SignatureReflection } from 'typedoc'\n\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\nimport type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nexport const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>> = ({\n reflection, hiddenFlags, ...props\n}) => {\n const safeSignatures = (signatures?: SignatureReflection[] | SignatureReflection) => {\n return (\n Array.isArray(signatures)\n ? signatures\n : signatures\n ? [signatures]\n : undefined\n )\n }\n\n return (\n <ReflectionViewer\n nameViewer={reflection.signatures || reflection.getSignature || reflection.setSignature ? null : undefined}\n title=\"DeclarationReflectionViewer\"\n hiddenFlags={hiddenFlags}\n reflection={reflection}\n {...props}\n >\n {reflection.signatures?.map((signature) => {\n return <ReflectionViewer key={signature.id} hiddenFlags={hiddenFlags} reflection={signature} />\n })}\n {safeSignatures(reflection.getSignature)?.map((signature) => {\n return <ReflectionViewer marginX={1} key={signature.id} hiddenFlags={hiddenFlags} reflection={signature} />\n })}\n {safeSignatures(reflection.setSignature)?.map((signature) => {\n return <ReflectionViewer marginX={1} key={signature.id} hiddenFlags={hiddenFlags} reflection={signature} />\n })}\n </ReflectionViewer>\n )\n}\n","import { useTheme } from '@mui/material'\nimport React from 'react'\nimport { useLocation } from 'react-router-dom'\nimport type { DeclarationReflection } from 'typedoc'\n\nimport type { ContainerReflectionViewerProps } from './Container.tsx'\nimport { ContainerReflectionViewer } from './Container.tsx'\nimport { DeclarationReflectionViewer } from './Declaration.tsx'\n\nexport interface DeclarationContainerReflectionViewerProps extends ContainerReflectionViewerProps {\n reflection: DeclarationReflection\n}\n\nexport const DeclarationContainerReflectionViewer: React.FC<DeclarationContainerReflectionViewerProps> = ({\n reflection,\n lookup,\n itemRenderer = DeclarationReflectionViewer,\n ...props\n}) => {\n const { hash } = useLocation()\n const theme = useTheme()\n\n return (\n <ContainerReflectionViewer\n title=\"DeclarationContainerReflectionViewer\"\n paper={hash.slice(1) === reflection.name}\n bgcolor={hash.slice(1) === reflection.name ? theme.palette.background.default : undefined}\n lookup={lookup}\n itemRenderer={itemRenderer}\n reflection={reflection}\n {...props}\n />\n )\n}\n","import React, { useMemo } from 'react'\nimport type { ProjectReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup.ts'\nimport type { ContainerReflectionViewerProps } from './Container.tsx'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer.tsx'\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\n\nexport const ProjectReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>> = ({\n reflection,\n hiddenFlags,\n itemRenderer = ReflectionViewer,\n ...props\n}) => {\n const lookup = useMemo(() => createLookup(reflection), [reflection])\n return (\n <ReflectionViewer title=\"ProjectReflectionViewer\" hiddenFlags={hiddenFlags} reflection={reflection} {...props}>\n {useMemo(() => {\n return reflection.groups?.map((group: ReflectionGroup) => {\n return (\n <ReflectionGroupViewer\n autoScroll\n variant=\"h6\"\n lookup={lookup}\n key={group.title}\n renderer={itemRenderer}\n group={group}\n reflection={reflection}\n alignItems=\"stretch\"\n hiddenFlags={hiddenFlags}\n />\n )\n })\n }, [lookup, reflection, hiddenFlags, itemRenderer])}\n </ReflectionViewer>\n )\n}\n","import { Search } from '@mui/icons-material'\nimport { TextField, useTheme } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport {\n FlexCol, FlexGrowCol, FlexRow,\n} from '@xylabs/react-flexbox'\nimport React, { useMemo, useState } from 'react'\nimport type { ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from './createLookup.ts'\nimport type { ContainerReflectionViewerProps } from './ReflectionViewer/index.ts'\nimport { ReflectionGroupViewer, ReflectionViewer } from './ReflectionViewer/index.ts'\nimport { ReflectionTreeViewer } from './TreeViewer/index.ts'\n\nexport const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps> = ({\n reflection,\n itemRenderer = ReflectionViewer,\n hiddenFlags,\n ...props\n}) => {\n const lookup = useMemo(() => createLookup(reflection), [reflection])\n const theme = useTheme()\n const [searchTerm, setSearchTerm] = useState<string>()\n const onSearchTermChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchTerm(e.target.value)\n }\n\n const reflectionGroups = useMemo(() => {\n return reflection.groups?.map((group: ReflectionGroup) => {\n return (\n <ReflectionGroupViewer\n autoScroll\n variant=\"h6\"\n lookup={lookup}\n renderer={itemRenderer}\n key={group.title}\n group={group}\n reflection={reflection}\n alignItems=\"stretch\"\n hiddenFlags={hiddenFlags}\n />\n )\n })\n }, [itemRenderer, lookup, reflection, hiddenFlags])\n\n // eslint-disable-next-line @eslint-react/no-nested-component-definitions\n const NavigationCol: React.FC<FlexBoxProps> = (props) => {\n return (\n <FlexCol {...props}>\n <TextField\n fullWidth\n onChange={onSearchTermChange}\n slotProps={{ input: { startAdornment: <Search /> } }}\n />\n <FlexGrowCol marginTop={1} alignItems=\"stretch\">\n <ReflectionTreeViewer\n justifyContent=\"flex-start\"\n position=\"absolute\"\n top={0}\n left={0}\n right={0}\n bottom={0}\n overflow=\"scroll\"\n searchTerm={searchTerm}\n hiddenFlags={hiddenFlags}\n reflection={reflection}\n lookup={lookup}\n border={`1px solid ${theme.palette.grey['300']}`}\n borderRadius={1}\n paddingY={1}\n />\n </FlexGrowCol>\n </FlexCol>\n )\n }\n\n // eslint-disable-next-line @eslint-react/no-nested-component-definitions\n const DetailsCol: React.FC<FlexBoxProps> = (props) => {\n return (\n <FlexGrowCol {...props}>\n <FlexGrowCol alignItems=\"stretch\">\n <FlexCol\n alignItems=\"stretch\"\n justifyContent=\"flex-start\"\n position=\"absolute\"\n top={0}\n left={0}\n right={0}\n bottom={0}\n overflow=\"scroll\"\n borderRadius={1}\n padding={1}\n border={`1px solid ${theme.palette.grey['300']}`}\n >\n {reflectionGroups}\n </FlexCol>\n </FlexGrowCol>\n </FlexGrowCol>\n )\n }\n\n return (\n <FlexRow alignItems=\"stretch\" justifyContent=\"start\" sx={{ overflowY: 'scroll' }} {...props}>\n <NavigationCol minWidth={320} alignItems=\"stretch\" justifyContent=\"flex-start\" overflow=\"hidden\" />\n <DetailsCol marginLeft={1} alignItems=\"stretch\" justifyContent=\"flex-start\" overflow=\"hidden\" />\n </FlexRow>\n )\n}\n","import { Add, Remove } from '@mui/icons-material'\nimport { Typography } from '@mui/material'\nimport { SimpleTreeView, TreeItem } from '@mui/x-tree-view'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport { useNavigate } from 'react-router-dom'\nimport type { ContainerReflection, Reflection } from 'typedoc'\n\nimport type { ReflectionLookup } from '../ReflectionLookup.ts'\nimport type { FlagFilter } from '../ReflectionViewer/index.ts'\n\nexport interface ReflectionTreeViewerProps<T extends Reflection = ContainerReflection> extends FlexBoxProps {\n hiddenFlags?: FlagFilter[]\n lookup?: ReflectionLookup\n reflection: T\n searchTerm?: string\n}\n\nexport const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps> = ({\n lookup, reflection, searchTerm, ...props\n}) => {\n const navigate = useNavigate()\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n {/* TODO - move this into a title component */}\n {/* {nameViewer === undefined ? <NameViewer variant={variant} reflection={reflection} /> : nameViewer} */}\n {/* {reflection.comment ? <CommentViewer comment={reflection.comment} /> : null} */}\n {/* {reflection.sources ? ( */}\n {/* <> */}\n {/* {reflection.sources.map((source, index) => { */}\n {/* return <SourceViewer key={index} source={source} /> */}\n {/* })} */}\n {/* </> */}\n {/* ) : null} */}\n {/* TODO - when searching do not include categories that dont have children, pull maps out of view */}\n <SimpleTreeView\n aria-label=\"XYO SDK Documentation\"\n slots={{ collapseIcon: Remove, expandIcon: Add }}\n expandedItems={reflection.groups ? [reflection.groups[0].title] : []}\n >\n {reflection.groups?.map((group, index) => (\n <TreeItem key={`primary-${index}`} itemId={group.title} label={<Typography variant=\"h6\">{group.title}</Typography>}>\n {group.children.map((child, jndex) => {\n const searchTermTrimmed = searchTerm?.trim().toLowerCase()\n const childReflection = typeof child === 'number' ? lookup?.[child as number] : child\n return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().includes(searchTermTrimmed))\n ? (\n <TreeItem\n key={`secondary-${index}- ${jndex}`}\n itemId={`declaration-${childReflection?.id}`}\n label={childReflection.name}\n onClick={() => {\n const hash = `#${childReflection.name}`\n void navigate({ hash })\n document.querySelector(hash)?.scrollIntoView({ behavior: 'smooth' })\n }}\n />\n )\n : null\n })}\n </TreeItem>\n ))}\n </SimpleTreeView>\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { JsonViewerButton } from '../JsonViewerButton.tsx'\nimport type { ReflectionGroupViewerProps } from '../ReflectionViewer/index.ts'\nimport { ReflectionViewer } from '../ReflectionViewer/index.ts'\nimport { resolveChildren } from '../resolveChildren.ts'\n\nexport const ReflectionGroupTreeViewer: React.FC<ReflectionGroupViewerProps> = ({\n variant,\n group,\n children,\n lookup,\n renderer = ReflectionViewer,\n ...props\n}) => {\n return (\n <FlexCol {...props}>\n <FlexRow marginY={1} justifyContent=\"flex-start\">\n <Typography variant={variant}>{group.title}</Typography>\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={resolveChildren(group, lookup)} />\n </FlexRow>\n {resolveChildren(group, lookup).map((reflection) => {\n return reflection\n // I wrap this in a div since React does not understand that they have keys using the Renderer\n ? (\n <div key={reflection.id}>\n {renderer({\n lookup, margin: 1, reflection,\n }) as React.ReactNode}\n </div>\n )\n : null\n })}\n {children}\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport type { SourceReference } from 'typedoc'\n\nexport interface SourceViewerProps extends FlexBoxProps {\n source: SourceReference\n}\n\nexport const SourceViewer: React.FC<SourceViewerProps> = ({ source, ...props }) => {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n <Typography style={{ opacity: 0.5 }} variant=\"body2\">\n <i>{source.fileName}</i>\n </Typography>\n </FlexCol>\n )\n}\n"],"mappings":";;;;AAAA,SAASA,kBAAkB;AAE3B,SAASC,eAAe;AACxB,OAAOC,WAAW;AAOX,IAAMC,gBAA8C,wBAAC,EAAEC,SAAS,GAAGC,MAAAA,MAAO;AAC/E,SACE,sBAAA,cAACC,SAAAA;IAAQC,YAAW;IAAW,GAAGF;KAChC,sBAAA,cAACG,YAAAA;IAAWC,SAAQ;KAASL,QAAQM,QAAQ,CAAA,GAAIC,IAAAA,CAAAA;AAGvD,GAN2D;;;ACV3D,SACEC,QAAQC,eAAeC,eAAeC,mBACjC;AAEP,SAASC,gBAAgB;AAEzB,SAASC,oBAAoB;AAC7B,OA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IAAQ3B,YAAW;IAAUa,gBAAe;IAAQe,IAAI;MAAEC,WAAW;IAAS;IAAI,GAAGrD;KACpF,gBAAAiB,QAAA,cAACQ,eAAAA;IAAc6B,UAAU;IAAK9B,YAAW;IAAUa,gBAAe;IAAaM,UAAS;MACxF,gBAAA1B,QAAA,cAACgC,YAAAA;IAAWM,YAAY;IAAG/B,YAAW;IAAUa,gBAAe;IAAaM,UAAS;;AAG3F,GA7FkF;;;AlBN3E,IAAMa,kCAA+F,wBAAC,EAC3GC,YACAC,eAAeC,sCACf,GAAGC,MAAAA,MACJ;AACCC,WAASJ,WAAWK,WAAW,MAAM,gCAAA;AACrC,SAAO,gBAAAC,QAAA,cAACC,0BAAAA;IAAyBN;IAA4BD;IAAyB,GAAGG;;AAC3F,GAP4G;;;AqBR5G,SAASK,cAAAA,mBAAkB;AAE3B,SAASC,WAAAA,gBAAe;AACxB,OAAOC,aAAW;AAOX,IAAMC,eAA4C,wBAAC,EAAEC,QAAQ,GAAGC,MAAAA,MAAO;AAC5E,SACE,gBAAAC,QAAA,cAACC,UAAAA;IAAQC,YAAW;IAAW,GAAGH;KAChC,gBAAAC,QAAA,cAACG,aAAAA;IAAWC,OAAO;MAAEC,SAAS;IAAI;IAAGC,SAAQ;KAC3C,gBAAAN,QAAA,cAACO,KAAAA,MAAGT,OAAOU,QAAQ,CAAA,CAAA;AAI3B,GARyD;","names":["Typography","FlexCol","React","CommentViewer","comment","props","FlexCol","alignItems","Typography","variant","summary","text","Dialog","DialogActions","DialogContent","DialogTitle","ButtonEx","JsonViewerEx","React","useState","JsonViewerButton","jsonViewProps","src","title","props","open","setOpen","useState","React","ButtonEx","onClick","Dialog","onClose","DialogTitle","DialogContent","JsonViewerEx","value","DialogActions","assertEx","React","React","createLookup","reflection","lookup","children","item","id","Typography","FlexCol","FlexRow","React","useEffect","useLocation","resolveChildren","reflection","lookup","children","map","child","childObj","undefined","Error","FlexCol","React","Chip","Stack","Typography","FlexRow","React","trimFlagLabel","label","startsWith","slice","Typography","React","buildArrayString","typeObj","reflectionViewer","typeBuilder","parts","typeString","elementType","push","buildIntersectionString","typeObj","reflectionViewer","typeBuilder","parts","types","push","map","arg","join","buildReferenceString","typeObj","reflectionViewer","typeBuilder","parts","push","name","typeArguments","map","arg","join","React","buildReflectionString","typeObj","reflectionViewer","declaration","React","reflection","buildUnionString","typeObj","reflectionViewer","typeBuilder","parts","types","push","map","arg","join","buildTypeString","type","reflectionViewer","someType","parts","push","name","buildIntersectionString","JSON","stringify","value","buildArrayString","buildReferenceString","buildUnionString","buildReflectionString","join","SomeTypeViewer","opacity","reflection","reflectionViewer","props","typeReactNode","type","buildTypeString","React","Typography","title","style","NameViewer","reflectionViewer","variant","reflection","props","React","FlexRow","justifyContent","marginRight","Typography","noWrap","name","type","SomeTypeViewer","Stack","direction","spacing","Chip","size","label","kind","flags","Object","entries","map","flag","value","key","trimFlagLabel","document","location","hostname","JsonViewerButton","padding","marginX","src","hide","flags","hiddenFlags","hiddenFlag","ReflectionViewer","variant","nameViewer","children","reflection","props","someReflection","React","FlexCol","title","alignItems","undefined","NameViewer","marginY","reflectionViewer","comment","CommentViewer","parameters","map","parameter","marginX","key","id","hide","flags","hiddenFlags","hiddenFlag","ReflectionGroupViewer","autoScroll","children","group","lookup","renderer","ReflectionViewer","variant","props","resolvedChildren","resolveChildren","visibleChildren","reduce","acc","item","hash","useLocation","useEffect","document","querySelector","scrollIntoView","behavior","React","FlexCol","title","FlexRow","marginY","justifyContent","Typography","JsonViewerButton","size","padding","marginX","src","map","reflection","div","id","name","key","margin","ContainerReflectionViewer","children","reflection","hiddenFlags","itemRenderer","ReflectionViewer","props","lookup","createLookup","React","title","sources","groups","map","group","ReflectionGroupViewer","margin","renderer","key","alignItems","React","DeclarationReflectionViewer","reflection","hiddenFlags","props","safeSignatures","signatures","Array","isArray","undefined","React","ReflectionViewer","nameViewer","getSignature","setSignature","title","map","signature","key","id","marginX","useTheme","React","useLocation","DeclarationContainerReflectionViewer","reflection","lookup","itemRenderer","DeclarationReflectionViewer","props","hash","useLocation","theme","useTheme","React","ContainerReflectionViewer","title","paper","slice","name","bgcolor","palette","background","default","undefined","React","useMemo","ProjectReflectionViewer","reflection","hiddenFlags","itemRenderer","ReflectionViewer","props","lookup","useMemo","createLookup","React","title","groups","map","group","ReflectionGroupViewer","autoScroll","variant","key","renderer","alignItems","Search","TextField","useTheme","FlexCol","FlexGrowCol","FlexRow","React","useMemo","useState","Add","Remove","Typography","SimpleTreeView","TreeItem","FlexCol","React","useNavigate","ReflectionTreeViewer","lookup","reflection","searchTerm","props","navigate","useNavigate","React","FlexCol","alignItems","SimpleTreeView","aria-label","slots","collapseIcon","Remove","expandIcon","Add","expandedItems","groups","title","map","group","index","TreeItem","key","itemId","label","Typography","variant","children","child","jndex","searchTermTrimmed","trim","toLowerCase","childReflection","name","includes","id","onClick","hash","document","querySelector","scrollIntoView","behavior","Typography","FlexCol","FlexRow","React","ReflectionGroupTreeViewer","variant","group","children","lookup","renderer","ReflectionViewer","props","React","FlexCol","FlexRow","marginY","justifyContent","Typography","title","JsonViewerButton","size","padding","marginX","src","resolveChildren","map","reflection","div","key","id","margin","TwoPanelReflectionViewer","reflection","itemRenderer","ReflectionViewer","hiddenFlags","props","lookup","useMemo","createLookup","theme","useTheme","searchTerm","setSearchTerm","useState","onSearchTermChange","e","target","value","reflectionGroups","groups","map","group","React","ReflectionGroupViewer","autoScroll","variant","renderer","key","title","alignItems","NavigationCol","FlexCol","TextField","fullWidth","onChange","slotProps","input","startAdornment","Search","FlexGrowCol","marginTop","ReflectionTreeViewer","justifyContent","position","top","left","right","bottom","overflow","border","palette","grey","borderRadius","paddingY","DetailsCol","padding","FlexRow","sx","overflowY","minWidth","marginLeft","ProjectTwoPanelReflectionViewer","reflection","itemRenderer","DeclarationContainerReflectionViewer","props","assertEx","isProject","React","TwoPanelReflectionViewer","Typography","FlexCol","React","SourceViewer","source","props","React","FlexCol","alignItems","Typography","style","opacity","variant","i","fileName"]}
|
|
1
|
+
{"version":3,"sources":["../../src/CommentViewer.tsx","../../src/JsonViewerButton.tsx","../../src/ProjectTwoPanelReflectionViewer.tsx","../../src/ReflectionViewer/Container.tsx","../../src/createLookup.ts","../../src/ReflectionViewer/ReflectionGroupViewer.tsx","../../src/resolveChildren.ts","../../src/ReflectionViewer/ReflectionViewer.tsx","../../src/ReflectionViewer/NameViewer.tsx","../../src/trimFlagLabel.ts","../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildArrayString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildIntersectionString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts","../../src/ReflectionViewer/SomeTypeViewer/buildReflectionString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildUnionString.tsx","../../src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx","../../src/ReflectionViewer/Declaration.tsx","../../src/ReflectionViewer/DeclarationContainer.tsx","../../src/ReflectionViewer/Project.tsx","../../src/TwoPanelReflectionViewer.tsx","../../src/TreeViewer/Reflection.tsx","../../src/TreeViewer/ReflectionGroup.tsx","../../src/SourceViewer.tsx"],"sourcesContent":["import { Typography } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport type { Comment } from 'typedoc'\n\nexport interface CommentViewerProps extends FlexBoxProps {\n comment: Comment\n}\n\nexport const CommentViewer: React.FC<CommentViewerProps> = ({ comment, ...props }) => {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n <Typography variant=\"body2\">{comment.summary[0]?.text}</Typography>\n </FlexCol>\n )\n}\n","import {\n Dialog, DialogActions, DialogContent, DialogTitle,\n} from '@mui/material'\nimport type { ButtonExProps } from '@xylabs/react-button'\nimport { ButtonEx } from '@xylabs/react-button'\nimport type { JsonViewerExProps } from '@xyo-network/react-payload-raw-info'\nimport { JsonViewerEx } from '@xyo-network/react-payload-raw-info'\nimport React, { useState } from 'react'\n\nexport type JsonViewerButtonProps = ButtonExProps & {\n jsonViewProps?: Partial<JsonViewerExProps>\n src: object\n}\n\nexport const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({\n jsonViewProps, src, title, ...props\n}) => {\n const [open, setOpen] = useState(false)\n return (\n <>\n <ButtonEx onClick={() => setOpen(!open)} {...props}>\n JSON\n </ButtonEx>\n <Dialog open={open} onClose={() => setOpen(false)}>\n {title\n ? <DialogTitle>{title}</DialogTitle>\n : null}\n <DialogContent>\n <JsonViewerEx value={src} {...jsonViewProps} />\n </DialogContent>\n <DialogActions>\n <ButtonEx onClick={() => setOpen(false)}>Close</ButtonEx>\n </DialogActions>\n </Dialog>\n </>\n )\n}\n","import { assertEx } from '@xylabs/assert'\nimport React from 'react'\nimport type { ProjectReflection } from 'typedoc'\n\nimport type { ContainerReflectionViewerProps } from './ReflectionViewer/index.ts'\nimport { DeclarationContainerReflectionViewer } from './ReflectionViewer/index.ts'\nimport { TwoPanelReflectionViewer } from './TwoPanelReflectionViewer.tsx'\n\nexport const ProjectTwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>> = ({\n reflection,\n itemRenderer = DeclarationContainerReflectionViewer,\n ...props\n}) => {\n assertEx(reflection.isProject, () => 'Project expected to be Project')\n return <TwoPanelReflectionViewer itemRenderer={itemRenderer} reflection={reflection} {...props} />\n}\n","import React from 'react'\nimport type { ContainerReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup.ts'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer.tsx'\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\nimport type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nexport interface ContainerReflectionViewerProps<T extends ContainerReflection = ContainerReflection> extends ReflectionViewerProps<T> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n itemRenderer?: React.FC<ReflectionViewerProps<any>>\n}\n\nexport const ContainerReflectionViewer: React.FC<ContainerReflectionViewerProps> = ({\n children,\n reflection,\n hiddenFlags,\n itemRenderer = ReflectionViewer,\n ...props\n}) => {\n const lookup = createLookup(reflection)\n\n return (\n <ReflectionViewer title=\"ContainerReflectionViewer\" sources reflection={reflection} lookup={lookup} {...props}>\n {reflection.groups?.map((group: ReflectionGroup) => {\n return (\n <ReflectionGroupViewer\n margin={1}\n lookup={lookup}\n renderer={itemRenderer}\n key={group.title}\n group={group}\n reflection={reflection}\n hiddenFlags={hiddenFlags}\n alignItems=\"stretch\"\n />\n )\n })}\n {children}\n </ReflectionViewer>\n )\n}\n","import type { ContainerReflection, DeclarationReflection } from 'typedoc'\n\nexport const createLookup = <T extends DeclarationReflection>(reflection: ContainerReflection) => {\n const lookup: Record<number, T> = {}\n if (reflection.children) for (const item of reflection.children) lookup[item.id] = item as unknown as T\n return lookup\n}\n","import { Typography } from '@mui/material'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\nimport type {\n ContainerReflection, ReflectionFlags, ReflectionGroup,\n} from 'typedoc'\n\nimport { JsonViewerButton } from '../JsonViewerButton.tsx'\nimport { resolveChildren } from '../resolveChildren.ts'\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\nimport type { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nexport interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {\n autoScroll?: boolean\n group: ReflectionGroup\n reflection: ContainerReflection\n renderer?: React.FC<ReflectionViewerProps>\n}\n\nconst hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {\n let hide = false\n for (const hiddenFlag of hiddenFlags) {\n if (flags?.[hiddenFlag]) {\n hide = true\n }\n }\n return hide\n}\n\nexport const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps> = ({\n autoScroll = false,\n children,\n hiddenFlags,\n group,\n lookup,\n renderer = ReflectionViewer,\n variant,\n ...props\n}) => {\n const resolvedChildren = resolveChildren(group, lookup) ?? []\n\n const visibleChildren\n = hiddenFlags\n ? resolvedChildren.reduce((acc, item) => {\n return acc + (hide(item.flags, hiddenFlags) ? 0 : 1)\n }, 0)\n : 1\n\n const { hash } = useLocation()\n useEffect(() => {\n if (hash && autoScroll) {\n document.querySelector(hash)?.scrollIntoView({ behavior: 'smooth' })\n }\n }, [hash, autoScroll])\n\n return visibleChildren > 0\n ? (\n <FlexCol title=\"ReflectionGroupViewer\" {...props}>\n <FlexRow marginY={1} justifyContent=\"flex-start\">\n <Typography variant={variant}>{group.title}</Typography>\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={resolveChildren(group, lookup)} />\n </FlexRow>\n {resolveChildren(group, lookup).map((reflection) => {\n return reflection\n // I wrap this in a div since React does not understand that they have keys using the Renderer\n ? (\n <div id={reflection.name} key={reflection.id}>\n {renderer({\n hiddenFlags, lookup, margin: 1, padding: 1, reflection,\n }) as React.ReactNode}\n </div>\n )\n : null\n })}\n {children}\n </FlexCol>\n )\n : null\n}\n","import type { Reflection } from 'typedoc'\n\nimport type { ReflectionLookup } from './ReflectionLookup.ts'\nimport type { SomeReflection } from './SomeReflection.ts'\n\ntype ReflectionWithChildren = { children: Reflection[] }\n\nexport const resolveChildren = <T extends SomeReflection>(reflection: ReflectionWithChildren, lookup: ReflectionLookup = {}): T[] => {\n return (reflection.children?.map((child) => {\n switch (typeof child) {\n case 'object': {\n return child\n }\n case 'number': {\n const childObj = lookup[child]\n if (childObj === undefined) {\n throw new Error(`Child Reference Not Found [${child}]`)\n }\n return childObj\n }\n default: {\n throw new Error(`Invalid Child Type [${typeof child}, ${child}]`)\n }\n }\n }) ?? []) as T[]\n}\n","import { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport type { ReflectionFlags } from 'typedoc'\n\nimport { CommentViewer } from '../CommentViewer.tsx'\nimport type { SomeReflection } from '../SomeReflection.ts'\nimport { NameViewer } from './NameViewer.tsx'\nimport type { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nconst hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {\n let hide = false\n for (const hiddenFlag of hiddenFlags) {\n if (flags?.[hiddenFlag]) {\n hide = true\n }\n }\n return hide\n}\n\nexport const ReflectionViewer: React.FC<ReflectionViewerProps> = ({\n variant, nameViewer, children, reflection, hiddenFlags, ...props\n}) => {\n const someReflection = reflection as SomeReflection\n\n return hide(reflection?.flags, hiddenFlags)\n ? null\n : (\n <FlexCol title=\"ReflectionViewer\" alignItems=\"stretch\" {...props}>\n {nameViewer === undefined\n ? <NameViewer marginY={0.25} variant={variant} reflection={someReflection} reflectionViewer={ReflectionViewer} />\n : nameViewer}\n {reflection.comment\n ? <CommentViewer comment={reflection.comment} />\n : null}\n {/* sources && reflection.sources && children ? (\n <>\n {reflection.sources.map((source, index) => {\n return <SourceViewer key={index} source={source} />\n })}\n </>\n ) : null */}\n {someReflection.parameters?.map((parameter) => {\n return <ReflectionViewer hiddenFlags={hiddenFlags} marginY={0.25} marginX={1} key={parameter.id} reflection={parameter} />\n }) ?? null}\n {children}\n </FlexCol>\n )\n}\n","import type { TypographyVariant } from '@mui/material'\nimport {\n Chip, Stack, Typography,\n} from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { JsonViewerButton } from '../JsonViewerButton.tsx'\nimport type { SomeReflection } from '../SomeReflection.ts'\nimport { trimFlagLabel } from '../trimFlagLabel.ts'\nimport type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'\nimport { SomeTypeViewer } from './SomeTypeViewer/index.ts'\n\nexport interface NameViewerProps extends FlexBoxProps {\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n variant?: TypographyVariant\n}\n\nexport const NameViewer: React.FC<NameViewerProps> = ({\n reflectionViewer, variant, reflection, ...props\n}) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type\n ? <>: </>\n : null}\n </Typography>\n <SomeTypeViewer reflection={reflection} reflectionViewer={reflectionViewer} />\n </FlexRow>\n <Stack direction=\"row\" spacing={1}>\n <Chip size=\"small\" label={reflection.kind} />\n {reflection.flags\n ? Object.entries(reflection.flags).map(([flag, value]) => {\n return value ? <Chip size=\"small\" key={flag} label={trimFlagLabel(flag)} variant=\"outlined\" /> : null\n })\n : null}\n </Stack>\n {document && document?.location.hostname === 'localhost' && (\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={reflection} />\n )}\n </FlexRow>\n )\n}\n","export const trimFlagLabel = (label: string) => {\n if (label.startsWith('is')) {\n return label.slice(2)\n }\n return label\n}\n","import type { TypographyProps } from '@mui/material'\nimport { Typography } from '@mui/material'\nimport React from 'react'\n\nimport type { SomeReflection } from '../../SomeReflection.ts'\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport { buildTypeString } from './buildTypeString.tsx'\n\nexport interface SomeTypeViewerProps extends TypographyProps {\n opacity?: number\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n}\n\nexport const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({\n opacity = 0.5, reflection, reflectionViewer, ...props\n}) => {\n const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : ''\n if (typeof typeReactNode === 'string') {\n return (\n <Typography title=\"SomeTypeViewer\" style={{ opacity }} {...props}>\n {typeReactNode}\n </Typography>\n )\n }\n return <>{typeReactNode}</>\n}\n","import type { ArrayType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildArrayString = (typeObj: ArrayType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n const typeString = typeBuilder(typeObj.elementType, reflectionViewer)\n if (typeof typeString === 'string') {\n parts.push(typeString)\n }\n parts.push('[]')\n return parts\n}\n","import type { IntersectionType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildIntersectionString = (typeObj: IntersectionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' & '),\n )\n }\n return parts\n}\n","import type { ReferenceType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildReferenceString = (typeObj: ReferenceType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n parts.push(typeObj.name)\n if (typeObj.typeArguments) {\n parts.push(\n '<',\n typeObj.typeArguments\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(', '),\n '>',\n )\n }\n return parts\n}\n","import React from 'react'\nimport type { ReflectionType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\n\nexport const buildReflectionString = (typeObj: ReflectionType, reflectionViewer: React.FC<ReflectionViewerProps>) => {\n if (typeObj.declaration) {\n return <>{reflectionViewer({ reflection: typeObj.declaration })}</>\n }\n}\n","import type { UnionType } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildUnionString = (typeObj: UnionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' | '),\n )\n }\n return parts\n}\n","import type { ReactNode } from 'react'\nimport type { SomeType, Type } from 'typedoc'\n\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport { buildArrayString } from './buildArrayString.tsx'\nimport { buildIntersectionString } from './buildIntersectionString.tsx'\nimport { buildReferenceString } from './buildReferenceString.ts'\nimport { buildReflectionString } from './buildReflectionString.tsx'\nimport { buildUnionString } from './buildUnionString.tsx'\nimport type { TypeBuilder } from './TypeBuilder.ts'\n\nexport const buildTypeString: TypeBuilder = (type: SomeType | Type, reflectionViewer: React.FC<ReflectionViewerProps>): ReactNode => {\n const someType = type as SomeType\n const parts: string[] = []\n\n switch (someType.type) {\n case 'intrinsic': {\n parts.push(someType.name)\n break\n }\n case 'intersection': {\n parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'literal': {\n parts.push(JSON.stringify(someType.value))\n break\n }\n case 'array': {\n parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reference': {\n parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'union': {\n parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reflection': {\n return buildReflectionString(someType, reflectionViewer)\n }\n default: {\n parts.push('#', someType.type, '#')\n break\n }\n }\n return parts.join('')\n}\n","import React from 'react'\nimport type { DeclarationReflection, SignatureReflection } from 'typedoc'\n\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\nimport type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'\n\nexport const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>> = ({\n reflection, hiddenFlags, ...props\n}) => {\n const safeSignatures = (signatures?: SignatureReflection[] | SignatureReflection) => {\n return (\n Array.isArray(signatures)\n ? signatures\n : signatures\n ? [signatures]\n : undefined\n )\n }\n\n return (\n <ReflectionViewer\n nameViewer={reflection.signatures || reflection.getSignature || reflection.setSignature ? null : undefined}\n title=\"DeclarationReflectionViewer\"\n hiddenFlags={hiddenFlags}\n reflection={reflection}\n {...props}\n >\n {reflection.signatures?.map((signature) => {\n return <ReflectionViewer key={signature.id} hiddenFlags={hiddenFlags} reflection={signature} />\n })}\n {safeSignatures(reflection.getSignature)?.map((signature) => {\n return <ReflectionViewer marginX={1} key={signature.id} hiddenFlags={hiddenFlags} reflection={signature} />\n })}\n {safeSignatures(reflection.setSignature)?.map((signature) => {\n return <ReflectionViewer marginX={1} key={signature.id} hiddenFlags={hiddenFlags} reflection={signature} />\n })}\n </ReflectionViewer>\n )\n}\n","import { useTheme } from '@mui/material'\nimport React from 'react'\nimport { useLocation } from 'react-router-dom'\nimport type { DeclarationReflection } from 'typedoc'\n\nimport type { ContainerReflectionViewerProps } from './Container.tsx'\nimport { ContainerReflectionViewer } from './Container.tsx'\nimport { DeclarationReflectionViewer } from './Declaration.tsx'\n\nexport interface DeclarationContainerReflectionViewerProps extends ContainerReflectionViewerProps {\n reflection: DeclarationReflection\n}\n\nexport const DeclarationContainerReflectionViewer: React.FC<DeclarationContainerReflectionViewerProps> = ({\n reflection,\n lookup,\n itemRenderer = DeclarationReflectionViewer,\n ...props\n}) => {\n const { hash } = useLocation()\n const theme = useTheme()\n\n return (\n <ContainerReflectionViewer\n title=\"DeclarationContainerReflectionViewer\"\n paper={hash.slice(1) === reflection.name}\n bgcolor={hash.slice(1) === reflection.name ? theme.vars.palette.background.default : undefined}\n lookup={lookup}\n itemRenderer={itemRenderer}\n reflection={reflection}\n {...props}\n />\n )\n}\n","import React, { useMemo } from 'react'\nimport type { ProjectReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup.ts'\nimport type { ContainerReflectionViewerProps } from './Container.tsx'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer.tsx'\nimport { ReflectionViewer } from './ReflectionViewer.tsx'\n\nexport const ProjectReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>> = ({\n reflection,\n hiddenFlags,\n itemRenderer = ReflectionViewer,\n ...props\n}) => {\n const lookup = useMemo(() => createLookup(reflection), [reflection])\n return (\n <ReflectionViewer title=\"ProjectReflectionViewer\" hiddenFlags={hiddenFlags} reflection={reflection} {...props}>\n {useMemo(() => {\n return reflection.groups?.map((group: ReflectionGroup) => {\n return (\n <ReflectionGroupViewer\n autoScroll\n variant=\"h6\"\n lookup={lookup}\n key={group.title}\n renderer={itemRenderer}\n group={group}\n reflection={reflection}\n alignItems=\"stretch\"\n hiddenFlags={hiddenFlags}\n />\n )\n })\n }, [lookup, reflection, hiddenFlags, itemRenderer])}\n </ReflectionViewer>\n )\n}\n","import { Search } from '@mui/icons-material'\nimport { TextField, useTheme } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport {\n FlexCol, FlexGrowCol, FlexRow,\n} from '@xylabs/react-flexbox'\nimport React, { useMemo, useState } from 'react'\nimport type { ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from './createLookup.ts'\nimport type { ContainerReflectionViewerProps } from './ReflectionViewer/index.ts'\nimport { ReflectionGroupViewer, ReflectionViewer } from './ReflectionViewer/index.ts'\nimport { ReflectionTreeViewer } from './TreeViewer/index.ts'\n\nexport const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps> = ({\n reflection,\n itemRenderer = ReflectionViewer,\n hiddenFlags,\n ...props\n}) => {\n const lookup = useMemo(() => createLookup(reflection), [reflection])\n const theme = useTheme()\n const [searchTerm, setSearchTerm] = useState<string>()\n const onSearchTermChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchTerm(e.target.value)\n }\n\n const reflectionGroups = useMemo(() => {\n return reflection.groups?.map((group: ReflectionGroup) => {\n return (\n <ReflectionGroupViewer\n autoScroll\n variant=\"h6\"\n lookup={lookup}\n renderer={itemRenderer}\n key={group.title}\n group={group}\n reflection={reflection}\n alignItems=\"stretch\"\n hiddenFlags={hiddenFlags}\n />\n )\n })\n }, [itemRenderer, lookup, reflection, hiddenFlags])\n\n // eslint-disable-next-line @eslint-react/no-nested-component-definitions\n const NavigationCol: React.FC<FlexBoxProps> = (props) => {\n return (\n <FlexCol {...props}>\n <TextField\n fullWidth\n onChange={onSearchTermChange}\n slotProps={{ input: { startAdornment: <Search /> } }}\n />\n <FlexGrowCol marginTop={1} alignItems=\"stretch\">\n <ReflectionTreeViewer\n justifyContent=\"flex-start\"\n position=\"absolute\"\n top={0}\n left={0}\n right={0}\n bottom={0}\n overflow=\"scroll\"\n searchTerm={searchTerm}\n hiddenFlags={hiddenFlags}\n reflection={reflection}\n lookup={lookup}\n border={`1px solid ${theme.vars.palette.grey['300']}`}\n borderRadius={1}\n paddingY={1}\n />\n </FlexGrowCol>\n </FlexCol>\n )\n }\n\n // eslint-disable-next-line @eslint-react/no-nested-component-definitions\n const DetailsCol: React.FC<FlexBoxProps> = (props) => {\n return (\n <FlexGrowCol {...props}>\n <FlexGrowCol alignItems=\"stretch\">\n <FlexCol\n alignItems=\"stretch\"\n justifyContent=\"flex-start\"\n position=\"absolute\"\n top={0}\n left={0}\n right={0}\n bottom={0}\n overflow=\"scroll\"\n borderRadius={1}\n padding={1}\n border={`1px solid ${theme.vars.palette.grey['300']}`}\n >\n {reflectionGroups}\n </FlexCol>\n </FlexGrowCol>\n </FlexGrowCol>\n )\n }\n\n return (\n <FlexRow alignItems=\"stretch\" justifyContent=\"start\" sx={{ overflowY: 'scroll' }} {...props}>\n <NavigationCol minWidth={320} alignItems=\"stretch\" justifyContent=\"flex-start\" overflow=\"hidden\" />\n <DetailsCol marginLeft={1} alignItems=\"stretch\" justifyContent=\"flex-start\" overflow=\"hidden\" />\n </FlexRow>\n )\n}\n","import { Add, Remove } from '@mui/icons-material'\nimport { Typography } from '@mui/material'\nimport { SimpleTreeView, TreeItem } from '@mui/x-tree-view'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport { useNavigate } from 'react-router-dom'\nimport type { ContainerReflection, Reflection } from 'typedoc'\n\nimport type { ReflectionLookup } from '../ReflectionLookup.ts'\nimport type { FlagFilter } from '../ReflectionViewer/index.ts'\n\nexport interface ReflectionTreeViewerProps<T extends Reflection = ContainerReflection> extends FlexBoxProps {\n hiddenFlags?: FlagFilter[]\n lookup?: ReflectionLookup\n reflection: T\n searchTerm?: string\n}\n\nexport const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps> = ({\n lookup, reflection, searchTerm, ...props\n}) => {\n const navigate = useNavigate()\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n {/* TODO - move this into a title component */}\n {/* {nameViewer === undefined ? <NameViewer variant={variant} reflection={reflection} /> : nameViewer} */}\n {/* {reflection.comment ? <CommentViewer comment={reflection.comment} /> : null} */}\n {/* {reflection.sources ? ( */}\n {/* <> */}\n {/* {reflection.sources.map((source, index) => { */}\n {/* return <SourceViewer key={index} source={source} /> */}\n {/* })} */}\n {/* </> */}\n {/* ) : null} */}\n {/* TODO - when searching do not include categories that dont have children, pull maps out of view */}\n <SimpleTreeView\n aria-label=\"XYO SDK Documentation\"\n slots={{ collapseIcon: Remove, expandIcon: Add }}\n expandedItems={reflection.groups ? [reflection.groups[0].title] : []}\n >\n {reflection.groups?.map((group, index) => (\n <TreeItem key={`primary-${index}`} itemId={group.title} label={<Typography variant=\"h6\">{group.title}</Typography>}>\n {group.children.map((child, jndex) => {\n const searchTermTrimmed = searchTerm?.trim().toLowerCase()\n const childReflection = typeof child === 'number' ? lookup?.[child as number] : child\n return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().includes(searchTermTrimmed))\n ? (\n <TreeItem\n key={`secondary-${index}- ${jndex}`}\n itemId={`declaration-${childReflection?.id}`}\n label={childReflection.name}\n onClick={() => {\n const hash = `#${childReflection.name}`\n void navigate({ hash })\n document.querySelector(hash)?.scrollIntoView({ behavior: 'smooth' })\n }}\n />\n )\n : null\n })}\n </TreeItem>\n ))}\n </SimpleTreeView>\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nimport { JsonViewerButton } from '../JsonViewerButton.tsx'\nimport type { ReflectionGroupViewerProps } from '../ReflectionViewer/index.ts'\nimport { ReflectionViewer } from '../ReflectionViewer/index.ts'\nimport { resolveChildren } from '../resolveChildren.ts'\n\nexport const ReflectionGroupTreeViewer: React.FC<ReflectionGroupViewerProps> = ({\n variant,\n group,\n children,\n lookup,\n renderer = ReflectionViewer,\n ...props\n}) => {\n return (\n <FlexCol {...props}>\n <FlexRow marginY={1} justifyContent=\"flex-start\">\n <Typography variant={variant}>{group.title}</Typography>\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={resolveChildren(group, lookup)} />\n </FlexRow>\n {resolveChildren(group, lookup).map((reflection) => {\n return reflection\n // I wrap this in a div since React does not understand that they have keys using the Renderer\n ? (\n <div key={reflection.id}>\n {renderer({\n lookup, margin: 1, reflection,\n }) as React.ReactNode}\n </div>\n )\n : null\n })}\n {children}\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport React from 'react'\nimport type { SourceReference } from 'typedoc'\n\nexport interface SourceViewerProps extends FlexBoxProps {\n source: SourceReference\n}\n\nexport const SourceViewer: React.FC<SourceViewerProps> = ({ source, ...props }) => {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n <Typography style={{ opacity: 0.5 }} variant=\"body2\">\n <i>{source.fileName}</i>\n </Typography>\n </FlexCol>\n )\n}\n"],"mappings":";;;;AAAA,SAASA,kBAAkB;AAE3B,SAASC,eAAe;AACxB,OAAOC,WAAW;AAOX,IAAMC,gBAA8C,wBAAC,EAAEC,SAAS,GAAGC,MAAAA,MAAO;AAC/E,SACE,sBAAA,cAACC,SAAAA;IAAQC,YAAW;IAAW,GAAGF;KAChC,sBAAA,cAACG,YAAAA;IAAWC,SAAQ;KAASL,QAAQM,QAAQ,CAAA,GAAIC,IAAAA,CAAAA;AAGvD,GAN2D;;;AC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AQC,KAAK,KAAA,CAAM;OAElDlC,gBAAAA,CAAAA,CAAAA;EAKX,GAtB2C;AAwB3C,SACE,gBAAAI,QAAA,cAACmC,UAAAA;IAAQ5B,YAAW;IAAUa,gBAAe;IAAQgB,IAAI;MAAEC,WAAW;IAAS;IAAI,GAAGtD;KACpF,gBAAAiB,QAAA,cAACQ,eAAAA;IAAc8B,UAAU;IAAK/B,YAAW;IAAUa,gBAAe;IAAaM,UAAS;MACxF,gBAAA1B,QAAA,cAACiC,YAAAA;IAAWM,YAAY;IAAGhC,YAAW;IAAUa,gBAAe;IAAaM,UAAS;;AAG3F,GA7FkF;;;AlBN3E,IAAMc,kCAA+F,wBAAC,EAC3GC,YACAC,eAAeC,sCACf,GAAGC,MAAAA,MACJ;AACCC,WAASJ,WAAWK,WAAW,MAAM,gCAAA;AACrC,SAAO,gBAAAC,QAAA,cAACC,0BAAAA;IAAyBN;IAA4BD;IAAyB,GAAGG;;AAC3F,GAP4G;;;AqBR5G,SAASK,cAAAA,mBAAkB;AAE3B,SAASC,WAAAA,gBAAe;AACxB,OAAOC,aAAW;AAOX,IAAMC,eAA4C,wBAAC,EAAEC,QAAQ,GAAGC,MAAAA,MAAO;AAC5E,SACE,gBAAAC,QAAA,cAACC,UAAAA;IAAQC,YAAW;IAAW,GAAGH;KAChC,gBAAAC,QAAA,cAACG,aAAAA;IAAWC,OAAO;MAAEC,SAAS;IAAI;IAAGC,SAAQ;KAC3C,gBAAAN,QAAA,cAACO,KAAAA,MAAGT,OAAOU,QAAQ,CAAA,CAAA;AAI3B,GARyD;","names":["Typography","FlexCol","React","CommentViewer","comment","props","FlexCol","alignItems","Typography","variant","summary","text","Dialog","DialogActions","DialogContent","DialogTitle","ButtonEx","JsonViewerEx","React","useState","JsonViewerButton","jsonViewProps","src","title","props","open","setOpen","useState","React","ButtonEx","onClick","Dialog","onClose","DialogTitle","DialogContent","JsonViewerEx","value","DialogActions","assertEx","React","React","createLookup","reflection","lookup","children","item","id","Typography","FlexCol","FlexRow","React","useEffect","useLocation","resolveChildren","reflection","lookup","children","map","child","childObj","undefined","Error","FlexCol","React","Chip","Stack","Typography","FlexRow","React","trimFlagLabel","label","startsWith","slice","Typography","React","buildArrayString","typeObj","reflectionViewer","typeBuilder","parts","typeString","elementType","push","buildIntersectionString","typeObj","reflectionViewer","typeBuilder","parts","types","push","map","arg","join","buildReferenceString","typeObj","reflectionViewer","typeBuilder","parts","push","name","typeArguments","map","arg","join","React","buildReflectionString","typeObj","reflectionViewer","declaration","React","reflection","buildUnionString","typeObj","reflectionViewer","typeBuilder","parts","types","push","map","arg","join","buildTypeString","type","reflectionViewer","someType","parts","push","name","buildIntersectionString","JSON","stringify","value","buildArrayString","buildReferenceString","buildUnionString","buildReflectionString","join","SomeTypeViewer","opacity","reflection","reflectionViewer","props","typeReactNode","type","buildTypeString","React","Typography","title","style","NameViewer","reflectionViewer","variant","reflection","props","React","FlexRow","justifyContent","marginRight","Typography","noWrap","name","type","SomeTypeViewer","Stack","direction","spacing","Chip","size","label","kind","flags","Object","entries","map","flag","value","key","trimFlagLabel","document","location","hostname","JsonViewerButton","padding","marginX","src","hide","flags","hiddenFlags","hiddenFlag","ReflectionViewer","variant","nameViewer","children","reflection","props","someReflection","React","FlexCol","title","alignItems","undefined","NameViewer","marginY","reflectionViewer","comment","CommentViewer","parameters","map","parameter","marginX","key","id","hide","flags","hiddenFlags","hiddenFlag","ReflectionGroupViewer","autoScroll","children","group","lookup","renderer","ReflectionViewer","variant","props","resolvedChildren","resolveChildren","visibleChildren","reduce","acc","item","hash","useLocation","useEffect","document","querySelector","scrollIntoView","behavior","React","FlexCol","title","FlexRow","marginY","justifyContent","Typography","JsonViewerButton","size","padding","marginX","src","map","reflection","div","id","name","key","margin","ContainerReflectionViewer","children","reflection","hiddenFlags","itemRenderer","ReflectionViewer","props","lookup","createLookup","React","title","sources","groups","map","group","ReflectionGroupViewer","margin","renderer","key","alignItems","React","DeclarationReflectionViewer","reflection","hiddenFlags","props","safeSignatures","signatures","Array","isArray","undefined","React","ReflectionViewer","nameViewer","getSignature","setSignature","title","map","signature","key","id","marginX","useTheme","React","useLocation","DeclarationContainerReflectionViewer","reflection","lookup","itemRenderer","DeclarationReflectionViewer","props","hash","useLocation","theme","useTheme","React","ContainerReflectionViewer","title","paper","slice","name","bgcolor","vars","palette","background","default","undefined","React","useMemo","ProjectReflectionViewer","reflection","hiddenFlags","itemRenderer","ReflectionViewer","props","lookup","useMemo","createLookup","React","title","groups","map","group","ReflectionGroupViewer","autoScroll","variant","key","renderer","alignItems","Search","TextField","useTheme","FlexCol","FlexGrowCol","FlexRow","React","useMemo","useState","Add","Remove","Typography","SimpleTreeView","TreeItem","FlexCol","React","useNavigate","ReflectionTreeViewer","lookup","reflection","searchTerm","props","navigate","useNavigate","React","FlexCol","alignItems","SimpleTreeView","aria-label","slots","collapseIcon","Remove","expandIcon","Add","expandedItems","groups","title","map","group","index","TreeItem","key","itemId","label","Typography","variant","children","child","jndex","searchTermTrimmed","trim","toLowerCase","childReflection","name","includes","id","onClick","hash","document","querySelector","scrollIntoView","behavior","Typography","FlexCol","FlexRow","React","ReflectionGroupTreeViewer","variant","group","children","lookup","renderer","ReflectionViewer","props","React","FlexCol","FlexRow","marginY","justifyContent","Typography","title","JsonViewerButton","size","padding","marginX","src","resolveChildren","map","reflection","div","key","id","margin","TwoPanelReflectionViewer","reflection","itemRenderer","ReflectionViewer","hiddenFlags","props","lookup","useMemo","createLookup","theme","useTheme","searchTerm","setSearchTerm","useState","onSearchTermChange","e","target","value","reflectionGroups","groups","map","group","React","ReflectionGroupViewer","autoScroll","variant","renderer","key","title","alignItems","NavigationCol","FlexCol","TextField","fullWidth","onChange","slotProps","input","startAdornment","Search","FlexGrowCol","marginTop","ReflectionTreeViewer","justifyContent","position","top","left","right","bottom","overflow","border","vars","palette","grey","borderRadius","paddingY","DetailsCol","padding","FlexRow","sx","overflowY","minWidth","marginLeft","ProjectTwoPanelReflectionViewer","reflection","itemRenderer","DeclarationContainerReflectionViewer","props","assertEx","isProject","React","TwoPanelReflectionViewer","Typography","FlexCol","React","SourceViewer","source","props","React","FlexCol","alignItems","Typography","style","opacity","variant","i","fileName"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-typedoc",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,23 +41,23 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@emotion/react": "^11.14.0",
|
|
43
43
|
"@emotion/styled": "^11.14.0",
|
|
44
|
-
"@xylabs/assert": "^4.8.
|
|
45
|
-
"@xylabs/react-button": "^6.2.
|
|
46
|
-
"@xylabs/react-flexbox": "^6.2.
|
|
47
|
-
"@xyo-network/react-payload-raw-info": "^5.2.
|
|
48
|
-
"react-router-dom": "^7.5.
|
|
49
|
-
"typedoc": "^0.28.
|
|
44
|
+
"@xylabs/assert": "^4.8.7",
|
|
45
|
+
"@xylabs/react-button": "^6.2.8",
|
|
46
|
+
"@xylabs/react-flexbox": "^6.2.8",
|
|
47
|
+
"@xyo-network/react-payload-raw-info": "^5.2.3",
|
|
48
|
+
"react-router-dom": "^7.5.1",
|
|
49
|
+
"typedoc": "^0.28.3",
|
|
50
50
|
"typescript": "^5.8.3"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@mui/icons-material": "^7.0.2",
|
|
54
54
|
"@mui/material": "^7.0.2",
|
|
55
55
|
"@mui/system": "^7.0.2",
|
|
56
|
-
"@mui/x-tree-view": "^7.29.
|
|
56
|
+
"@mui/x-tree-view": "^7.29.1",
|
|
57
57
|
"@storybook/react": "^8.6.12",
|
|
58
58
|
"@types/react": "^19.1.2",
|
|
59
|
-
"@xylabs/ts-scripts-yarn3": "^6.
|
|
60
|
-
"@xylabs/tsconfig-react": "^6.
|
|
59
|
+
"@xylabs/ts-scripts-yarn3": "^6.3.5",
|
|
60
|
+
"@xylabs/tsconfig-react": "^6.3.5",
|
|
61
61
|
"react": "^19.1.0",
|
|
62
62
|
"react-dom": "^19.1.0",
|
|
63
63
|
"storybook": "^8.6.12",
|
|
@@ -24,7 +24,7 @@ export const DeclarationContainerReflectionViewer: React.FC<DeclarationContainer
|
|
|
24
24
|
<ContainerReflectionViewer
|
|
25
25
|
title="DeclarationContainerReflectionViewer"
|
|
26
26
|
paper={hash.slice(1) === reflection.name}
|
|
27
|
-
bgcolor={hash.slice(1) === reflection.name ? theme.palette.background.default : undefined}
|
|
27
|
+
bgcolor={hash.slice(1) === reflection.name ? theme.vars.palette.background.default : undefined}
|
|
28
28
|
lookup={lookup}
|
|
29
29
|
itemRenderer={itemRenderer}
|
|
30
30
|
reflection={reflection}
|
|
@@ -65,7 +65,7 @@ export const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps>
|
|
|
65
65
|
hiddenFlags={hiddenFlags}
|
|
66
66
|
reflection={reflection}
|
|
67
67
|
lookup={lookup}
|
|
68
|
-
border={`1px solid ${theme.palette.grey['300']}`}
|
|
68
|
+
border={`1px solid ${theme.vars.palette.grey['300']}`}
|
|
69
69
|
borderRadius={1}
|
|
70
70
|
paddingY={1}
|
|
71
71
|
/>
|
|
@@ -90,7 +90,7 @@ export const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps>
|
|
|
90
90
|
overflow="scroll"
|
|
91
91
|
borderRadius={1}
|
|
92
92
|
padding={1}
|
|
93
|
-
border={`1px solid ${theme.palette.grey['300']}`}
|
|
93
|
+
border={`1px solid ${theme.vars.palette.grey['300']}`}
|
|
94
94
|
>
|
|
95
95
|
{reflectionGroups}
|
|
96
96
|
</FlexCol>
|
package/src/global.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from '@mui/material/themeCssVarsAugmentation'
|