@xyo-network/react-typedoc 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/CommentViewer.d.ts +8 -0
- package/dist/browser/CommentViewer.d.ts.map +1 -0
- package/dist/browser/JsonViewerButton.d.ts +9 -0
- package/dist/browser/JsonViewerButton.d.ts.map +1 -0
- package/dist/browser/ProjectTwoPanelReflectionViewer.d.ts +5 -0
- package/dist/browser/ProjectTwoPanelReflectionViewer.d.ts.map +1 -0
- package/dist/browser/ReflectionLookup.d.ts +3 -0
- package/dist/browser/ReflectionLookup.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/Container.d.ts +8 -0
- package/dist/browser/ReflectionViewer/Container.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/Declaration.d.ts +5 -0
- package/dist/browser/ReflectionViewer/Declaration.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/DeclarationContainer.d.ts +8 -0
- package/dist/browser/ReflectionViewer/DeclarationContainer.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/NameViewer.d.ts +12 -0
- package/dist/browser/ReflectionViewer/NameViewer.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/Project.d.ts +5 -0
- package/dist/browser/ReflectionViewer/Project.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionGroupViewer.d.ts +11 -0
- package/dist/browser/ReflectionViewer/ReflectionGroupViewer.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionViewer.d.ts +4 -0
- package/dist/browser/ReflectionViewer/ReflectionViewer.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionViewerProps.d.ts +15 -0
- package/dist/browser/ReflectionViewer/ReflectionViewerProps.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.ts +11 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/TypeBuilder.d.ts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/TypeBuilder.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildArrayString.d.ts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildArrayString.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildIntersectionString.d.ts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildIntersectionString.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReferenceString.d.ts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReferenceString.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReflectionString.d.ts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReflectionString.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.d.ts +3 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildUnionString.d.ts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildUnionString.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/index.d.ts +2 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/index.d.ts.map +1 -0
- package/dist/browser/ReflectionViewer/index.d.ts +9 -0
- package/dist/browser/ReflectionViewer/index.d.ts.map +1 -0
- package/dist/browser/SomeReflection.d.ts +9 -0
- package/dist/browser/SomeReflection.d.ts.map +1 -0
- package/dist/browser/SourceViewer.d.ts +8 -0
- package/dist/browser/SourceViewer.d.ts.map +1 -0
- package/dist/browser/TreeViewer/Reflection.d.ts +13 -0
- package/dist/browser/TreeViewer/Reflection.d.ts.map +1 -0
- package/dist/browser/TreeViewer/ReflectionGroup.d.ts +4 -0
- package/dist/browser/TreeViewer/ReflectionGroup.d.ts.map +1 -0
- package/dist/browser/TreeViewer/index.d.ts +3 -0
- package/dist/browser/TreeViewer/index.d.ts.map +1 -0
- package/dist/browser/TwoPanelReflectionViewer.d.ts +4 -0
- package/dist/browser/TwoPanelReflectionViewer.d.ts.map +1 -0
- package/dist/browser/createLookup.d.ts +3 -0
- package/dist/browser/createLookup.d.ts.map +1 -0
- package/dist/browser/index.d.ts +10 -89
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/resolveChildren.d.ts +9 -0
- package/dist/browser/resolveChildren.d.ts.map +1 -0
- package/dist/browser/trimFlagLabel.d.ts +2 -0
- package/dist/browser/trimFlagLabel.d.ts.map +1 -0
- package/package.json +48 -45
- package/src/JsonViewerButton.tsx +6 -2
- package/src/ProjectTwoPanelReflectionViewer.stories.tsx +1 -5
- package/src/ReflectionViewer/Declaration.tsx +3 -1
- package/src/ReflectionViewer/NameViewer.tsx +6 -2
- package/src/ReflectionViewer/ReflectionGroupViewer.tsx +6 -2
- package/src/ReflectionViewer/ReflectionViewer.tsx +3 -1
- package/src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx +3 -1
- package/src/SomeReflection.ts +3 -1
- package/src/TreeViewer/Reflection.tsx +3 -1
- package/src/TreeViewer/ReflectionGroup.tsx +7 -1
- package/src/TwoPanelReflectionViewer.tsx +4 -4
- package/xy.config.ts +1 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { Comment } from 'typedoc';
|
|
4
|
+
export interface CommentViewerProps extends FlexBoxProps {
|
|
5
|
+
comment: Comment;
|
|
6
|
+
}
|
|
7
|
+
export declare const CommentViewer: React.FC<CommentViewerProps>;
|
|
8
|
+
//# sourceMappingURL=CommentViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentViewer.d.ts","sourceRoot":"","sources":["../../src/CommentViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAMtD,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ButtonExProps } from '@xylabs/react-button';
|
|
2
|
+
import type { JsonViewerExProps } from '@xyo-network/react-payload-raw-info';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface JsonViewerButtonProps extends ButtonExProps {
|
|
5
|
+
jsonViewProps?: Partial<JsonViewerExProps>;
|
|
6
|
+
src: object;
|
|
7
|
+
}
|
|
8
|
+
export declare const JsonViewerButton: React.FC<JsonViewerButtonProps>;
|
|
9
|
+
//# sourceMappingURL=JsonViewerButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonViewerButton.d.ts","sourceRoot":"","sources":["../../src/JsonViewerButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsB5D,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ProjectReflection } from 'typedoc';
|
|
3
|
+
import type { ContainerReflectionViewerProps } from './ReflectionViewer/index.ts';
|
|
4
|
+
export declare const ProjectTwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>>;
|
|
5
|
+
//# sourceMappingURL=ProjectTwoPanelReflectionViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectTwoPanelReflectionViewer.d.ts","sourceRoot":"","sources":["../../src/ProjectTwoPanelReflectionViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAA;AAIjF,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,CAOvG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReflectionLookup.d.ts","sourceRoot":"","sources":["../../src/ReflectionLookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ContainerReflection } from 'typedoc';
|
|
3
|
+
import type { ReflectionViewerProps } from './ReflectionViewerProps.tsx';
|
|
4
|
+
export interface ContainerReflectionViewerProps<T extends ContainerReflection = ContainerReflection> extends ReflectionViewerProps<T> {
|
|
5
|
+
itemRenderer?: React.FC<ReflectionViewerProps<any>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ContainerReflectionViewer: React.FC<ContainerReflectionViewerProps>;
|
|
8
|
+
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,SAAS,CAAA;AAKnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAExE,MAAM,WAAW,8BAA8B,CAAC,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,CAAE,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IAEnI,YAAY,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAA;CACpD;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA4B9E,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeclarationReflection } from 'typedoc';
|
|
3
|
+
import type { ReflectionViewerProps } from './ReflectionViewerProps.tsx';
|
|
4
|
+
export declare const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>>;
|
|
5
|
+
//# sourceMappingURL=Declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Declaration.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/Declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,qBAAqB,EAAuB,MAAM,SAAS,CAAA;AAGzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAExE,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAgC9F,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DeclarationReflection } from 'typedoc';
|
|
3
|
+
import type { ContainerReflectionViewerProps } from './Container.tsx';
|
|
4
|
+
export interface DeclarationContainerReflectionViewerProps extends ContainerReflectionViewerProps {
|
|
5
|
+
reflection: DeclarationReflection;
|
|
6
|
+
}
|
|
7
|
+
export declare const DeclarationContainerReflectionViewer: React.FC<DeclarationContainerReflectionViewerProps>;
|
|
8
|
+
//# sourceMappingURL=DeclarationContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeclarationContainer.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/DeclarationContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAIrE,MAAM,WAAW,yCAA0C,SAAQ,8BAA8B;IAC/F,UAAU,EAAE,qBAAqB,CAAA;CAClC;AAED,eAAO,MAAM,oCAAoC,EAAE,KAAK,CAAC,EAAE,CAAC,yCAAyC,CAoBpG,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TypographyVariant } from '@mui/material';
|
|
2
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { SomeReflection } from '../SomeReflection.ts';
|
|
5
|
+
import type { ReflectionViewerProps } from './ReflectionViewerProps.tsx';
|
|
6
|
+
export interface NameViewerProps extends FlexBoxProps {
|
|
7
|
+
reflection: SomeReflection;
|
|
8
|
+
reflectionViewer: React.FC<ReflectionViewerProps>;
|
|
9
|
+
variant?: TypographyVariant;
|
|
10
|
+
}
|
|
11
|
+
export declare const NameViewer: React.FC<NameViewerProps>;
|
|
12
|
+
//# sourceMappingURL=NameViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NameViewer.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/NameViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAItD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAGxE,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,UAAU,EAAE,cAAc,CAAA;IAC1B,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;IACjD,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2BhD,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ProjectReflection } from 'typedoc';
|
|
3
|
+
import type { ContainerReflectionViewerProps } from './Container.tsx';
|
|
4
|
+
export declare const ProjectReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>>;
|
|
5
|
+
//# sourceMappingURL=Project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Project.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/Project.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAmB,MAAM,SAAS,CAAA;AAGjE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAIrE,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,CA4B/F,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ContainerReflection, ReflectionGroup } from 'typedoc';
|
|
3
|
+
import type { ReflectionViewerProps } from './ReflectionViewerProps.tsx';
|
|
4
|
+
export interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {
|
|
5
|
+
autoScroll?: boolean;
|
|
6
|
+
group: ReflectionGroup;
|
|
7
|
+
reflection: ContainerReflection;
|
|
8
|
+
renderer?: React.FC<ReflectionViewerProps>;
|
|
9
|
+
}
|
|
10
|
+
export declare const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps>;
|
|
11
|
+
//# sourceMappingURL=ReflectionGroupViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReflectionGroupViewer.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionGroupViewer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,OAAO,KAAK,EACV,mBAAmB,EAAmB,eAAe,EACtD,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EAAc,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAEpF,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB,CAAC,mBAAmB,CAAC;IAC5F,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,eAAe,CAAA;IACtB,UAAU,EAAE,mBAAmB,CAAA;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;CAC3C;AAYD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAgDtE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReflectionViewer.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAc,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAYpF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA4B5D,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TypographyVariant } from '@mui/material';
|
|
2
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import type { ReactElement } from 'react';
|
|
4
|
+
import type { Reflection } from 'typedoc';
|
|
5
|
+
import type { ReflectionLookup } from '../ReflectionLookup.ts';
|
|
6
|
+
export type FlagFilter = 'isPublic' | 'isPrivate' | 'isProtected';
|
|
7
|
+
export interface ReflectionViewerProps<T extends Reflection = Reflection> extends FlexBoxProps {
|
|
8
|
+
hiddenFlags?: FlagFilter[];
|
|
9
|
+
lookup?: ReflectionLookup;
|
|
10
|
+
nameViewer?: ReactElement | null;
|
|
11
|
+
reflection: T;
|
|
12
|
+
sources?: boolean;
|
|
13
|
+
variant?: TypographyVariant;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ReflectionViewerProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReflectionViewerProps.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionViewerProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAA;AAEjE,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,YAAY;IAC5F,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,UAAU,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAChC,UAAU,EAAE,CAAC,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TypographyProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SomeReflection } from '../../SomeReflection.ts';
|
|
4
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
5
|
+
export interface SomeTypeViewerProps extends TypographyProps {
|
|
6
|
+
opacity?: number;
|
|
7
|
+
reflection: SomeReflection;
|
|
8
|
+
reflectionViewer: React.FC<ReflectionViewerProps>;
|
|
9
|
+
}
|
|
10
|
+
export declare const SomeTypeViewer: React.FC<SomeTypeViewerProps>;
|
|
11
|
+
//# sourceMappingURL=SomeTypeViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SomeTypeViewer.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAGzE,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,cAAc,CAAA;IAC1B,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;CAClD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAYxD,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SomeType, Type } from 'typedoc';
|
|
3
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
4
|
+
export type TypeBuilder = (type: SomeType | Type, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder?: TypeBuilder) => ReactNode;
|
|
5
|
+
//# sourceMappingURL=TypeBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/TypeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEzE,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,SAAS,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ArrayType } from 'typedoc';
|
|
2
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
3
|
+
import type { TypeBuilder } from './TypeBuilder.ts';
|
|
4
|
+
export declare const buildArrayString: (typeObj: ArrayType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => string[];
|
|
5
|
+
//# sourceMappingURL=buildArrayString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildArrayString.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/buildArrayString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,gBAAgB,YAAa,SAAS,oBAAoB,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,eAAe,WAAW,aAQ/H,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IntersectionType } from 'typedoc';
|
|
2
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
3
|
+
import type { TypeBuilder } from './TypeBuilder.ts';
|
|
4
|
+
export declare const buildIntersectionString: (typeObj: IntersectionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => string[];
|
|
5
|
+
//# sourceMappingURL=buildIntersectionString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildIntersectionString.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/buildIntersectionString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,uBAAuB,YAAa,gBAAgB,oBAAoB,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,eAAe,WAAW,aAY7I,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReferenceType } from 'typedoc';
|
|
2
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
3
|
+
import type { TypeBuilder } from './TypeBuilder.ts';
|
|
4
|
+
export declare const buildReferenceString: (typeObj: ReferenceType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => string[];
|
|
5
|
+
//# sourceMappingURL=buildReferenceString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildReferenceString.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,oBAAoB,YAAa,aAAa,oBAAoB,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,eAAe,WAAW,aAevI,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReflectionType } from 'typedoc';
|
|
3
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
4
|
+
export declare const buildReflectionString: (typeObj: ReflectionType, reflectionViewer: React.FC<ReflectionViewerProps>) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
5
|
+
//# sourceMappingURL=buildReflectionString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildReflectionString.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/buildReflectionString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEzE,eAAO,MAAM,qBAAqB,YAAa,cAAc,oBAAoB,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,wDAI/G,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildTypeString.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,eAAe,EAAE,WAsC7B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UnionType } from 'typedoc';
|
|
2
|
+
import type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx';
|
|
3
|
+
import type { TypeBuilder } from './TypeBuilder.ts';
|
|
4
|
+
export declare const buildUnionString: (typeObj: UnionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => string[];
|
|
5
|
+
//# sourceMappingURL=buildUnionString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildUnionString.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/buildUnionString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,eAAO,MAAM,gBAAgB,YAAa,SAAS,oBAAoB,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,eAAe,WAAW,aAY/H,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './Container.tsx';
|
|
2
|
+
export * from './Declaration.tsx';
|
|
3
|
+
export * from './DeclarationContainer.tsx';
|
|
4
|
+
export * from './Project.tsx';
|
|
5
|
+
export * from './ReflectionGroupViewer.tsx';
|
|
6
|
+
export * from './ReflectionViewer.tsx';
|
|
7
|
+
export * from './ReflectionViewerProps.tsx';
|
|
8
|
+
export * from './SomeTypeViewer/index.ts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA;AAC7B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ParameterReflection, Reflection, SomeType } from 'typedoc';
|
|
2
|
+
export type WithSomeType<T> = T & {
|
|
3
|
+
type?: SomeType;
|
|
4
|
+
};
|
|
5
|
+
export type WithSomeParameters<T> = T & {
|
|
6
|
+
parameters?: ParameterReflection[];
|
|
7
|
+
};
|
|
8
|
+
export type SomeReflection = WithSomeParameters<WithSomeType<Reflection>>;
|
|
9
|
+
//# sourceMappingURL=SomeReflection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SomeReflection.d.ts","sourceRoot":"","sources":["../../src/SomeReflection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAC1C,MAAM,SAAS,CAAA;AAEhB,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAA;AAErD,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAAA;AAE9E,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SourceReference } from 'typedoc';
|
|
4
|
+
export interface SourceViewerProps extends FlexBoxProps {
|
|
5
|
+
source: SourceReference;
|
|
6
|
+
}
|
|
7
|
+
export declare const SourceViewer: React.FC<SourceViewerProps>;
|
|
8
|
+
//# sourceMappingURL=SourceViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceViewer.d.ts","sourceRoot":"","sources":["../../src/SourceViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAQpD,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ContainerReflection, Reflection } from 'typedoc';
|
|
4
|
+
import type { ReflectionLookup } from '../ReflectionLookup.ts';
|
|
5
|
+
import type { FlagFilter } from '../ReflectionViewer/index.ts';
|
|
6
|
+
export interface ReflectionTreeViewerProps<T extends Reflection = ContainerReflection> extends FlexBoxProps {
|
|
7
|
+
hiddenFlags?: FlagFilter[];
|
|
8
|
+
lookup?: ReflectionLookup;
|
|
9
|
+
reflection: T;
|
|
10
|
+
searchTerm?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps>;
|
|
13
|
+
//# sourceMappingURL=Reflection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reflection.d.ts","sourceRoot":"","sources":["../../../src/TreeViewer/Reflection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU,GAAG,mBAAmB,CAAE,SAAQ,YAAY;IACzG,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,UAAU,EAAE,CAAC,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAgDpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReflectionGroup.d.ts","sourceRoot":"","sources":["../../../src/TreeViewer/ReflectionGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAI9E,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6B1E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TwoPanelReflectionViewer.d.ts","sourceRoot":"","sources":["../../src/TwoPanelReflectionViewer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAA;AAIjF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA6F7E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createLookup.d.ts","sourceRoot":"","sources":["../../src/createLookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEzE,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,qBAAqB,cAAc,mBAAmB,sBAI5F,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,89 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare const CommentViewer: React.FC<CommentViewerProps>;
|
|
12
|
-
|
|
13
|
-
interface JsonViewerButtonProps extends ButtonExProps {
|
|
14
|
-
jsonViewProps?: Partial<JsonViewerExProps>;
|
|
15
|
-
src: object;
|
|
16
|
-
}
|
|
17
|
-
declare const JsonViewerButton: React.FC<JsonViewerButtonProps>;
|
|
18
|
-
|
|
19
|
-
type ReflectionLookup<T extends DeclarationReflection = DeclarationReflection> = Record<string, T>;
|
|
20
|
-
|
|
21
|
-
type FlagFilter = 'isPublic' | 'isPrivate' | 'isProtected';
|
|
22
|
-
interface ReflectionViewerProps<T extends Reflection = Reflection> extends FlexBoxProps {
|
|
23
|
-
hiddenFlags?: FlagFilter[];
|
|
24
|
-
lookup?: ReflectionLookup;
|
|
25
|
-
nameViewer?: ReactElement | null;
|
|
26
|
-
reflection: T;
|
|
27
|
-
sources?: boolean;
|
|
28
|
-
variant?: TypographyVariant;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface ContainerReflectionViewerProps<T extends ContainerReflection = ContainerReflection> extends ReflectionViewerProps<T> {
|
|
32
|
-
itemRenderer?: React.FC<ReflectionViewerProps<any>>;
|
|
33
|
-
}
|
|
34
|
-
declare const ContainerReflectionViewer: React.FC<ContainerReflectionViewerProps>;
|
|
35
|
-
|
|
36
|
-
declare const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>>;
|
|
37
|
-
|
|
38
|
-
interface DeclarationContainerReflectionViewerProps extends ContainerReflectionViewerProps {
|
|
39
|
-
reflection: DeclarationReflection;
|
|
40
|
-
}
|
|
41
|
-
declare const DeclarationContainerReflectionViewer: React.FC<DeclarationContainerReflectionViewerProps>;
|
|
42
|
-
|
|
43
|
-
declare const ProjectReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>>;
|
|
44
|
-
|
|
45
|
-
interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {
|
|
46
|
-
autoScroll?: boolean;
|
|
47
|
-
group: ReflectionGroup;
|
|
48
|
-
reflection: ContainerReflection;
|
|
49
|
-
renderer?: React.FC<ReflectionViewerProps>;
|
|
50
|
-
}
|
|
51
|
-
declare const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps>;
|
|
52
|
-
|
|
53
|
-
declare const ReflectionViewer: React.FC<ReflectionViewerProps>;
|
|
54
|
-
|
|
55
|
-
type WithSomeType<T> = T & {
|
|
56
|
-
type?: SomeType;
|
|
57
|
-
};
|
|
58
|
-
type WithSomeParameters<T> = T & {
|
|
59
|
-
parameters?: ParameterReflection[];
|
|
60
|
-
};
|
|
61
|
-
type SomeReflection = WithSomeParameters<WithSomeType<Reflection>>;
|
|
62
|
-
|
|
63
|
-
interface SomeTypeViewerProps extends TypographyProps {
|
|
64
|
-
opacity?: number;
|
|
65
|
-
reflection: SomeReflection;
|
|
66
|
-
reflectionViewer: React.FC<ReflectionViewerProps>;
|
|
67
|
-
}
|
|
68
|
-
declare const SomeTypeViewer: React.FC<SomeTypeViewerProps>;
|
|
69
|
-
|
|
70
|
-
declare const ProjectTwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps<ProjectReflection>>;
|
|
71
|
-
|
|
72
|
-
interface SourceViewerProps extends FlexBoxProps {
|
|
73
|
-
source: SourceReference;
|
|
74
|
-
}
|
|
75
|
-
declare const SourceViewer: React.FC<SourceViewerProps>;
|
|
76
|
-
|
|
77
|
-
interface ReflectionTreeViewerProps<T extends Reflection = ContainerReflection> extends FlexBoxProps {
|
|
78
|
-
hiddenFlags?: FlagFilter[];
|
|
79
|
-
lookup?: ReflectionLookup;
|
|
80
|
-
reflection: T;
|
|
81
|
-
searchTerm?: string;
|
|
82
|
-
}
|
|
83
|
-
declare const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps>;
|
|
84
|
-
|
|
85
|
-
declare const ReflectionGroupTreeViewer: React.FC<ReflectionGroupViewerProps>;
|
|
86
|
-
|
|
87
|
-
declare const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps>;
|
|
88
|
-
|
|
89
|
-
export { CommentViewer, type CommentViewerProps, ContainerReflectionViewer, type ContainerReflectionViewerProps, DeclarationContainerReflectionViewer, type DeclarationContainerReflectionViewerProps, DeclarationReflectionViewer, type FlagFilter, JsonViewerButton, type JsonViewerButtonProps, ProjectReflectionViewer, ProjectTwoPanelReflectionViewer, ReflectionGroupTreeViewer, ReflectionGroupViewer, type ReflectionGroupViewerProps, type ReflectionLookup, ReflectionTreeViewer, type ReflectionTreeViewerProps, ReflectionViewer, type ReflectionViewerProps, type SomeReflection, SomeTypeViewer, type SomeTypeViewerProps, SourceViewer, type SourceViewerProps, TwoPanelReflectionViewer, type WithSomeParameters, type WithSomeType };
|
|
1
|
+
export * from './CommentViewer.tsx';
|
|
2
|
+
export * from './JsonViewerButton.tsx';
|
|
3
|
+
export * from './ProjectTwoPanelReflectionViewer.tsx';
|
|
4
|
+
export * from './ReflectionLookup.ts';
|
|
5
|
+
export * from './ReflectionViewer/index.ts';
|
|
6
|
+
export * from './SomeReflection.ts';
|
|
7
|
+
export * from './SourceViewer.tsx';
|
|
8
|
+
export * from './TreeViewer/index.ts';
|
|
9
|
+
export * from './TwoPanelReflectionViewer.tsx';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uCAAuC,CAAA;AACrD,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gCAAgC,CAAA"}
|
|
@@ -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 { Dialog, DialogActions, DialogContent, DialogTitle } 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 interface JsonViewerButtonProps extends ButtonExProps {\n jsonViewProps?: Partial<JsonViewerExProps>\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\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 { ContainerReflection, ReflectionFlags, ReflectionGroup } 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 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({ hiddenFlags, lookup, margin: 1, padding: 1, reflection })}\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> = ({ variant, nameViewer, children, reflection, hiddenFlags, ...props }) => {\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 { Chip, Stack, Typography } 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> = ({ 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\n ? <>: </>\n : null}\n </Typography>\n <SomeTypeViewer reflection={reflection} reflectionViewer={reflectionViewer} />\n </FlexRow>\n <Stack direction=\"row\" spacing={1}>\n <Chip size=\"small\" label={reflection.kind} />\n {reflection.flags\n ? Object.entries(reflection.flags).map(([flag, value]) => {\n return value ? <Chip size=\"small\" key={flag} label={trimFlagLabel(flag)} variant=\"outlined\" /> : null\n })\n : null}\n </Stack>\n {document && document?.location.hostname === 'localhost' && (\n <JsonViewerButton size=\"small\" variant=\"contained\" padding={0} marginX={1} src={reflection} />\n )}\n </FlexRow>\n )\n}\n","export const trimFlagLabel = (label: string) => {\n if (label.startsWith('is')) {\n return label.slice(2)\n }\n return label\n}\n","import type { TypographyProps } from '@mui/material'\nimport { Typography } from '@mui/material'\nimport React from 'react'\n\nimport type { SomeReflection } from '../../SomeReflection.ts'\nimport type { ReflectionViewerProps } from '../ReflectionViewerProps.tsx'\nimport { buildTypeString } from './buildTypeString.tsx'\n\nexport interface SomeTypeViewerProps extends TypographyProps {\n opacity?: number\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n}\n\nexport const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({ 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 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>> = ({ reflection, hiddenFlags, ...props }) => {\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 { FlexCol, FlexGrowCol, FlexRow } 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 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 // 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 { TreeItem, TreeView } 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> = ({ 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 ? (\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 )\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'\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 ? <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 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,SAASC,QAAQC,eAAeC,eAAeC,mBAAmB;AAElE,SAASC,gBAAgB;AAEzB,SAASC,oBAAoB;AAC7B,OAAOC,UAASC,gBAAgB;AAOzB,IAAMC,mBAAoD,wBAAC,EAAEC,eAAeC,KAAKC,OAAO,GAAGC,MAAAA,MAAO;AACvG,QAAM,CAACC,MAAMC,OAAAA,IAAWC,SAAS,KAAA;AACjC,SACE,gBAAAC,OAAA,cAAAA,OAAA,UAAA,MACE,gBAAAA,OAAA,cAACC,UAAAA;IAASC,SAAS,6BAAMJ,QAAQ,CAACD,IAAAA,GAAf;IAAuB,GAAGD;KAAO,MAAA,GAGpD,gBAAAI,OAAA,cAACG,QAAAA;IAAON;IAAYO,SAAS,6BAAMN,QAAQ,KAAA,GAAd;KAC1BH,QACG,gBAAAK,OAAA,cAACK,aAAAA,MAAaV,KAAAA,IACd,MACJ,gBAAAK,OAAA,cAACM,eAAAA,MACC,gBAAAN,OAAA,cAACO,cAAAA;IAAaC,OAAOd;IAAM,GAAGD;OAEhC,gBAAAO,OAAA,cAACS,eAAAA,MACC,gBAAAT,OAAA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AAe;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","TreeItem","TreeView","FlexCol","React","useNavigate","ReflectionTreeViewer","lookup","reflection","searchTerm","props","navigate","useNavigate","React","FlexCol","alignItems","TreeView","aria-label","defaultExpandIcon","Add","defaultCollapseIcon","Remove","defaultExpanded","groups","title","map","group","index","TreeItem","key","nodeId","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","InputProps","startAdornment","Search","onChange","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 interface JsonViewerButtonProps extends 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 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 })}\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 ? <>: </>\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 InputProps={{ startAdornment: <Search /> }}\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 // 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 { TreeItem, TreeView } 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 <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 ? (\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 )\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'\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 })}\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,OAAA,cAACC,UAAAA;IAASC,SAAS,6BAAMJ,QAAQ,CAACD,IAAAA,GAAf;IAAuB,GAAGD;KAAO,MAAA,GAGpD,gBAAAI,OAAA,cAACG,QAAAA;IAAON;IAAYO,SAAS,6BAAMN,QAAQ,KAAA,GAAd;KAC1BH,QACG,gBAAAK,OAAA,cAACK,aAAAA,MAAaV,KAAAA,IACd,MACJ,gBAAAK,OAAA,cAACM,eAAAA,MACC,gBAAAN,OAAA,cAACO,c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BD;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","TreeItem","TreeView","FlexCol","React","useNavigate","ReflectionTreeViewer","lookup","reflection","searchTerm","props","navigate","useNavigate","React","FlexCol","alignItems","TreeView","aria-label","defaultExpandIcon","Add","defaultCollapseIcon","Remove","defaultExpanded","groups","title","map","group","index","TreeItem","key","nodeId","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","InputProps","startAdornment","Search","onChange","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"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Reflection } from 'typedoc';
|
|
2
|
+
import type { ReflectionLookup } from './ReflectionLookup.ts';
|
|
3
|
+
import type { SomeReflection } from './SomeReflection.ts';
|
|
4
|
+
type ReflectionWithChildren = {
|
|
5
|
+
children: Reflection[];
|
|
6
|
+
};
|
|
7
|
+
export declare const resolveChildren: <T extends SomeReflection>(reflection: ReflectionWithChildren, lookup?: ReflectionLookup) => T[];
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=resolveChildren.d.ts.map
|
|
@@ -0,0 +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,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,KAAK,sBAAsB,GAAG;IAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,cAAc,cAAc,sBAAsB,WAAU,gBAAgB,KAAQ,CAAC,EAkB9H,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trimFlagLabel.d.ts","sourceRoot":"","sources":["../../src/trimFlagLabel.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,UAAW,MAAM,WAK1C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,75 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-typedoc",
|
|
3
|
+
"version": "3.0.3",
|
|
4
|
+
"description": "Common React library for all XYO projects that use React",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"xyo",
|
|
7
|
+
"utility",
|
|
8
|
+
"typescript",
|
|
9
|
+
"react"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://xyo.network",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues",
|
|
14
|
+
"email": "support@xyo.network"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "LGPL-3.0-only",
|
|
3
21
|
"author": {
|
|
4
|
-
"email": "support@xyo.network",
|
|
5
22
|
"name": "XYO Development Team",
|
|
23
|
+
"email": "support@xyo.network",
|
|
6
24
|
"url": "https://xyo.network"
|
|
7
25
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/browser/index.d.ts",
|
|
32
|
+
"default": "./dist/browser/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"types": "./dist/browser/index.d.ts",
|
|
35
|
+
"default": "./dist/browser/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"module": "dist/browser/index.mjs",
|
|
40
|
+
"types": "dist/browser/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 ."
|
|
11
44
|
},
|
|
12
45
|
"dependencies": {
|
|
13
|
-
"@emotion/react": "^11.13.
|
|
46
|
+
"@emotion/react": "^11.13.3",
|
|
14
47
|
"@emotion/styled": "^11.13.0",
|
|
15
48
|
"@mui/icons-material": "^5.16.7",
|
|
16
49
|
"@mui/material": "^5.16.7",
|
|
17
50
|
"@mui/styles": "^5.16.7",
|
|
18
51
|
"@mui/system": "^5.16.7",
|
|
19
|
-
"@mui/x-tree-view": "^7.
|
|
20
|
-
"@xylabs/assert": "^4.0.
|
|
52
|
+
"@mui/x-tree-view": "^7.14.0",
|
|
53
|
+
"@xylabs/assert": "^4.0.5",
|
|
21
54
|
"@xylabs/react-button": "^4.0.3",
|
|
22
55
|
"@xylabs/react-flexbox": "^4.0.3",
|
|
23
|
-
"@xyo-network/react-payload-raw-info": "^3.0.
|
|
56
|
+
"@xyo-network/react-payload-raw-info": "^3.0.3",
|
|
24
57
|
"react-router-dom": "^6.26.1",
|
|
25
|
-
"typedoc": "^0.26.
|
|
58
|
+
"typedoc": "^0.26.6",
|
|
26
59
|
"typescript": "^5.5.4"
|
|
27
60
|
},
|
|
28
61
|
"devDependencies": {
|
|
29
62
|
"@storybook/react": "^8.2.9",
|
|
30
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.
|
|
31
|
-
"@xylabs/tsconfig-react": "^4.0.
|
|
63
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
64
|
+
"@xylabs/tsconfig-react": "^4.0.7",
|
|
65
|
+
"react": "^18.3.1",
|
|
66
|
+
"react-dom": "^18.3.1",
|
|
67
|
+
"storybook": "^8.2.9",
|
|
32
68
|
"typescript": "^5.5.4"
|
|
33
69
|
},
|
|
34
70
|
"peerDependencies": {
|
|
35
71
|
"react": "^18.2.0",
|
|
36
72
|
"react-dom": "^18.2.0"
|
|
37
73
|
},
|
|
38
|
-
"description": "Common React library for all XYO projects that use React",
|
|
39
|
-
"docs": "dist/docs.json",
|
|
40
|
-
"exports": {
|
|
41
|
-
".": {
|
|
42
|
-
"import": {
|
|
43
|
-
"types": "./dist/browser/index.d.ts",
|
|
44
|
-
"default": "./dist/browser/index.mjs"
|
|
45
|
-
},
|
|
46
|
-
"types": "./dist/browser/index.d.ts",
|
|
47
|
-
"default": "./dist/browser/index.mjs"
|
|
48
|
-
},
|
|
49
|
-
"./package.json": "./package.json"
|
|
50
|
-
},
|
|
51
|
-
"module": "dist/browser/index.mjs",
|
|
52
|
-
"homepage": "https://xyo.network",
|
|
53
|
-
"keywords": [
|
|
54
|
-
"xyo",
|
|
55
|
-
"utility",
|
|
56
|
-
"typescript",
|
|
57
|
-
"react"
|
|
58
|
-
],
|
|
59
|
-
"license": "LGPL-3.0-only",
|
|
60
74
|
"publishConfig": {
|
|
61
75
|
"access": "public"
|
|
62
76
|
},
|
|
63
|
-
"
|
|
64
|
-
"type": "git",
|
|
65
|
-
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
|
|
66
|
-
},
|
|
67
|
-
"scripts": {
|
|
68
|
-
"lint-pkg": "npmPkgJsonLint .",
|
|
69
|
-
"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\""
|
|
70
|
-
},
|
|
71
|
-
"sideEffects": false,
|
|
72
|
-
"types": "dist/browser/index.d.ts",
|
|
73
|
-
"version": "3.0.2",
|
|
74
|
-
"type": "module"
|
|
77
|
+
"docs": "dist/docs.json"
|
|
75
78
|
}
|
package/src/JsonViewerButton.tsx
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Dialog, DialogActions, DialogContent, DialogTitle,
|
|
3
|
+
} from '@mui/material'
|
|
2
4
|
import type { ButtonExProps } from '@xylabs/react-button'
|
|
3
5
|
import { ButtonEx } from '@xylabs/react-button'
|
|
4
6
|
import type { JsonViewerExProps } from '@xyo-network/react-payload-raw-info'
|
|
@@ -10,7 +12,9 @@ export interface JsonViewerButtonProps extends ButtonExProps {
|
|
|
10
12
|
src: object
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
export const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({
|
|
15
|
+
export const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({
|
|
16
|
+
jsonViewProps, src, title, ...props
|
|
17
|
+
}) => {
|
|
14
18
|
const [open, setOpen] = useState(false)
|
|
15
19
|
return (
|
|
16
20
|
<>
|
|
@@ -9,11 +9,7 @@ import { ProjectTwoPanelReflectionViewer } from './ProjectTwoPanelReflectionView
|
|
|
9
9
|
const StorybookEntry = {
|
|
10
10
|
argTypes: {},
|
|
11
11
|
component: ProjectTwoPanelReflectionViewer,
|
|
12
|
-
parameters: {
|
|
13
|
-
docs: {
|
|
14
|
-
page: null,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
12
|
+
parameters: { docs: { page: null } },
|
|
17
13
|
title: 'typedoc/TypeDocViewer/ProjectTwoPanelReflectionViewer',
|
|
18
14
|
} as Meta<typeof ProjectTwoPanelReflectionViewer>
|
|
19
15
|
|
|
@@ -4,7 +4,9 @@ import type { DeclarationReflection, SignatureReflection } from 'typedoc'
|
|
|
4
4
|
import { ReflectionViewer } from './ReflectionViewer.tsx'
|
|
5
5
|
import type { ReflectionViewerProps } from './ReflectionViewerProps.tsx'
|
|
6
6
|
|
|
7
|
-
export const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>> = ({
|
|
7
|
+
export const DeclarationReflectionViewer: React.FC<ReflectionViewerProps<DeclarationReflection>> = ({
|
|
8
|
+
reflection, hiddenFlags, ...props
|
|
9
|
+
}) => {
|
|
8
10
|
const safeSignatures = (signatures?: SignatureReflection[] | SignatureReflection) => {
|
|
9
11
|
return (
|
|
10
12
|
Array.isArray(signatures)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { TypographyVariant } from '@mui/material'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Chip, Stack, Typography,
|
|
4
|
+
} from '@mui/material'
|
|
3
5
|
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
4
6
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
5
7
|
import React from 'react'
|
|
@@ -16,7 +18,9 @@ export interface NameViewerProps extends FlexBoxProps {
|
|
|
16
18
|
variant?: TypographyVariant
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
export const NameViewer: React.FC<NameViewerProps> = ({
|
|
21
|
+
export const NameViewer: React.FC<NameViewerProps> = ({
|
|
22
|
+
reflectionViewer, variant, reflection, ...props
|
|
23
|
+
}) => {
|
|
20
24
|
return (
|
|
21
25
|
<FlexRow justifyContent="flex-start" {...props}>
|
|
22
26
|
<FlexRow marginRight={1}>
|
|
@@ -2,7 +2,9 @@ import { Typography } from '@mui/material'
|
|
|
2
2
|
import { FlexCol, FlexRow } from '@xylabs/react-flexbox'
|
|
3
3
|
import React, { useEffect } from 'react'
|
|
4
4
|
import { useLocation } from 'react-router-dom'
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
ContainerReflection, ReflectionFlags, ReflectionGroup,
|
|
7
|
+
} from 'typedoc'
|
|
6
8
|
|
|
7
9
|
import { JsonViewerButton } from '../JsonViewerButton.tsx'
|
|
8
10
|
import { resolveChildren } from '../resolveChildren.ts'
|
|
@@ -63,7 +65,9 @@ export const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps> = ({
|
|
|
63
65
|
// I wrap this in a div since React does not understand that they have keys using the Renderer
|
|
64
66
|
? (
|
|
65
67
|
<div id={reflection.name} key={reflection.id}>
|
|
66
|
-
{renderer({
|
|
68
|
+
{renderer({
|
|
69
|
+
hiddenFlags, lookup, margin: 1, padding: 1, reflection,
|
|
70
|
+
})}
|
|
67
71
|
</div>
|
|
68
72
|
)
|
|
69
73
|
: null
|
|
@@ -17,7 +17,9 @@ const hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {
|
|
|
17
17
|
return hide
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const ReflectionViewer: React.FC<ReflectionViewerProps> = ({
|
|
20
|
+
export const ReflectionViewer: React.FC<ReflectionViewerProps> = ({
|
|
21
|
+
variant, nameViewer, children, reflection, hiddenFlags, ...props
|
|
22
|
+
}) => {
|
|
21
23
|
const someReflection = reflection as SomeReflection
|
|
22
24
|
|
|
23
25
|
return hide(reflection?.flags, hiddenFlags)
|
|
@@ -12,7 +12,9 @@ export interface SomeTypeViewerProps extends TypographyProps {
|
|
|
12
12
|
reflectionViewer: React.FC<ReflectionViewerProps>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({
|
|
15
|
+
export const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({
|
|
16
|
+
opacity = 0.5, reflection, reflectionViewer, ...props
|
|
17
|
+
}) => {
|
|
16
18
|
const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : ''
|
|
17
19
|
if (typeof typeReactNode === 'string') {
|
|
18
20
|
return (
|
package/src/SomeReflection.ts
CHANGED
|
@@ -17,7 +17,9 @@ export interface ReflectionTreeViewerProps<T extends Reflection = ContainerRefle
|
|
|
17
17
|
searchTerm?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps> = ({
|
|
20
|
+
export const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps> = ({
|
|
21
|
+
lookup, reflection, searchTerm, ...props
|
|
22
|
+
}) => {
|
|
21
23
|
const navigate = useNavigate()
|
|
22
24
|
return (
|
|
23
25
|
<FlexCol alignItems="stretch" {...props}>
|
|
@@ -24,7 +24,13 @@ export const ReflectionGroupTreeViewer: React.FC<ReflectionGroupViewerProps> = (
|
|
|
24
24
|
{resolveChildren(group, lookup).map((reflection) => {
|
|
25
25
|
return reflection
|
|
26
26
|
// I wrap this in a div since React does not understand that they have keys using the Renderer
|
|
27
|
-
?
|
|
27
|
+
? (
|
|
28
|
+
<div key={reflection.id}>
|
|
29
|
+
{renderer({
|
|
30
|
+
lookup, margin: 1, reflection,
|
|
31
|
+
})}
|
|
32
|
+
</div>
|
|
33
|
+
)
|
|
28
34
|
: null
|
|
29
35
|
})}
|
|
30
36
|
{children}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Search } from '@mui/icons-material'
|
|
2
2
|
import { TextField, useTheme } from '@mui/material'
|
|
3
3
|
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
FlexCol, FlexGrowCol, FlexRow,
|
|
6
|
+
} from '@xylabs/react-flexbox'
|
|
5
7
|
import React, { useMemo, useState } from 'react'
|
|
6
8
|
import type { ReflectionGroup } from 'typedoc'
|
|
7
9
|
|
|
@@ -47,9 +49,7 @@ export const TwoPanelReflectionViewer: React.FC<ContainerReflectionViewerProps>
|
|
|
47
49
|
<FlexCol {...props}>
|
|
48
50
|
<TextField
|
|
49
51
|
fullWidth
|
|
50
|
-
InputProps={{
|
|
51
|
-
startAdornment: <Search />,
|
|
52
|
-
}}
|
|
52
|
+
InputProps={{ startAdornment: <Search /> }}
|
|
53
53
|
onChange={onSearchTermChange}
|
|
54
54
|
/>
|
|
55
55
|
<FlexGrowCol marginTop={1} alignItems="stretch">
|