@xyo-network/react-typedoc 2.67.6 → 2.67.7
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/ReflectionViewer/SomeTypeViewer/buildTypeString.d.cts.map +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.d.mts.map +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.d.ts.map +1 -1
- package/dist/browser/index.cjs +23 -18
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +23 -18
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/resolveChildren.d.cts.map +1 -1
- package/dist/browser/resolveChildren.d.mts.map +1 -1
- package/dist/browser/resolveChildren.d.ts.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.d.cts.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.d.mts.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.d.ts.map +1 -1
- package/dist/node/index.cjs +23 -19
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +23 -19
- package/dist/node/index.js.map +1 -1
- package/dist/node/resolveChildren.d.cts.map +1 -1
- package/dist/node/resolveChildren.d.mts.map +1 -1
- package/dist/node/resolveChildren.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/ReflectionViewer/DeclarationContainer.tsx +2 -2
- package/src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts +2 -2
- package/src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx +7 -6
- package/src/TreeViewer/Reflection.tsx +1 -1
- package/src/createLookup.ts +1 -1
- package/src/resolveChildren.ts +6 -4
- package/src/trimFlagLabel.ts +1 -1
package/dist/node/index.js
CHANGED
|
@@ -33,9 +33,10 @@ import { assertEx } from "@xylabs/assert";
|
|
|
33
33
|
|
|
34
34
|
// src/createLookup.ts
|
|
35
35
|
var createLookup = (reflection) => {
|
|
36
|
-
var _a;
|
|
37
36
|
const lookup = {};
|
|
38
|
-
(
|
|
37
|
+
if (reflection.children)
|
|
38
|
+
for (const item of reflection.children)
|
|
39
|
+
lookup[item.id] = item;
|
|
39
40
|
return lookup;
|
|
40
41
|
};
|
|
41
42
|
|
|
@@ -50,17 +51,19 @@ var resolveChildren = (reflection, lookup = {}) => {
|
|
|
50
51
|
var _a;
|
|
51
52
|
return ((_a = reflection.children) == null ? void 0 : _a.map((child) => {
|
|
52
53
|
switch (typeof child) {
|
|
53
|
-
case "object":
|
|
54
|
+
case "object": {
|
|
54
55
|
return child;
|
|
56
|
+
}
|
|
55
57
|
case "number": {
|
|
56
58
|
const childObj = lookup[child];
|
|
57
59
|
if (childObj === void 0) {
|
|
58
|
-
throw Error(`Child Reference Not Found [${child}]`);
|
|
60
|
+
throw new Error(`Child Reference Not Found [${child}]`);
|
|
59
61
|
}
|
|
60
62
|
return childObj;
|
|
61
63
|
}
|
|
62
|
-
default:
|
|
63
|
-
throw Error(`Invalid Child Type [${typeof child}, ${child}]`);
|
|
64
|
+
default: {
|
|
65
|
+
throw new Error(`Invalid Child Type [${typeof child}, ${child}]`);
|
|
66
|
+
}
|
|
64
67
|
}
|
|
65
68
|
})) ?? [];
|
|
66
69
|
};
|
|
@@ -75,7 +78,7 @@ import { FlexRow } from "@xylabs/react-flexbox";
|
|
|
75
78
|
// src/trimFlagLabel.ts
|
|
76
79
|
var trimFlagLabel = (label) => {
|
|
77
80
|
if (label.startsWith("is")) {
|
|
78
|
-
return label.
|
|
81
|
+
return label.slice(2);
|
|
79
82
|
}
|
|
80
83
|
return label;
|
|
81
84
|
};
|
|
@@ -112,13 +115,13 @@ var buildReferenceString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
|
112
115
|
const parts = [];
|
|
113
116
|
parts.push(typeObj.name);
|
|
114
117
|
if (typeObj.typeArguments) {
|
|
115
|
-
parts.push("<");
|
|
116
118
|
parts.push(
|
|
119
|
+
"<",
|
|
117
120
|
typeObj.typeArguments.map((arg) => {
|
|
118
121
|
return typeBuilder(arg, reflectionViewer);
|
|
119
|
-
}).join(", ")
|
|
122
|
+
}).join(", "),
|
|
123
|
+
">"
|
|
120
124
|
);
|
|
121
|
-
parts.push(">");
|
|
122
125
|
}
|
|
123
126
|
return parts;
|
|
124
127
|
};
|
|
@@ -149,16 +152,18 @@ var buildTypeString = (type, reflectionViewer) => {
|
|
|
149
152
|
const someType = type;
|
|
150
153
|
const parts = [];
|
|
151
154
|
switch (someType.type) {
|
|
152
|
-
case "intrinsic":
|
|
155
|
+
case "intrinsic": {
|
|
153
156
|
parts.push(someType.name);
|
|
154
157
|
break;
|
|
158
|
+
}
|
|
155
159
|
case "intersection": {
|
|
156
160
|
parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString));
|
|
157
161
|
break;
|
|
158
162
|
}
|
|
159
|
-
case "literal":
|
|
163
|
+
case "literal": {
|
|
160
164
|
parts.push(JSON.stringify(someType.value));
|
|
161
165
|
break;
|
|
166
|
+
}
|
|
162
167
|
case "array": {
|
|
163
168
|
parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString));
|
|
164
169
|
break;
|
|
@@ -174,11 +179,10 @@ var buildTypeString = (type, reflectionViewer) => {
|
|
|
174
179
|
case "reflection": {
|
|
175
180
|
return buildRelfectionString(someType, reflectionViewer);
|
|
176
181
|
}
|
|
177
|
-
default:
|
|
178
|
-
parts.push("#");
|
|
179
|
-
parts.push(someType.type);
|
|
180
|
-
parts.push("#");
|
|
182
|
+
default: {
|
|
183
|
+
parts.push("#", someType.type, "#");
|
|
181
184
|
break;
|
|
185
|
+
}
|
|
182
186
|
}
|
|
183
187
|
return parts.join("");
|
|
184
188
|
};
|
|
@@ -372,8 +376,8 @@ var DeclarationContainerReflectionViewer = ({
|
|
|
372
376
|
ContainerReflectionViewer,
|
|
373
377
|
{
|
|
374
378
|
title: "DeclarationContainerReflectionViewer",
|
|
375
|
-
paper: hash.
|
|
376
|
-
bgcolor: hash.
|
|
379
|
+
paper: hash.slice(1) === reflection.name,
|
|
380
|
+
bgcolor: hash.slice(1) === reflection.name ? theme.palette.background.default : void 0,
|
|
377
381
|
lookup,
|
|
378
382
|
itemRenderer,
|
|
379
383
|
reflection,
|
|
@@ -439,7 +443,7 @@ var ReflectionTreeViewer = ({ lookup, reflection, searchTerm, ...props }) => {
|
|
|
439
443
|
children: (_a = reflection.groups) == null ? void 0 : _a.map((group, index) => /* @__PURE__ */ jsx12(TreeItem, { nodeId: group.title, label: /* @__PURE__ */ jsx12(Typography5, { variant: "h6", children: group.title }), children: group.children.map((child, jndex) => {
|
|
440
444
|
const searchTermTrimmed = searchTerm == null ? void 0 : searchTerm.trim().toLowerCase();
|
|
441
445
|
const childReflection = typeof child === "number" ? lookup == null ? void 0 : lookup[child] : child;
|
|
442
|
-
return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().
|
|
446
|
+
return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().includes(searchTermTrimmed)) ? /* @__PURE__ */ jsx12(
|
|
443
447
|
TreeItem,
|
|
444
448
|
{
|
|
445
449
|
nodeId: `declaration-${childReflection == null ? void 0 : childReflection.id}`,
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/CommentViewer.tsx","../../src/JsonViewerButton.tsx","../../src/ProjectTwoPanelReflectionViewer.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/Container.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 { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\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 { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material'\nimport { ButtonEx, ButtonExProps } from '@xylabs/react-button'\nimport { lazy, Suspense, useState } from 'react'\nimport type { ReactJsonViewProps } from 'react-json-view'\n\nconst JsonView = lazy(() => import(/* webpackChunkName: \"jsonView\" */ 'react-json-view'))\n\nexport interface JsonViewerButtonProps extends ButtonExProps {\n jsonViewProps?: Partial<ReactJsonViewProps>\n src: object\n}\n\nexport const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({ jsonViewProps, src, title, ...props }) => {\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 ? <DialogTitle>{title}</DialogTitle> : null}\n <DialogContent>\n <Suspense fallback={<div />}>\n <JsonView src={src} {...jsonViewProps} />\n </Suspense>\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 type { ProjectReflection } from 'typedoc'\n\nimport { ContainerReflectionViewerProps, DeclarationContainerReflectionViewer } from './ReflectionViewer'\nimport { TwoPanelReflectionViewer } from './TwoPanelReflectionViewer'\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 type { ContainerReflection, DeclarationReflection } from 'typedoc'\n\nexport const createLookup = <T extends DeclarationReflection>(reflection: ContainerReflection) => {\n const lookup: Record<number, T> = {}\n reflection.children?.forEach((item) => (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 { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\nimport type { ContainerReflection, ReflectionFlags, ReflectionGroup } from 'typedoc'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { resolveChildren } from '../resolveChildren'\nimport { ReflectionViewer } from './ReflectionViewer'\nimport { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps'\n\nexport interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {\n autoscroll?: boolean\n group: ReflectionGroup\n reflection: ContainerReflection\n renderer?: React.FC<ReflectionViewerProps>\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 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\n const resolvedChildern = resolveChildren(group, lookup) ?? []\n\n const visibleChildren = hiddenFlags\n ? resolvedChildern.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 return visibleChildren > 0 ? (\n <FlexCol title=\"ReflectionGroupViewer\" {...props}>\n <FlexRow marginY={1} justifyContent=\"flex-start\">\n <Typography variant={variant}>{group.title}</Typography>\n <JsonViewerButton\n jsonViewProps={{ collapsed: 1 }}\n size=\"small\"\n variant=\"contained\"\n padding={0}\n marginX={1}\n src={resolveChildren(group, lookup)}\n />\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 <div id={reflection.name} key={reflection.id}>\n {renderer({ hiddenFlags, lookup, margin: 1, padding: 1, reflection })}\n </div>\n ) : null\n })}\n {children}\n </FlexCol>\n ) : null\n}\n","import type { Reflection } from 'typedoc'\n\nimport { ReflectionLookup } from './ReflectionLookup'\nimport { SomeReflection } from './SomeReflection'\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 case 'number': {\n const childObj = lookup[child]\n if (childObj === undefined) {\n throw Error(`Child Reference Not Found [${child}]`)\n }\n return childObj\n }\n default:\n throw Error(`Invalid Child Type [${typeof child}, ${child}]`)\n }\n }) ?? []) as T[]\n}\n","import { FlexCol } from '@xylabs/react-flexbox'\nimport type { ReflectionFlags } from 'typedoc'\n\nimport { CommentViewer } from '../CommentViewer'\nimport { SomeReflection } from '../SomeReflection'\nimport { NameViewer } from './NameViewer'\nimport { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps'\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> = ({ variant, nameViewer, children, reflection, hiddenFlags, ...props }) => {\n const someReflection = reflection as SomeReflection\n\n return hide(reflection?.flags, hiddenFlags) ? null : (\n <FlexCol title=\"ReflectionViewer\" alignItems=\"stretch\" {...props}>\n {nameViewer === undefined ? (\n <NameViewer marginY={0.25} variant={variant} reflection={someReflection} reflectionViewer={ReflectionViewer} />\n ) : (\n nameViewer\n )}\n {reflection.comment ? <CommentViewer comment={reflection.comment} /> : 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 { Chip, Stack, Typography, TypographyVariant } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { SomeReflection } from '../SomeReflection'\nimport { trimFlagLabel } from '../trimFlagLabel'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\nimport { SomeTypeViewer } from './SomeTypeViewer'\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> = ({ reflectionViewer, variant, reflection, ...props }) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type ? <>: </> : 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 jsonViewProps={{ collapsed: 1 }} 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.substring(2)\n }\n return label\n}\n","import { Typography, TypographyProps } from '@mui/material'\n\nimport { SomeReflection } from '../../SomeReflection'\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildTypeString } from './buildTypeString'\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> = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {\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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 parts.push(\n typeObj.typeArguments\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(', '),\n )\n parts.push('>')\n }\n return parts\n}\n","import type { ReflectionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\n\nexport const buildRelfectionString = (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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 { ReactNode } from 'react'\nimport type { SomeType, Type } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildArrayString } from './buildArrayString'\nimport { buildIntersectionString } from './buildIntersectionString'\nimport { buildReferenceString } from './buildReferenceString'\nimport { buildRelfectionString } from './buildReflectionString'\nimport { buildUnionString } from './buildUnionString'\nimport { TypeBuilder } from './TypeBuilder'\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 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 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 buildRelfectionString(someType, reflectionViewer)\n }\n default:\n parts.push('#')\n parts.push(someType.type)\n parts.push('#')\n break\n }\n return parts.join('')\n}\n","import type { ContainerReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer'\nimport { ReflectionViewer } from './ReflectionViewer'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\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 { DeclarationReflection, SignatureReflection } from 'typedoc'\n\nimport { ReflectionViewer } from './ReflectionViewer'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\n\nexport const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>> = ({ reflection, hiddenFlags, ...props }) => {\n const safeSignatures = (signatures?: SignatureReflection[] | SignatureReflection) => {\n return Array.isArray(signatures) ? signatures : signatures ? [signatures] : undefined\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 { useLocation } from 'react-router-dom'\nimport type { DeclarationReflection } from 'typedoc'\n\nimport { ContainerReflectionViewer, ContainerReflectionViewerProps } from './Container'\nimport { DeclarationReflectionViewer } from './Declaration'\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.substring(1) === reflection.name}\n bgcolor={hash.substring(1) === reflection.name ? theme.palette.background.default : undefined}\n lookup={lookup}\n itemRenderer={itemRenderer}\n reflection={reflection}\n {...props}\n />\n )\n}\n","import { useMemo } from 'react'\nimport type { ProjectReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup'\nimport { ContainerReflectionViewerProps } from './Container'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer'\nimport { ReflectionViewer } from './ReflectionViewer'\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 { FlexBoxProps, FlexCol, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport { useMemo, useState } from 'react'\nimport type { ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from './createLookup'\nimport { ContainerReflectionViewerProps, ReflectionGroupViewer, ReflectionViewer } from './ReflectionViewer'\nimport { ReflectionTreeViewer } from './TreeViewer'\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 const NavigationCol: React.FC<FlexBoxProps> = (props) => {\n return (\n <FlexCol {...props}>\n <TextField\n fullWidth\n InputProps={{\n startAdornment: <Search />,\n }}\n onChange={onSearchTermChange}\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 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 { TreeItem, TreeView } from '@mui/x-tree-view'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { useNavigate } from 'react-router-dom'\nimport type { ContainerReflection, Reflection } from 'typedoc'\n\nimport { ReflectionLookup } from '../ReflectionLookup'\nimport { FlagFilter } from '../ReflectionViewer'\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> = ({ lookup, reflection, searchTerm, ...props }) => {\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 <TreeView\n aria-label=\"XYO SDK Documentation\"\n defaultExpandIcon={<Add />}\n defaultCollapseIcon={<Remove />}\n defaultExpanded={reflection.groups ? [reflection.groups[0].title] : []}\n >\n {reflection.groups?.map((group, index) => (\n <TreeItem key={`primary-${index}`} nodeId={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().indexOf(searchTermTrimmed) !== -1) ? (\n <TreeItem\n key={`secondary-${index}- ${jndex}`}\n nodeId={`declaration-${childReflection?.id}`}\n label={childReflection.name}\n onClick={() => {\n const hash = `#${childReflection.name}`\n navigate({ hash })\n document.querySelector(hash)?.scrollIntoView({ behavior: 'smooth' })\n }}\n />\n ) : null\n })}\n </TreeItem>\n ))}\n </TreeView>\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { ReflectionGroupViewerProps, ReflectionViewer } from '../ReflectionViewer'\nimport { resolveChildren } from '../resolveChildren'\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\n jsonViewProps={{ collapsed: 1 }}\n size=\"small\"\n variant=\"contained\"\n padding={0}\n marginX={1}\n src={resolveChildren(group, lookup)}\n />\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 <div key={reflection.id}>{renderer({ lookup, margin: 1, reflection })}</div>\n ) : null\n })}\n {children}\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\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,SAAS,kBAAkB;AAC3B,SAAuB,eAAe;AAUhC;AAHC,IAAM,gBAA8C,CAAC,EAAE,SAAS,GAAG,MAAM,MAAM;AARtF;AASE,SACE,oBAAC,WAAQ,YAAW,WAAW,GAAG,OAChC,8BAAC,cAAW,SAAQ,SAAS,wBAAQ,QAAQ,CAAC,MAAjB,mBAAoB,MAAK,GACxD;AAEJ;;;ACdA,SAAS,QAAQ,eAAe,eAAe,mBAAmB;AAClE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ACF,aAAA,EAAW,OAAO,EAAE,SAAS,IAAI,GAAG,SAAQ,SAC3C,0BAAAE,MAAC,OAAG,iBAAO,UAAS,GACtB,GACF;AAEJ;","names":["jsx","Typography","FlexCol","FlexRow","FlexCol","Typography","Typography","Fragment","jsx","Fragment","jsx","Typography","Fragment","jsx","jsxs","Typography","jsx","jsxs","hide","FlexCol","jsx","jsxs","hide","hiddenFlags","FlexCol","FlexRow","Typography","jsx","jsxs","jsx","jsxs","useLocation","jsx","useLocation","jsx","useTheme","FlexCol","FlexRow","useMemo","useState","Typography","FlexCol","jsx","_a","Typography","FlexCol","FlexRow","jsx","jsxs","FlexCol","FlexRow","Typography","jsx","jsxs","useMemo","useTheme","useState","props","FlexCol","FlexRow","jsx","Typography","FlexCol","jsx"]}
|
|
1
|
+
{"version":3,"sources":["../../src/CommentViewer.tsx","../../src/JsonViewerButton.tsx","../../src/ProjectTwoPanelReflectionViewer.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/Container.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 { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\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 { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material'\nimport { ButtonEx, ButtonExProps } from '@xylabs/react-button'\nimport { lazy, Suspense, useState } from 'react'\nimport type { ReactJsonViewProps } from 'react-json-view'\n\nconst JsonView = lazy(() => import(/* webpackChunkName: \"jsonView\" */ 'react-json-view'))\n\nexport interface JsonViewerButtonProps extends ButtonExProps {\n jsonViewProps?: Partial<ReactJsonViewProps>\n src: object\n}\n\nexport const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({ jsonViewProps, src, title, ...props }) => {\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 ? <DialogTitle>{title}</DialogTitle> : null}\n <DialogContent>\n <Suspense fallback={<div />}>\n <JsonView src={src} {...jsonViewProps} />\n </Suspense>\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 type { ProjectReflection } from 'typedoc'\n\nimport { ContainerReflectionViewerProps, DeclarationContainerReflectionViewer } from './ReflectionViewer'\nimport { TwoPanelReflectionViewer } from './TwoPanelReflectionViewer'\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 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 { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\nimport type { ContainerReflection, ReflectionFlags, ReflectionGroup } from 'typedoc'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { resolveChildren } from '../resolveChildren'\nimport { ReflectionViewer } from './ReflectionViewer'\nimport { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps'\n\nexport interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {\n autoscroll?: boolean\n group: ReflectionGroup\n reflection: ContainerReflection\n renderer?: React.FC<ReflectionViewerProps>\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 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\n const resolvedChildern = resolveChildren(group, lookup) ?? []\n\n const visibleChildren = hiddenFlags\n ? resolvedChildern.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 return visibleChildren > 0 ? (\n <FlexCol title=\"ReflectionGroupViewer\" {...props}>\n <FlexRow marginY={1} justifyContent=\"flex-start\">\n <Typography variant={variant}>{group.title}</Typography>\n <JsonViewerButton\n jsonViewProps={{ collapsed: 1 }}\n size=\"small\"\n variant=\"contained\"\n padding={0}\n marginX={1}\n src={resolveChildren(group, lookup)}\n />\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 <div id={reflection.name} key={reflection.id}>\n {renderer({ hiddenFlags, lookup, margin: 1, padding: 1, reflection })}\n </div>\n ) : null\n })}\n {children}\n </FlexCol>\n ) : null\n}\n","import type { Reflection } from 'typedoc'\n\nimport { ReflectionLookup } from './ReflectionLookup'\nimport { SomeReflection } from './SomeReflection'\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 type { ReflectionFlags } from 'typedoc'\n\nimport { CommentViewer } from '../CommentViewer'\nimport { SomeReflection } from '../SomeReflection'\nimport { NameViewer } from './NameViewer'\nimport { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps'\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> = ({ variant, nameViewer, children, reflection, hiddenFlags, ...props }) => {\n const someReflection = reflection as SomeReflection\n\n return hide(reflection?.flags, hiddenFlags) ? null : (\n <FlexCol title=\"ReflectionViewer\" alignItems=\"stretch\" {...props}>\n {nameViewer === undefined ? (\n <NameViewer marginY={0.25} variant={variant} reflection={someReflection} reflectionViewer={ReflectionViewer} />\n ) : (\n nameViewer\n )}\n {reflection.comment ? <CommentViewer comment={reflection.comment} /> : 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 { Chip, Stack, Typography, TypographyVariant } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { SomeReflection } from '../SomeReflection'\nimport { trimFlagLabel } from '../trimFlagLabel'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\nimport { SomeTypeViewer } from './SomeTypeViewer'\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> = ({ reflectionViewer, variant, reflection, ...props }) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type ? <>: </> : 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 jsonViewProps={{ collapsed: 1 }} 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 { Typography, TypographyProps } from '@mui/material'\n\nimport { SomeReflection } from '../../SomeReflection'\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildTypeString } from './buildTypeString'\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> = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {\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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 type { ReflectionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\n\nexport const buildRelfectionString = (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 { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\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 { ReactNode } from 'react'\nimport type { SomeType, Type } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildArrayString } from './buildArrayString'\nimport { buildIntersectionString } from './buildIntersectionString'\nimport { buildReferenceString } from './buildReferenceString'\nimport { buildRelfectionString } from './buildReflectionString'\nimport { buildUnionString } from './buildUnionString'\nimport { TypeBuilder } from './TypeBuilder'\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 buildRelfectionString(someType, reflectionViewer)\n }\n default: {\n parts.push('#', someType.type, '#')\n break\n }\n }\n return parts.join('')\n}\n","import type { ContainerReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer'\nimport { ReflectionViewer } from './ReflectionViewer'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\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 { DeclarationReflection, SignatureReflection } from 'typedoc'\n\nimport { ReflectionViewer } from './ReflectionViewer'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\n\nexport const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>> = ({ reflection, hiddenFlags, ...props }) => {\n const safeSignatures = (signatures?: SignatureReflection[] | SignatureReflection) => {\n return Array.isArray(signatures) ? signatures : signatures ? [signatures] : undefined\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 { useLocation } from 'react-router-dom'\nimport type { DeclarationReflection } from 'typedoc'\n\nimport { ContainerReflectionViewer, ContainerReflectionViewerProps } from './Container'\nimport { DeclarationReflectionViewer } from './Declaration'\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 { useMemo } from 'react'\nimport type { ProjectReflection, ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from '../createLookup'\nimport { ContainerReflectionViewerProps } from './Container'\nimport { ReflectionGroupViewer } from './ReflectionGroupViewer'\nimport { ReflectionViewer } from './ReflectionViewer'\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 { FlexBoxProps, FlexCol, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport { useMemo, useState } from 'react'\nimport type { ReflectionGroup } from 'typedoc'\n\nimport { createLookup } from './createLookup'\nimport { ContainerReflectionViewerProps, ReflectionGroupViewer, ReflectionViewer } from './ReflectionViewer'\nimport { ReflectionTreeViewer } from './TreeViewer'\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 const NavigationCol: React.FC<FlexBoxProps> = (props) => {\n return (\n <FlexCol {...props}>\n <TextField\n fullWidth\n InputProps={{\n startAdornment: <Search />,\n }}\n onChange={onSearchTermChange}\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 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 { TreeItem, TreeView } from '@mui/x-tree-view'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { useNavigate } from 'react-router-dom'\nimport type { ContainerReflection, Reflection } from 'typedoc'\n\nimport { ReflectionLookup } from '../ReflectionLookup'\nimport { FlagFilter } from '../ReflectionViewer'\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> = ({ lookup, reflection, searchTerm, ...props }) => {\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 <TreeView\n aria-label=\"XYO SDK Documentation\"\n defaultExpandIcon={<Add />}\n defaultCollapseIcon={<Remove />}\n defaultExpanded={reflection.groups ? [reflection.groups[0].title] : []}\n >\n {reflection.groups?.map((group, index) => (\n <TreeItem key={`primary-${index}`} nodeId={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 <TreeItem\n key={`secondary-${index}- ${jndex}`}\n nodeId={`declaration-${childReflection?.id}`}\n label={childReflection.name}\n onClick={() => {\n const hash = `#${childReflection.name}`\n navigate({ hash })\n document.querySelector(hash)?.scrollIntoView({ behavior: 'smooth' })\n }}\n />\n ) : null\n })}\n </TreeItem>\n ))}\n </TreeView>\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { ReflectionGroupViewerProps, ReflectionViewer } from '../ReflectionViewer'\nimport { resolveChildren } from '../resolveChildren'\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\n jsonViewProps={{ collapsed: 1 }}\n size=\"small\"\n variant=\"contained\"\n padding={0}\n marginX={1}\n src={resolveChildren(group, lookup)}\n />\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 <div key={reflection.id}>{renderer({ lookup, margin: 1, reflection })}</div>\n ) : null\n })}\n {children}\n </FlexCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\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,SAAS,kBAAkB;AAC3B,SAAuB,eAAe;AAUhC;AAHC,IAAM,gBAA8C,CAAC,EAAE,SAAS,GAAG,MAAM,MAAM;AARtF;AASE,SACE,oBAAC,WAAQ,YAAW,WAAW,GAAG,OAChC,8BAAC,cAAW,SAAQ,SAAS,wBAAQ,QAAQ,CAAC,MAAjB,mBAAoB,MAAK,GACxD;AAEJ;;;ACdA,SAAS,QAAQ,eAAe,eAAe,mBAAmB;AAClE,SAAS,gBAA+B;AACxC,SAAS,MAAM,UAAU,gBAAgB;AAarC,mBACE,OAAAA,MAGA,YAJF;AAVJ,IAAM,WAAW,KAAK,MAAM;AAAA;AAAA,EAA0C;AAAiB,CAAC;AAOjF,IAAM,mBAAoD,CAAC,EAAE,eAAe,KAAK,OAAO,GAAG,MAAM,MAAM;AAC5G,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,SACE,iCACE;A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,YAAW;AAAA,QACX,gBAAe;AAAA,QACf,UAAS;AAAA,QACT,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,UAAS;AAAA,QACT,cAAc;AAAA,QACd,SAAS;AAAA,QACT,QAAQ,aAAa,MAAM,QAAQ,KAAK,KAAK,CAAC;AAAA,QAE7C;AAAA;AAAA,IACH,GACF,GACF;AAAA,EAEJ;AAEA,SACE,gBAAAL,MAACM,UAAA,EAAQ,YAAW,WAAU,gBAAe,SAAQ,IAAI,EAAE,WAAW,SAAS,GAAI,GAAG,OACpF;AAAA,oBAAAP,MAAC,iBAAc,UAAU,KAAK,YAAW,WAAU,gBAAe,cAAa,UAAS,UAAS;AAAA,IACjG,gBAAAA,MAAC,cAAW,YAAY,GAAG,YAAW,WAAU,gBAAe,cAAa,UAAS,UAAS;AAAA,KAChG;AAEJ;;;AlB3FS,gBAAAQ,aAAA;AANF,IAAM,kCAA+F,CAAC;AAAA,EAC3G;AAAA,EACA,eAAe;AAAA,EACf,GAAG;AACL,MAAM;AACJ,WAAS,WAAW,WAAW,gCAAgC;AAC/D,SAAO,gBAAAA,MAAC,4BAAyB,cAA4B,YAAyB,GAAG,OAAO;AAClG;;;AqBbA,SAAS,cAAAC,mBAAkB;AAC3B,SAAuB,WAAAC,gBAAe;AAW9B,gBAAAC,aAAA;AAJD,IAAM,eAA4C,CAAC,EAAE,QAAQ,GAAG,MAAM,MAAM;AACjF,SACE,gBAAAA,MAACD,UAAA,EAAQ,YAAW,WAAW,GAAG,OAChC,0BAAAC,MAACF,aAAA,EAAW,OAAO,EAAE,SAAS,IAAI,GAAG,SAAQ,SAC3C,0BAAAE,MAAC,OAAG,iBAAO,UAAS,GACtB,GACF;AAEJ;","names":["jsx","Typography","FlexCol","FlexRow","FlexCol","Typography","Typography","Fragment","jsx","Fragment","jsx","Typography","Fragment","jsx","jsxs","Typography","jsx","jsxs","hide","FlexCol","jsx","jsxs","hide","hiddenFlags","FlexCol","FlexRow","Typography","jsx","jsxs","jsx","jsxs","useLocation","jsx","useLocation","jsx","useTheme","FlexCol","FlexRow","useMemo","useState","Typography","FlexCol","jsx","_a","Typography","FlexCol","FlexRow","jsx","jsxs","FlexCol","FlexRow","Typography","jsx","jsxs","useMemo","useTheme","useState","props","FlexCol","FlexRow","jsx","Typography","FlexCol","jsx"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveChildren.d.ts","sourceRoot":"","sources":["../../src/resolveChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,yCAA0C,sBAAsB,WAAU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"resolveChildren.d.ts","sourceRoot":"","sources":["../../src/resolveChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,yCAA0C,sBAAsB,WAAU,gBAAgB,QAkBrH,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveChildren.d.ts","sourceRoot":"","sources":["../../src/resolveChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,yCAA0C,sBAAsB,WAAU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"resolveChildren.d.ts","sourceRoot":"","sources":["../../src/resolveChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,yCAA0C,sBAAsB,WAAU,gBAAgB,QAkBrH,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveChildren.d.ts","sourceRoot":"","sources":["../../src/resolveChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,yCAA0C,sBAAsB,WAAU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"resolveChildren.d.ts","sourceRoot":"","sources":["../../src/resolveChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,yCAA0C,sBAAsB,WAAU,gBAAgB,QAkBrH,CAAA"}
|
package/package.json
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"@emotion/styled": "^11.11.0",
|
|
15
15
|
"@mui/system": "^5.15.1",
|
|
16
16
|
"@mui/x-tree-view": "^6.17.0",
|
|
17
|
-
"@xylabs/assert": "^2.13.
|
|
17
|
+
"@xylabs/assert": "^2.13.22",
|
|
18
18
|
"@xylabs/react-button": "^3.0.35",
|
|
19
19
|
"@xylabs/react-flexbox": "^3.0.35",
|
|
20
20
|
"react-json-view": "^1.21.3",
|
|
21
|
-
"react-router-dom": "^6.21.
|
|
21
|
+
"react-router-dom": "^6.21.1",
|
|
22
22
|
"typedoc": "^0.25.4",
|
|
23
23
|
"typescript": "^5.3.3"
|
|
24
24
|
},
|
|
@@ -86,6 +86,6 @@
|
|
|
86
86
|
},
|
|
87
87
|
"sideEffects": false,
|
|
88
88
|
"types": "dist/browser/index.d.ts",
|
|
89
|
-
"version": "2.67.
|
|
89
|
+
"version": "2.67.7",
|
|
90
90
|
"type": "module"
|
|
91
91
|
}
|
|
@@ -21,8 +21,8 @@ export const DeclarationContainerReflectionViewer: React.FC<DeclarationContainer
|
|
|
21
21
|
return (
|
|
22
22
|
<ContainerReflectionViewer
|
|
23
23
|
title="DeclarationContainerReflectionViewer"
|
|
24
|
-
paper={hash.
|
|
25
|
-
bgcolor={hash.
|
|
24
|
+
paper={hash.slice(1) === reflection.name}
|
|
25
|
+
bgcolor={hash.slice(1) === reflection.name ? theme.palette.background.default : undefined}
|
|
26
26
|
lookup={lookup}
|
|
27
27
|
itemRenderer={itemRenderer}
|
|
28
28
|
reflection={reflection}
|
|
@@ -7,15 +7,15 @@ export const buildReferenceString = (typeObj: ReferenceType, reflectionViewer: R
|
|
|
7
7
|
const parts: string[] = []
|
|
8
8
|
parts.push(typeObj.name)
|
|
9
9
|
if (typeObj.typeArguments) {
|
|
10
|
-
parts.push('<')
|
|
11
10
|
parts.push(
|
|
11
|
+
'<',
|
|
12
12
|
typeObj.typeArguments
|
|
13
13
|
.map((arg) => {
|
|
14
14
|
return typeBuilder(arg, reflectionViewer)
|
|
15
15
|
})
|
|
16
16
|
.join(', '),
|
|
17
|
+
'>',
|
|
17
18
|
)
|
|
18
|
-
parts.push('>')
|
|
19
19
|
}
|
|
20
20
|
return parts
|
|
21
21
|
}
|
|
@@ -14,16 +14,18 @@ export const buildTypeString: TypeBuilder = (type: SomeType | Type, reflectionVi
|
|
|
14
14
|
const parts: string[] = []
|
|
15
15
|
|
|
16
16
|
switch (someType.type) {
|
|
17
|
-
case 'intrinsic':
|
|
17
|
+
case 'intrinsic': {
|
|
18
18
|
parts.push(someType.name)
|
|
19
19
|
break
|
|
20
|
+
}
|
|
20
21
|
case 'intersection': {
|
|
21
22
|
parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString))
|
|
22
23
|
break
|
|
23
24
|
}
|
|
24
|
-
case 'literal':
|
|
25
|
+
case 'literal': {
|
|
25
26
|
parts.push(JSON.stringify(someType.value))
|
|
26
27
|
break
|
|
28
|
+
}
|
|
27
29
|
case 'array': {
|
|
28
30
|
parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString))
|
|
29
31
|
break
|
|
@@ -39,11 +41,10 @@ export const buildTypeString: TypeBuilder = (type: SomeType | Type, reflectionVi
|
|
|
39
41
|
case 'reflection': {
|
|
40
42
|
return buildRelfectionString(someType, reflectionViewer)
|
|
41
43
|
}
|
|
42
|
-
default:
|
|
43
|
-
parts.push('#')
|
|
44
|
-
parts.push(someType.type)
|
|
45
|
-
parts.push('#')
|
|
44
|
+
default: {
|
|
45
|
+
parts.push('#', someType.type, '#')
|
|
46
46
|
break
|
|
47
|
+
}
|
|
47
48
|
}
|
|
48
49
|
return parts.join('')
|
|
49
50
|
}
|
|
@@ -41,7 +41,7 @@ export const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps> = ({ look
|
|
|
41
41
|
{group.children.map((child, jndex) => {
|
|
42
42
|
const searchTermTrimmed = searchTerm?.trim().toLowerCase()
|
|
43
43
|
const childReflection = typeof child === 'number' ? lookup?.[child as number] : child
|
|
44
|
-
return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().
|
|
44
|
+
return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().includes(searchTermTrimmed)) ? (
|
|
45
45
|
<TreeItem
|
|
46
46
|
key={`secondary-${index}- ${jndex}`}
|
|
47
47
|
nodeId={`declaration-${childReflection?.id}`}
|
package/src/createLookup.ts
CHANGED
|
@@ -2,6 +2,6 @@ import type { ContainerReflection, DeclarationReflection } from 'typedoc'
|
|
|
2
2
|
|
|
3
3
|
export const createLookup = <T extends DeclarationReflection>(reflection: ContainerReflection) => {
|
|
4
4
|
const lookup: Record<number, T> = {}
|
|
5
|
-
reflection.children
|
|
5
|
+
if (reflection.children) for (const item of reflection.children) lookup[item.id] = item as unknown as T
|
|
6
6
|
return lookup
|
|
7
7
|
}
|
package/src/resolveChildren.ts
CHANGED
|
@@ -8,17 +8,19 @@ type ReflectionWithChildren = { children: Reflection[] }
|
|
|
8
8
|
export const resolveChildren = <T extends SomeReflection>(reflection: ReflectionWithChildren, lookup: ReflectionLookup = {}): T[] => {
|
|
9
9
|
return (reflection.children?.map((child) => {
|
|
10
10
|
switch (typeof child) {
|
|
11
|
-
case 'object':
|
|
11
|
+
case 'object': {
|
|
12
12
|
return child
|
|
13
|
+
}
|
|
13
14
|
case 'number': {
|
|
14
15
|
const childObj = lookup[child]
|
|
15
16
|
if (childObj === undefined) {
|
|
16
|
-
throw Error(`Child Reference Not Found [${child}]`)
|
|
17
|
+
throw new Error(`Child Reference Not Found [${child}]`)
|
|
17
18
|
}
|
|
18
19
|
return childObj
|
|
19
20
|
}
|
|
20
|
-
default:
|
|
21
|
-
throw Error(`Invalid Child Type [${typeof child}, ${child}]`)
|
|
21
|
+
default: {
|
|
22
|
+
throw new Error(`Invalid Child Type [${typeof child}, ${child}]`)
|
|
23
|
+
}
|
|
22
24
|
}
|
|
23
25
|
}) ?? []) as T[]
|
|
24
26
|
}
|