@xyo-network/react-typedoc 5.0.4 → 5.0.6

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.
@@ -245,11 +245,11 @@ var NameViewer = /* @__PURE__ */ __name(({ reflectionViewer, variant, reflection
245
245
  // src/ReflectionViewer/ReflectionViewer.tsx
246
246
  var hide = /* @__PURE__ */ __name((flags, hiddenFlags = []) => {
247
247
  let hide3 = false;
248
- hiddenFlags.map((hiddenFlag) => {
248
+ for (const hiddenFlag of hiddenFlags) {
249
249
  if (flags?.[hiddenFlag]) {
250
250
  hide3 = true;
251
251
  }
252
- });
252
+ }
253
253
  return hide3;
254
254
  }, "hide");
255
255
  var ReflectionViewer = /* @__PURE__ */ __name(({ variant, nameViewer, children, reflection, hiddenFlags, ...props }) => {
@@ -279,11 +279,11 @@ var ReflectionViewer = /* @__PURE__ */ __name(({ variant, nameViewer, children,
279
279
  // src/ReflectionViewer/ReflectionGroupViewer.tsx
280
280
  var hide2 = /* @__PURE__ */ __name((flags, hiddenFlags = []) => {
281
281
  let hide3 = false;
282
- hiddenFlags.map((hiddenFlag) => {
282
+ for (const hiddenFlag of hiddenFlags) {
283
283
  if (flags?.[hiddenFlag]) {
284
284
  hide3 = true;
285
285
  }
286
- });
286
+ }
287
287
  return hide3;
288
288
  }, "hide");
289
289
  var ReflectionGroupViewer = /* @__PURE__ */ __name(({ autoScroll = false, children, hiddenFlags, group, lookup, renderer = ReflectionViewer, variant, ...props }) => {
@@ -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 hiddenFlags.map((hiddenFlag) => {\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 hiddenFlags.map((hiddenFlag) => {\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 ? <>:&nbsp;</>\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-components\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-components\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,OAAOC,UAASC,gBAAgB;AAOzB,IAAMC,mBAAoD,wBAAC,EAChEC,eAAeC,KAAKC,OAAO,GAAGC,MAAAA,MAC/B;AACC,QAAM,CAACC,MAAMC,OAAAA,IAAWC,SAAS,KAAA;AACjC,SACE,gBAAAC,OAAA,cAAAA,OAAA,UAAA,MACE,gBAAAA,O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AA1B,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","map","hiddenFlag","ReflectionViewer","variant","nameViewer","children","reflection","props","someReflection","React","FlexCol","title","alignItems","undefined","NameViewer","marginY","reflectionViewer","comment","CommentViewer","parameters","parameter","marginX","key","id","hide","flags","hiddenFlags","map","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","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 ? <>:&nbsp;</>\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,OAAOC,UAASC,gBAAgB;AAOzB,IAAMC,mBAAoD,wBAAC,EAChEC,eAAeC,KAAKC,OAAO,GAAGC,MAAAA,MAC/B;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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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-typedoc",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -38,34 +38,30 @@
38
38
  },
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/types/index.d.ts",
41
- "scripts": {
42
- "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\"",
43
- "lint-pkg": "npmPkgJsonLint ."
44
- },
45
41
  "dependencies": {
46
42
  "@emotion/react": "^11.14.0",
47
43
  "@emotion/styled": "^11.14.0",
48
- "@mui/icons-material": "^6.4.7",
49
- "@mui/material": "^6.4.7",
50
- "@mui/styles": "^6.4.7",
51
- "@mui/system": "^6.4.7",
52
- "@mui/x-tree-view": "^7.26.0",
53
- "@xylabs/assert": "^4.6.0",
54
- "@xylabs/react-button": "^6.0.5",
55
- "@xylabs/react-flexbox": "^6.0.5",
56
- "@xyo-network/react-payload-raw-info": "^5.0.4",
44
+ "@mui/icons-material": "^6.4.8",
45
+ "@mui/material": "^6.4.8",
46
+ "@mui/styles": "^6.4.8",
47
+ "@mui/system": "^6.4.8",
48
+ "@mui/x-tree-view": "^7.28.0",
49
+ "@xylabs/assert": "^4.6.4",
50
+ "@xylabs/react-button": "^6.0.6",
51
+ "@xylabs/react-flexbox": "^6.0.6",
52
+ "@xyo-network/react-payload-raw-info": "^5.0.6",
57
53
  "react-router-dom": "^7.3.0",
58
- "typedoc": "^0.27.9",
54
+ "typedoc": "^0.28.0",
59
55
  "typescript": "^5.8.2"
60
56
  },
61
57
  "devDependencies": {
62
- "@storybook/react": "^8.6.4",
58
+ "@storybook/react": "^8.6.7",
63
59
  "@types/react": "^19.0.10",
64
- "@xylabs/ts-scripts-yarn3": "^6.0.9",
65
- "@xylabs/tsconfig-react": "^6.0.9",
60
+ "@xylabs/ts-scripts-yarn3": "^6.1.4",
61
+ "@xylabs/tsconfig-react": "^6.1.4",
66
62
  "react": "^19.0.0",
67
63
  "react-dom": "^19.0.0",
68
- "storybook": "^8.6.4",
64
+ "storybook": "^8.6.7",
69
65
  "typescript": "^5.8.2"
70
66
  },
71
67
  "peerDependencies": {
@@ -20,11 +20,11 @@ export interface ReflectionGroupViewerProps extends ReflectionViewerProps<Contai
20
20
 
21
21
  const hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {
22
22
  let hide = false
23
- hiddenFlags.map((hiddenFlag) => {
23
+ for (const hiddenFlag of hiddenFlags) {
24
24
  if (flags?.[hiddenFlag]) {
25
25
  hide = true
26
26
  }
27
- })
27
+ }
28
28
  return hide
29
29
  }
30
30
 
@@ -9,11 +9,11 @@ import type { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps.
9
9
 
10
10
  const hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {
11
11
  let hide = false
12
- hiddenFlags.map((hiddenFlag) => {
12
+ for (const hiddenFlag of hiddenFlags) {
13
13
  if (flags?.[hiddenFlag]) {
14
14
  hide = true
15
15
  }
16
- })
16
+ }
17
17
  return hide
18
18
  }
19
19
 
@@ -43,7 +43,7 @@ export const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps>
43
43
  })
44
44
  }, [itemRenderer, lookup, reflection, hiddenFlags])
45
45
 
46
- // eslint-disable-next-line @eslint-react/no-nested-components
46
+ // eslint-disable-next-line @eslint-react/no-nested-component-definitions
47
47
  const NavigationCol: React.FC<FlexBoxProps> = (props) => {
48
48
  return (
49
49
  <FlexCol {...props}>
@@ -74,7 +74,7 @@ export const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps>
74
74
  )
75
75
  }
76
76
 
77
- // eslint-disable-next-line @eslint-react/no-nested-components
77
+ // eslint-disable-next-line @eslint-react/no-nested-component-definitions
78
78
  const DetailsCol: React.FC<FlexBoxProps> = (props) => {
79
79
  return (
80
80
  <FlexGrowCol {...props}>