@xyo-network/react-typedoc 2.64.0-rc.7 → 2.64.0
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.cjs +32 -0
- package/dist/{node/CommentViewer.mjs.map → browser/CommentViewer.cjs.map} +1 -1
- package/dist/browser/CommentViewer.d.cts +8 -0
- package/dist/browser/CommentViewer.d.cts.map +1 -0
- package/dist/browser/JsonViewerButton.cjs +55 -0
- package/dist/{node/JsonViewerButton.mjs.map → browser/JsonViewerButton.cjs.map} +1 -1
- package/dist/browser/JsonViewerButton.d.cts +9 -0
- package/dist/browser/JsonViewerButton.d.cts.map +1 -0
- package/dist/browser/ProjectTwoPanelReflectionViewer.cjs +555 -0
- package/dist/browser/ProjectTwoPanelReflectionViewer.cjs.map +1 -0
- package/dist/browser/ProjectTwoPanelReflectionViewer.d.cts +5 -0
- package/dist/browser/ProjectTwoPanelReflectionViewer.d.cts.map +1 -0
- package/dist/browser/ReflectionLookup.cjs +19 -0
- package/dist/browser/ReflectionLookup.cjs.map +1 -0
- package/dist/browser/ReflectionLookup.d.cts +3 -0
- package/dist/browser/ReflectionLookup.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/Container.cjs +355 -0
- package/dist/browser/ReflectionViewer/Container.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/Container.d.cts +8 -0
- package/dist/browser/ReflectionViewer/Container.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/Declaration.cjs +266 -0
- package/dist/browser/ReflectionViewer/Declaration.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/Declaration.d.cts +5 -0
- package/dist/browser/ReflectionViewer/Declaration.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/DeclarationContainer.cjs +410 -0
- package/dist/browser/ReflectionViewer/DeclarationContainer.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/DeclarationContainer.d.cts +8 -0
- package/dist/browser/ReflectionViewer/DeclarationContainer.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/NameViewer.cjs +201 -0
- package/dist/browser/ReflectionViewer/NameViewer.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/NameViewer.d.cts +12 -0
- package/dist/browser/ReflectionViewer/NameViewer.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/Project.cjs +355 -0
- package/dist/browser/ReflectionViewer/Project.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/Project.d.cts +5 -0
- package/dist/browser/ReflectionViewer/Project.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionGroupViewer.cjs +316 -0
- package/dist/browser/ReflectionViewer/ReflectionGroupViewer.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionGroupViewer.d.cts +11 -0
- package/dist/browser/ReflectionViewer/ReflectionGroupViewer.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionViewer.cjs +235 -0
- package/dist/browser/ReflectionViewer/ReflectionViewer.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionViewer.d.cts +4 -0
- package/dist/browser/ReflectionViewer/ReflectionViewer.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionViewerProps.cjs +19 -0
- package/dist/browser/ReflectionViewer/ReflectionViewerProps.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/ReflectionViewerProps.d.cts +15 -0
- package/dist/browser/ReflectionViewer/ReflectionViewerProps.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.cjs +137 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.cts +11 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/TypeBuilder.cjs +19 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/TypeBuilder.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/TypeBuilder.d.cts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/TypeBuilder.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildArrayString.cjs +35 -0
- package/dist/{node/ReflectionViewer/SomeTypeViewer/buildArrayString.mjs.map → browser/ReflectionViewer/SomeTypeViewer/buildArrayString.cjs.map} +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildArrayString.d.cts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildArrayString.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildIntersectionString.cjs +37 -0
- package/dist/{node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.mjs.map → browser/ReflectionViewer/SomeTypeViewer/buildIntersectionString.cjs.map} +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildIntersectionString.d.cts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildIntersectionString.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReferenceString.cjs +40 -0
- package/dist/{node/ReflectionViewer/SomeTypeViewer/buildReferenceString.mjs.map → browser/ReflectionViewer/SomeTypeViewer/buildReferenceString.cjs.map} +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReferenceString.d.cts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReferenceString.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReflectionString.cjs +32 -0
- package/dist/{node/ReflectionViewer/SomeTypeViewer/buildReflectionString.mjs.map → browser/ReflectionViewer/SomeTypeViewer/buildReflectionString.cjs.map} +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReflectionString.d.cts +4 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildReflectionString.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.cjs +126 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.d.cts +3 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildTypeString.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildUnionString.cjs +37 -0
- package/dist/{node/ReflectionViewer/SomeTypeViewer/buildUnionString.mjs.map → browser/ReflectionViewer/SomeTypeViewer/buildUnionString.cjs.map} +1 -1
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildUnionString.d.cts +5 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/buildUnionString.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/index.cjs +139 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/index.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/index.d.cts +2 -0
- package/dist/browser/ReflectionViewer/SomeTypeViewer/index.d.cts.map +1 -0
- package/dist/browser/ReflectionViewer/index.cjs +446 -0
- package/dist/browser/ReflectionViewer/index.cjs.map +1 -0
- package/dist/browser/ReflectionViewer/index.d.cts +9 -0
- package/dist/browser/ReflectionViewer/index.d.cts.map +1 -0
- package/dist/browser/SomeReflection.cjs +19 -0
- package/dist/browser/SomeReflection.cjs.map +1 -0
- package/dist/browser/SomeReflection.d.cts +9 -0
- package/dist/browser/SomeReflection.d.cts.map +1 -0
- package/dist/browser/SourceViewer.cjs +32 -0
- package/dist/{node/SourceViewer.mjs.map → browser/SourceViewer.cjs.map} +1 -1
- package/dist/browser/SourceViewer.d.cts +8 -0
- package/dist/browser/SourceViewer.d.cts.map +1 -0
- package/dist/browser/TreeViewer/Reflection.cjs +61 -0
- package/dist/{node/TreeViewer/Reflection.mjs.map → browser/TreeViewer/Reflection.cjs.map} +1 -1
- package/dist/browser/TreeViewer/Reflection.d.cts +13 -0
- package/dist/browser/TreeViewer/Reflection.d.cts.map +1 -0
- package/dist/browser/TreeViewer/ReflectionGroup.cjs +293 -0
- package/dist/browser/TreeViewer/ReflectionGroup.cjs.map +1 -0
- package/dist/browser/TreeViewer/ReflectionGroup.d.cts +4 -0
- package/dist/browser/TreeViewer/ReflectionGroup.d.cts.map +1 -0
- package/dist/browser/TreeViewer/index.cjs +333 -0
- package/dist/browser/TreeViewer/index.cjs.map +1 -0
- package/dist/browser/TreeViewer/index.d.cts +3 -0
- package/dist/browser/TreeViewer/index.d.cts.map +1 -0
- package/dist/browser/TwoPanelReflectionViewer.cjs +456 -0
- package/dist/browser/TwoPanelReflectionViewer.cjs.map +1 -0
- package/dist/browser/TwoPanelReflectionViewer.d.cts +4 -0
- package/dist/browser/TwoPanelReflectionViewer.d.cts.map +1 -0
- package/dist/browser/createLookup.cjs +31 -0
- package/dist/{node/createLookup.mjs.map → browser/createLookup.cjs.map} +1 -1
- package/dist/browser/createLookup.d.cts +3 -0
- package/dist/browser/createLookup.d.cts.map +1 -0
- package/dist/browser/index.cjs +645 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +10 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/resolveChildren.cjs +43 -0
- package/dist/{node/resolveChildren.mjs.map → browser/resolveChildren.cjs.map} +1 -1
- package/dist/browser/resolveChildren.d.cts +9 -0
- package/dist/browser/resolveChildren.d.cts.map +1 -0
- package/dist/browser/trimFlagLabel.cjs +32 -0
- package/dist/browser/trimFlagLabel.cjs.map +1 -0
- package/dist/browser/trimFlagLabel.d.cts +2 -0
- package/dist/browser/trimFlagLabel.d.cts.map +1 -0
- package/dist/docs.json +188407 -0
- package/dist/node/CommentViewer.cjs +37 -0
- package/dist/node/CommentViewer.cjs.map +1 -0
- package/dist/node/CommentViewer.d.cts +8 -0
- package/dist/node/CommentViewer.d.cts.map +1 -0
- package/dist/node/CommentViewer.js +9 -31
- package/dist/node/CommentViewer.js.map +1 -1
- package/dist/node/JsonViewerButton.cjs +59 -0
- package/dist/node/JsonViewerButton.cjs.map +1 -0
- package/dist/node/JsonViewerButton.d.cts +9 -0
- package/dist/node/JsonViewerButton.d.cts.map +1 -0
- package/dist/node/JsonViewerButton.js +16 -49
- package/dist/node/JsonViewerButton.js.map +1 -1
- package/dist/node/ProjectTwoPanelReflectionViewer.cjs +569 -0
- package/dist/node/ProjectTwoPanelReflectionViewer.cjs.map +1 -0
- package/dist/node/ProjectTwoPanelReflectionViewer.d.cts +5 -0
- package/dist/node/ProjectTwoPanelReflectionViewer.d.cts.map +1 -0
- package/dist/node/ProjectTwoPanelReflectionViewer.js +528 -34
- package/dist/node/ProjectTwoPanelReflectionViewer.js.map +1 -1
- package/dist/node/ReflectionLookup.cjs +19 -0
- package/dist/node/ReflectionLookup.cjs.map +1 -0
- package/dist/node/ReflectionLookup.d.cts +3 -0
- package/dist/node/ReflectionLookup.d.cts.map +1 -0
- package/dist/node/ReflectionLookup.js +0 -16
- package/dist/node/ReflectionLookup.js.map +1 -1
- package/dist/node/ReflectionViewer/Container.cjs +365 -0
- package/dist/node/ReflectionViewer/Container.cjs.map +1 -0
- package/dist/node/ReflectionViewer/Container.d.cts +8 -0
- package/dist/node/ReflectionViewer/Container.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/Container.js +306 -37
- package/dist/node/ReflectionViewer/Container.js.map +1 -1
- package/dist/node/ReflectionViewer/Declaration.cjs +273 -0
- package/dist/node/ReflectionViewer/Declaration.cjs.map +1 -0
- package/dist/node/ReflectionViewer/Declaration.d.cts +5 -0
- package/dist/node/ReflectionViewer/Declaration.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/Declaration.js +217 -37
- package/dist/node/ReflectionViewer/Declaration.js.map +1 -1
- package/dist/node/ReflectionViewer/DeclarationContainer.cjs +421 -0
- package/dist/node/ReflectionViewer/DeclarationContainer.cjs.map +1 -0
- package/dist/node/ReflectionViewer/DeclarationContainer.d.cts +8 -0
- package/dist/node/ReflectionViewer/DeclarationContainer.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/DeclarationContainer.js +369 -37
- package/dist/node/ReflectionViewer/DeclarationContainer.js.map +1 -1
- package/dist/node/ReflectionViewer/NameViewer.cjs +205 -0
- package/dist/node/ReflectionViewer/NameViewer.cjs.map +1 -0
- package/dist/node/ReflectionViewer/NameViewer.d.cts +12 -0
- package/dist/node/ReflectionViewer/NameViewer.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/NameViewer.js +160 -42
- package/dist/node/ReflectionViewer/NameViewer.js.map +1 -1
- package/dist/node/ReflectionViewer/Project.cjs +365 -0
- package/dist/node/ReflectionViewer/Project.cjs.map +1 -0
- package/dist/node/ReflectionViewer/Project.d.cts +5 -0
- package/dist/node/ReflectionViewer/Project.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/Project.js +309 -38
- package/dist/node/ReflectionViewer/Project.js.map +1 -1
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.cjs +324 -0
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.cjs.map +1 -0
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.d.cts +11 -0
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.js +253 -53
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.js.map +1 -1
- package/dist/node/ReflectionViewer/ReflectionViewer.cjs +241 -0
- package/dist/node/ReflectionViewer/ReflectionViewer.cjs.map +1 -0
- package/dist/node/ReflectionViewer/ReflectionViewer.d.cts +4 -0
- package/dist/node/ReflectionViewer/ReflectionViewer.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/ReflectionViewer.js +193 -39
- package/dist/node/ReflectionViewer/ReflectionViewer.js.map +1 -1
- package/dist/node/ReflectionViewer/ReflectionViewerProps.cjs +19 -0
- package/dist/node/ReflectionViewer/ReflectionViewerProps.cjs.map +1 -0
- package/dist/node/ReflectionViewer/ReflectionViewerProps.d.cts +15 -0
- package/dist/node/ReflectionViewer/ReflectionViewerProps.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/ReflectionViewerProps.js +0 -16
- package/dist/node/ReflectionViewer/ReflectionViewerProps.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.cjs +141 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.cts +11 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.js +110 -32
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.cjs +19 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.d.cts +5 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.js +0 -16
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.cjs +39 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.d.cts +5 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.js +4 -27
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.cjs +41 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.d.cts +5 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.js +4 -27
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.cjs +44 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.d.cts +5 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.js +4 -27
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.cjs +36 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.d.cts +4 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.js +6 -29
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.cjs +130 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.d.cts +3 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.js +67 -34
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.cjs +41 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.d.cts +5 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.js +4 -27
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.js.map +1 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.cjs +143 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.cjs.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.d.cts +2 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.js +114 -21
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.js.map +1 -1
- package/dist/node/ReflectionViewer/index.cjs +464 -0
- package/dist/node/ReflectionViewer/index.cjs.map +1 -0
- package/dist/node/ReflectionViewer/index.d.cts +9 -0
- package/dist/node/ReflectionViewer/index.d.cts.map +1 -0
- package/dist/node/ReflectionViewer/index.js +420 -36
- package/dist/node/ReflectionViewer/index.js.map +1 -1
- package/dist/node/SomeReflection.cjs +19 -0
- package/dist/node/SomeReflection.cjs.map +1 -0
- package/dist/node/SomeReflection.d.cts +9 -0
- package/dist/node/SomeReflection.d.cts.map +1 -0
- package/dist/node/SomeReflection.js +0 -16
- package/dist/node/SomeReflection.js.map +1 -1
- package/dist/node/SourceViewer.cjs +36 -0
- package/dist/node/SourceViewer.cjs.map +1 -0
- package/dist/node/SourceViewer.d.cts +8 -0
- package/dist/node/SourceViewer.d.cts.map +1 -0
- package/dist/node/SourceViewer.js +8 -31
- package/dist/node/SourceViewer.js.map +1 -1
- package/dist/node/TreeViewer/Reflection.cjs +67 -0
- package/dist/node/TreeViewer/Reflection.cjs.map +1 -0
- package/dist/node/TreeViewer/Reflection.d.cts +13 -0
- package/dist/node/TreeViewer/Reflection.d.cts.map +1 -0
- package/dist/node/TreeViewer/Reflection.js +24 -45
- package/dist/node/TreeViewer/Reflection.js.map +1 -1
- package/dist/node/TreeViewer/ReflectionGroup.cjs +300 -0
- package/dist/node/TreeViewer/ReflectionGroup.cjs.map +1 -0
- package/dist/node/TreeViewer/ReflectionGroup.d.cts +4 -0
- package/dist/node/TreeViewer/ReflectionGroup.d.cts.map +1 -0
- package/dist/node/TreeViewer/ReflectionGroup.js +240 -41
- package/dist/node/TreeViewer/ReflectionGroup.js.map +1 -1
- package/dist/node/TreeViewer/index.cjs +343 -0
- package/dist/node/TreeViewer/index.cjs.map +1 -0
- package/dist/node/TreeViewer/index.d.cts +3 -0
- package/dist/node/TreeViewer/index.d.cts.map +1 -0
- package/dist/node/TreeViewer/index.js +304 -24
- package/dist/node/TreeViewer/index.js.map +1 -1
- package/dist/node/TwoPanelReflectionViewer.cjs +468 -0
- package/dist/node/TwoPanelReflectionViewer.cjs.map +1 -0
- package/dist/node/TwoPanelReflectionViewer.d.cts +4 -0
- package/dist/node/TwoPanelReflectionViewer.d.cts.map +1 -0
- package/dist/node/TwoPanelReflectionViewer.js +363 -53
- package/dist/node/TwoPanelReflectionViewer.js.map +1 -1
- package/dist/node/createLookup.cjs +36 -0
- package/dist/node/createLookup.cjs.map +1 -0
- package/dist/node/createLookup.d.cts +3 -0
- package/dist/node/createLookup.d.cts.map +1 -0
- package/dist/node/createLookup.js +6 -28
- package/dist/node/createLookup.js.map +1 -1
- package/dist/node/index.cjs +673 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +10 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +622 -38
- package/dist/node/index.js.map +1 -1
- package/dist/node/resolveChildren.cjs +48 -0
- package/dist/node/resolveChildren.cjs.map +1 -0
- package/dist/node/resolveChildren.d.cts +9 -0
- package/dist/node/resolveChildren.d.cts.map +1 -0
- package/dist/node/resolveChildren.js +7 -29
- package/dist/node/resolveChildren.js.map +1 -1
- package/dist/node/trimFlagLabel.cjs +36 -0
- package/dist/node/trimFlagLabel.cjs.map +1 -0
- package/dist/node/trimFlagLabel.d.cts +2 -0
- package/dist/node/trimFlagLabel.d.cts.map +1 -0
- package/dist/node/trimFlagLabel.js +4 -27
- package/dist/node/trimFlagLabel.js.map +1 -1
- package/package.json +16 -16
- package/dist/browser/ProjectTwoPanelReflectionViewer.stories.js +0 -23
- package/dist/browser/ProjectTwoPanelReflectionViewer.stories.js.map +0 -1
- package/dist/node/CommentViewer.mjs +0 -10
- package/dist/node/JsonViewerButton.mjs +0 -23
- package/dist/node/ProjectTwoPanelReflectionViewer.mjs +0 -16
- package/dist/node/ProjectTwoPanelReflectionViewer.mjs.map +0 -1
- package/dist/node/ProjectTwoPanelReflectionViewer.stories.js +0 -47
- package/dist/node/ProjectTwoPanelReflectionViewer.stories.js.map +0 -1
- package/dist/node/ProjectTwoPanelReflectionViewer.stories.mjs +0 -23
- package/dist/node/ProjectTwoPanelReflectionViewer.stories.mjs.map +0 -1
- package/dist/node/ReflectionLookup.mjs +0 -1
- package/dist/node/ReflectionLookup.mjs.map +0 -1
- package/dist/node/ReflectionViewer/Container.mjs +0 -35
- package/dist/node/ReflectionViewer/Container.mjs.map +0 -1
- package/dist/node/ReflectionViewer/Declaration.mjs +0 -32
- package/dist/node/ReflectionViewer/Declaration.mjs.map +0 -1
- package/dist/node/ReflectionViewer/DeclarationContainer.mjs +0 -30
- package/dist/node/ReflectionViewer/DeclarationContainer.mjs.map +0 -1
- package/dist/node/ReflectionViewer/NameViewer.mjs +0 -28
- package/dist/node/ReflectionViewer/NameViewer.mjs.map +0 -1
- package/dist/node/ReflectionViewer/Project.mjs +0 -35
- package/dist/node/ReflectionViewer/Project.mjs.map +0 -1
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.mjs +0 -65
- package/dist/node/ReflectionViewer/ReflectionGroupViewer.mjs.map +0 -1
- package/dist/node/ReflectionViewer/ReflectionViewer.mjs +0 -28
- package/dist/node/ReflectionViewer/ReflectionViewer.mjs.map +0 -1
- package/dist/node/ReflectionViewer/ReflectionViewerProps.mjs +0 -1
- package/dist/node/ReflectionViewer/ReflectionViewerProps.mjs.map +0 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.mjs +0 -14
- package/dist/node/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.mjs.map +0 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.mjs +0 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/TypeBuilder.mjs.map +0 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildArrayString.mjs +0 -13
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildIntersectionString.mjs +0 -15
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReferenceString.mjs +0 -18
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildReflectionString.mjs +0 -10
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.mjs +0 -46
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildTypeString.mjs.map +0 -1
- package/dist/node/ReflectionViewer/SomeTypeViewer/buildUnionString.mjs +0 -15
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.mjs +0 -2
- package/dist/node/ReflectionViewer/SomeTypeViewer/index.mjs.map +0 -1
- package/dist/node/ReflectionViewer/index.mjs +0 -9
- package/dist/node/ReflectionViewer/index.mjs.map +0 -1
- package/dist/node/SomeReflection.mjs +0 -1
- package/dist/node/SomeReflection.mjs.map +0 -1
- package/dist/node/SourceViewer.mjs +0 -10
- package/dist/node/TreeViewer/Reflection.mjs +0 -39
- package/dist/node/TreeViewer/ReflectionGroup.mjs +0 -42
- package/dist/node/TreeViewer/ReflectionGroup.mjs.map +0 -1
- package/dist/node/TreeViewer/index.mjs +0 -3
- package/dist/node/TreeViewer/index.mjs.map +0 -1
- package/dist/node/TwoPanelReflectionViewer.mjs +0 -99
- package/dist/node/TwoPanelReflectionViewer.mjs.map +0 -1
- package/dist/node/createLookup.mjs +0 -9
- package/dist/node/index.mjs +0 -10
- package/dist/node/index.mjs.map +0 -1
- package/dist/node/resolveChildren.mjs +0 -21
- package/dist/node/trimFlagLabel.mjs +0 -10
- package/dist/node/trimFlagLabel.mjs.map +0 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/ReflectionViewer/NameViewer.tsx
|
|
31
|
+
var NameViewer_exports = {};
|
|
32
|
+
__export(NameViewer_exports, {
|
|
33
|
+
NameViewer: () => NameViewer
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(NameViewer_exports);
|
|
36
|
+
var import_material3 = require("@mui/material");
|
|
37
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
38
|
+
|
|
39
|
+
// src/JsonViewerButton.tsx
|
|
40
|
+
var import_material = require("@mui/material");
|
|
41
|
+
var import_react_button = require("@xylabs/react-button");
|
|
42
|
+
var import_react = require("react");
|
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
|
+
var JsonView = (0, import_react.lazy)(() => import(
|
|
45
|
+
/* webpackChunkName: "jsonView" */
|
|
46
|
+
"react-json-view"
|
|
47
|
+
));
|
|
48
|
+
var JsonViewerButton = ({ jsonViewProps, src, title, ...props }) => {
|
|
49
|
+
const [open, setOpen] = (0, import_react.useState)(false);
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { onClick: () => setOpen(!open), ...props, children: "JSON" }),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Dialog, { open, onClose: () => setOpen(false), children: [
|
|
53
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogTitle, { children: title }) : null,
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(JsonView, { src, ...jsonViewProps }) }) }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogActions, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { onClick: () => setOpen(false), children: "Close" }) })
|
|
56
|
+
] })
|
|
57
|
+
] });
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// src/trimFlagLabel.ts
|
|
61
|
+
var trimFlagLabel = (label) => {
|
|
62
|
+
if (label.startsWith("is")) {
|
|
63
|
+
return label.substring(2);
|
|
64
|
+
}
|
|
65
|
+
return label;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx
|
|
69
|
+
var import_material2 = require("@mui/material");
|
|
70
|
+
|
|
71
|
+
// src/ReflectionViewer/SomeTypeViewer/buildArrayString.tsx
|
|
72
|
+
var buildArrayString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
73
|
+
const parts = [];
|
|
74
|
+
const typeString = typeBuilder(typeObj.elementType, reflectionViewer);
|
|
75
|
+
if (typeof typeString === "string") {
|
|
76
|
+
parts.push(typeString);
|
|
77
|
+
}
|
|
78
|
+
parts.push("[]");
|
|
79
|
+
return parts;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// src/ReflectionViewer/SomeTypeViewer/buildIntersectionString.tsx
|
|
83
|
+
var buildIntersectionString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
84
|
+
const parts = [];
|
|
85
|
+
if (typeObj.types) {
|
|
86
|
+
parts.push(
|
|
87
|
+
typeObj.types.map((arg) => {
|
|
88
|
+
return typeBuilder(arg, reflectionViewer);
|
|
89
|
+
}).join(" & ")
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
return parts;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts
|
|
96
|
+
var buildReferenceString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
97
|
+
const parts = [];
|
|
98
|
+
parts.push(typeObj.name);
|
|
99
|
+
if (typeObj.typeArguments) {
|
|
100
|
+
parts.push("<");
|
|
101
|
+
parts.push(
|
|
102
|
+
typeObj.typeArguments.map((arg) => {
|
|
103
|
+
return typeBuilder(arg, reflectionViewer);
|
|
104
|
+
}).join(", ")
|
|
105
|
+
);
|
|
106
|
+
parts.push(">");
|
|
107
|
+
}
|
|
108
|
+
return parts;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// src/ReflectionViewer/SomeTypeViewer/buildReflectionString.tsx
|
|
112
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
113
|
+
var buildRelfectionString = (typeObj, reflectionViewer) => {
|
|
114
|
+
if (typeObj.declaration) {
|
|
115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: reflectionViewer({ reflection: typeObj.declaration }) });
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
// src/ReflectionViewer/SomeTypeViewer/buildUnionString.tsx
|
|
120
|
+
var buildUnionString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
121
|
+
const parts = [];
|
|
122
|
+
if (typeObj.types) {
|
|
123
|
+
parts.push(
|
|
124
|
+
typeObj.types.map((arg) => {
|
|
125
|
+
return typeBuilder(arg, reflectionViewer);
|
|
126
|
+
}).join(" | ")
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
return parts;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
// src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx
|
|
133
|
+
var buildTypeString = (type, reflectionViewer) => {
|
|
134
|
+
const someType = type;
|
|
135
|
+
const parts = [];
|
|
136
|
+
switch (someType.type) {
|
|
137
|
+
case "intrinsic":
|
|
138
|
+
parts.push(someType.name);
|
|
139
|
+
break;
|
|
140
|
+
case "intersection": {
|
|
141
|
+
parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString));
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
case "literal":
|
|
145
|
+
parts.push(JSON.stringify(someType.value));
|
|
146
|
+
break;
|
|
147
|
+
case "array": {
|
|
148
|
+
parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString));
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
case "reference": {
|
|
152
|
+
parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString));
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
case "union": {
|
|
156
|
+
parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString));
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
case "reflection": {
|
|
160
|
+
return buildRelfectionString(someType, reflectionViewer);
|
|
161
|
+
}
|
|
162
|
+
default:
|
|
163
|
+
parts.push("#");
|
|
164
|
+
parts.push(someType.type);
|
|
165
|
+
parts.push("#");
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
return parts.join("");
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx
|
|
172
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
173
|
+
var SomeTypeViewer = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {
|
|
174
|
+
const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : "";
|
|
175
|
+
if (typeof typeReactNode === "string") {
|
|
176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material2.Typography, { title: "SomeTypeViewer", style: { opacity }, ...props, children: typeReactNode });
|
|
177
|
+
}
|
|
178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: typeReactNode });
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
// src/ReflectionViewer/NameViewer.tsx
|
|
182
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
183
|
+
var NameViewer = ({ reflectionViewer, variant, reflection, ...props }) => {
|
|
184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react_flexbox.FlexRow, { justifyContent: "flex-start", ...props, children: [
|
|
185
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react_flexbox.FlexRow, { marginRight: 1, children: [
|
|
186
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material3.Typography, { variant, noWrap: true, children: [
|
|
187
|
+
reflection.name,
|
|
188
|
+
reflection.type ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: ":\xA0" }) : null
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SomeTypeViewer, { reflection, reflectionViewer })
|
|
191
|
+
] }),
|
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material3.Stack, { direction: "row", spacing: 1, children: [
|
|
193
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.Chip, { size: "small", label: reflection.kind }),
|
|
194
|
+
reflection.flags ? Object.entries(reflection.flags).map(([flag, value]) => {
|
|
195
|
+
return value ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.Chip, { size: "small", label: trimFlagLabel(flag), variant: "outlined" }, flag) : null;
|
|
196
|
+
}) : null
|
|
197
|
+
] }),
|
|
198
|
+
document && (document == null ? void 0 : document.location.hostname) === "localhost" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(JsonViewerButton, { jsonViewProps: { collapsed: 1 }, size: "small", variant: "contained", padding: 0, marginX: 1, src: reflection })
|
|
199
|
+
] });
|
|
200
|
+
};
|
|
201
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
202
|
+
0 && (module.exports = {
|
|
203
|
+
NameViewer
|
|
204
|
+
});
|
|
205
|
+
//# sourceMappingURL=NameViewer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/ReflectionViewer/NameViewer.tsx","../../../src/JsonViewerButton.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"],"sourcesContent":["import { Chip, Stack, Typography, TypographyVariant } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { SomeReflection } from '../SomeReflection'\nimport { trimFlagLabel } from '../trimFlagLabel'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\nimport { SomeTypeViewer } from './SomeTypeViewer'\n\nexport interface NameViewerProps extends FlexBoxProps {\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n variant?: TypographyVariant\n}\n\nexport const NameViewer: React.FC<NameViewerProps> = ({ reflectionViewer, variant, reflection, ...props }) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type ? <>: </> : null}\n </Typography>\n <SomeTypeViewer reflection={reflection} reflectionViewer={reflectionViewer} />\n </FlexRow>\n <Stack direction=\"row\" spacing={1}>\n <Chip size=\"small\" label={reflection.kind} />\n {reflection.flags\n ? Object.entries(reflection.flags).map(([flag, value]) => {\n return value ? <Chip size=\"small\" key={flag} label={trimFlagLabel(flag)} variant=\"outlined\" /> : null\n })\n : null}\n </Stack>\n {document && document?.location.hostname === 'localhost' && (\n <JsonViewerButton jsonViewProps={{ collapsed: 1 }} size=\"small\" variant=\"contained\" padding={0} marginX={1} src={reflection} />\n )}\n </FlexRow>\n )\n}\n","import { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material'\nimport { ButtonEx, ButtonExProps } from '@xylabs/react-button'\nimport { lazy, Suspense, useState } from 'react'\nimport { ReactJsonViewProps } from 'react-json-view'\n\nconst JsonView = lazy(() => import(/* webpackChunkName: \"jsonView\" */ 'react-json-view'))\n\nexport interface JsonViewerButtonProps extends ButtonExProps {\n jsonViewProps?: Partial<ReactJsonViewProps>\n src: object\n}\n\nexport const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({ jsonViewProps, src, title, ...props }) => {\n const [open, setOpen] = useState(false)\n return (\n <>\n <ButtonEx onClick={() => setOpen(!open)} {...props}>\n JSON\n </ButtonEx>\n <Dialog open={open} onClose={() => setOpen(false)}>\n {title ? <DialogTitle>{title}</DialogTitle> : null}\n <DialogContent>\n <Suspense fallback={<div />}>\n <JsonView src={src} {...jsonViewProps} />\n </Suspense>\n </DialogContent>\n <DialogActions>\n <ButtonEx onClick={() => setOpen(false)}>Close</ButtonEx>\n </DialogActions>\n </Dialog>\n </>\n )\n}\n","export const trimFlagLabel = (label: string) => {\n if (label.startsWith('is')) {\n return label.substring(2)\n }\n return label\n}\n","import { Typography, TypographyProps } from '@mui/material'\n\nimport { SomeReflection } from '../../SomeReflection'\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildTypeString } from './buildTypeString'\n\nexport interface SomeTypeViewerProps extends TypographyProps {\n opacity?: number\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n}\n\nexport const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {\n const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : ''\n if (typeof typeReactNode === 'string') {\n return (\n <Typography title=\"SomeTypeViewer\" style={{ opacity }} {...props}>\n {typeReactNode}\n </Typography>\n )\n }\n return <>{typeReactNode}</>\n}\n","import type { ArrayType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildArrayString = (typeObj: ArrayType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n const typeString = typeBuilder(typeObj.elementType, reflectionViewer)\n if (typeof typeString === 'string') {\n parts.push(typeString)\n }\n parts.push('[]')\n return parts\n}\n","import type { IntersectionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildIntersectionString = (typeObj: IntersectionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' & '),\n )\n }\n return parts\n}\n","import type { ReferenceType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildReferenceString = (typeObj: ReferenceType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n parts.push(typeObj.name)\n if (typeObj.typeArguments) {\n parts.push('<')\n parts.push(\n typeObj.typeArguments\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(', '),\n )\n parts.push('>')\n }\n return parts\n}\n","import type { ReflectionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\n\nexport const buildRelfectionString = (typeObj: ReflectionType, reflectionViewer: React.FC<ReflectionViewerProps>) => {\n if (typeObj.declaration) {\n return <>{reflectionViewer({ reflection: typeObj.declaration })}</>\n }\n}\n","import type { UnionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildUnionString = (typeObj: UnionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' | '),\n )\n }\n return parts\n}\n","import { ReactNode } from 'react'\nimport type { SomeType, Type } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildArrayString } from './buildArrayString'\nimport { buildIntersectionString } from './buildIntersectionString'\nimport { buildReferenceString } from './buildReferenceString'\nimport { buildRelfectionString } from './buildReflectionString'\nimport { buildUnionString } from './buildUnionString'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildTypeString: TypeBuilder = (type: SomeType | Type, reflectionViewer: React.FC<ReflectionViewerProps>): ReactNode => {\n const someType = type as SomeType\n const parts: string[] = []\n\n switch (someType.type) {\n case 'intrinsic':\n parts.push(someType.name)\n break\n case 'intersection': {\n parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'literal':\n parts.push(JSON.stringify(someType.value))\n break\n case 'array': {\n parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reference': {\n parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'union': {\n parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reflection': {\n return buildRelfectionString(someType, reflectionViewer)\n }\n default:\n parts.push('#')\n parts.push(someType.type)\n parts.push('#')\n break\n }\n return parts.join('')\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAA2D;AAC3D,2BAAsC;;;ACDtC,sBAAkE;AAClE,0BAAwC;AACxC,mBAAyC;AAarC;AAVJ,IAAM,eAAW,mBAAK,MAAM;AAAA;AAAA,EAA0C;AAAiB,CAAC;AAOjF,IAAM,mBAAoD,CAAC,EAAE,eAAe,KAAK,OAAO,GAAG,MAAM,MAAM;AAC5G,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAS,KAAK;AACtC,SACE,4EACE;AAAA,gDAAC,gCAAS,SAAS,MAAM,QAAQ,CAAC,IAAI,GAAI,GAAG,OAAO,kB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,GAAG,MAAK,SAAQ,SAAQ,aAAY,SAAS,GAAG,SAAS,GAAG,KAAK,YAAY;AAAA,KAEjI;AAEJ;","names":["import_material","import_material","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyVariant } from '@mui/material';
|
|
3
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
4
|
+
import { SomeReflection } from '../SomeReflection';
|
|
5
|
+
import { ReflectionViewerProps } from './ReflectionViewerProps';
|
|
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,EAA2B,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAG/D,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,CAuBhD,CAAA"}
|
|
@@ -1,52 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
// src/ReflectionViewer/NameViewer.tsx
|
|
2
|
+
import { Chip, Stack, Typography as Typography2 } from "@mui/material";
|
|
3
|
+
import { FlexRow } from "@xylabs/react-flexbox";
|
|
4
|
+
|
|
5
|
+
// src/JsonViewerButton.tsx
|
|
6
|
+
import { Dialog, DialogActions, DialogContent, DialogTitle } from "@mui/material";
|
|
7
|
+
import { ButtonEx } from "@xylabs/react-button";
|
|
8
|
+
import { lazy, Suspense, useState } from "react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var JsonView = lazy(() => import(
|
|
11
|
+
/* webpackChunkName: "jsonView" */
|
|
12
|
+
"react-json-view"
|
|
13
|
+
));
|
|
14
|
+
var JsonViewerButton = ({ jsonViewProps, src, title, ...props }) => {
|
|
15
|
+
const [open, setOpen] = useState(false);
|
|
16
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(ButtonEx, { onClick: () => setOpen(!open), ...props, children: "JSON" }),
|
|
18
|
+
/* @__PURE__ */ jsxs(Dialog, { open, onClose: () => setOpen(false), children: [
|
|
19
|
+
title ? /* @__PURE__ */ jsx(DialogTitle, { children: title }) : null,
|
|
20
|
+
/* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", {}), children: /* @__PURE__ */ jsx(JsonView, { src, ...jsonViewProps }) }) }),
|
|
21
|
+
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(ButtonEx, { onClick: () => setOpen(false), children: "Close" }) })
|
|
22
|
+
] })
|
|
23
|
+
] });
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// src/trimFlagLabel.ts
|
|
27
|
+
var trimFlagLabel = (label) => {
|
|
28
|
+
if (label.startsWith("is")) {
|
|
29
|
+
return label.substring(2);
|
|
30
|
+
}
|
|
31
|
+
return label;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx
|
|
35
|
+
import { Typography } from "@mui/material";
|
|
36
|
+
|
|
37
|
+
// src/ReflectionViewer/SomeTypeViewer/buildArrayString.tsx
|
|
38
|
+
var buildArrayString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
39
|
+
const parts = [];
|
|
40
|
+
const typeString = typeBuilder(typeObj.elementType, reflectionViewer);
|
|
41
|
+
if (typeof typeString === "string") {
|
|
42
|
+
parts.push(typeString);
|
|
43
|
+
}
|
|
44
|
+
parts.push("[]");
|
|
45
|
+
return parts;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// src/ReflectionViewer/SomeTypeViewer/buildIntersectionString.tsx
|
|
49
|
+
var buildIntersectionString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
50
|
+
const parts = [];
|
|
51
|
+
if (typeObj.types) {
|
|
52
|
+
parts.push(
|
|
53
|
+
typeObj.types.map((arg) => {
|
|
54
|
+
return typeBuilder(arg, reflectionViewer);
|
|
55
|
+
}).join(" & ")
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
return parts;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts
|
|
62
|
+
var buildReferenceString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
63
|
+
const parts = [];
|
|
64
|
+
parts.push(typeObj.name);
|
|
65
|
+
if (typeObj.typeArguments) {
|
|
66
|
+
parts.push("<");
|
|
67
|
+
parts.push(
|
|
68
|
+
typeObj.typeArguments.map((arg) => {
|
|
69
|
+
return typeBuilder(arg, reflectionViewer);
|
|
70
|
+
}).join(", ")
|
|
71
|
+
);
|
|
72
|
+
parts.push(">");
|
|
73
|
+
}
|
|
74
|
+
return parts;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// src/ReflectionViewer/SomeTypeViewer/buildReflectionString.tsx
|
|
78
|
+
import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
|
|
79
|
+
var buildRelfectionString = (typeObj, reflectionViewer) => {
|
|
80
|
+
if (typeObj.declaration) {
|
|
81
|
+
return /* @__PURE__ */ jsx2(Fragment2, { children: reflectionViewer({ reflection: typeObj.declaration }) });
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/ReflectionViewer/SomeTypeViewer/buildUnionString.tsx
|
|
86
|
+
var buildUnionString = (typeObj, reflectionViewer, typeBuilder) => {
|
|
87
|
+
const parts = [];
|
|
88
|
+
if (typeObj.types) {
|
|
89
|
+
parts.push(
|
|
90
|
+
typeObj.types.map((arg) => {
|
|
91
|
+
return typeBuilder(arg, reflectionViewer);
|
|
92
|
+
}).join(" | ")
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
return parts;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx
|
|
99
|
+
var buildTypeString = (type, reflectionViewer) => {
|
|
100
|
+
const someType = type;
|
|
101
|
+
const parts = [];
|
|
102
|
+
switch (someType.type) {
|
|
103
|
+
case "intrinsic":
|
|
104
|
+
parts.push(someType.name);
|
|
105
|
+
break;
|
|
106
|
+
case "intersection": {
|
|
107
|
+
parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString));
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
case "literal":
|
|
111
|
+
parts.push(JSON.stringify(someType.value));
|
|
112
|
+
break;
|
|
113
|
+
case "array": {
|
|
114
|
+
parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString));
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
case "reference": {
|
|
118
|
+
parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString));
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
case "union": {
|
|
122
|
+
parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString));
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case "reflection": {
|
|
126
|
+
return buildRelfectionString(someType, reflectionViewer);
|
|
127
|
+
}
|
|
128
|
+
default:
|
|
129
|
+
parts.push("#");
|
|
130
|
+
parts.push(someType.type);
|
|
131
|
+
parts.push("#");
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
return parts.join("");
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx
|
|
138
|
+
import { Fragment as Fragment3, jsx as jsx3 } from "react/jsx-runtime";
|
|
139
|
+
var SomeTypeViewer = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {
|
|
140
|
+
const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : "";
|
|
141
|
+
if (typeof typeReactNode === "string") {
|
|
142
|
+
return /* @__PURE__ */ jsx3(Typography, { title: "SomeTypeViewer", style: { opacity }, ...props, children: typeReactNode });
|
|
143
|
+
}
|
|
144
|
+
return /* @__PURE__ */ jsx3(Fragment3, { children: typeReactNode });
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// src/ReflectionViewer/NameViewer.tsx
|
|
148
|
+
import { Fragment as Fragment4, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
149
|
+
var NameViewer = ({ reflectionViewer, variant, reflection, ...props }) => {
|
|
150
|
+
return /* @__PURE__ */ jsxs2(FlexRow, { justifyContent: "flex-start", ...props, children: [
|
|
151
|
+
/* @__PURE__ */ jsxs2(FlexRow, { marginRight: 1, children: [
|
|
152
|
+
/* @__PURE__ */ jsxs2(Typography2, { variant, noWrap: true, children: [
|
|
34
153
|
reflection.name,
|
|
35
|
-
reflection.type ? /* @__PURE__ */ (
|
|
154
|
+
reflection.type ? /* @__PURE__ */ jsx4(Fragment4, { children: ":\xA0" }) : null
|
|
36
155
|
] }),
|
|
37
|
-
/* @__PURE__ */ (
|
|
156
|
+
/* @__PURE__ */ jsx4(SomeTypeViewer, { reflection, reflectionViewer })
|
|
38
157
|
] }),
|
|
39
|
-
/* @__PURE__ */ (
|
|
40
|
-
/* @__PURE__ */ (
|
|
158
|
+
/* @__PURE__ */ jsxs2(Stack, { direction: "row", spacing: 1, children: [
|
|
159
|
+
/* @__PURE__ */ jsx4(Chip, { size: "small", label: reflection.kind }),
|
|
41
160
|
reflection.flags ? Object.entries(reflection.flags).map(([flag, value]) => {
|
|
42
|
-
return value ? /* @__PURE__ */ (
|
|
161
|
+
return value ? /* @__PURE__ */ jsx4(Chip, { size: "small", label: trimFlagLabel(flag), variant: "outlined" }, flag) : null;
|
|
43
162
|
}) : null
|
|
44
163
|
] }),
|
|
45
|
-
document && document
|
|
164
|
+
document && (document == null ? void 0 : document.location.hostname) === "localhost" && /* @__PURE__ */ jsx4(JsonViewerButton, { jsonViewProps: { collapsed: 1 }, size: "small", variant: "contained", padding: 0, marginX: 1, src: reflection })
|
|
46
165
|
] });
|
|
47
166
|
};
|
|
48
|
-
|
|
49
|
-
0 && (module.exports = {
|
|
167
|
+
export {
|
|
50
168
|
NameViewer
|
|
51
|
-
}
|
|
169
|
+
};
|
|
52
170
|
//# sourceMappingURL=NameViewer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ReflectionViewer/NameViewer.tsx"],"sourcesContent":["import { Chip, Stack, Typography, TypographyVariant } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { SomeReflection } from '../SomeReflection'\nimport { trimFlagLabel } from '../trimFlagLabel'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\nimport { SomeTypeViewer } from './SomeTypeViewer'\n\nexport interface NameViewerProps extends FlexBoxProps {\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n variant?: TypographyVariant\n}\n\nexport const NameViewer: React.FC<NameViewerProps> = ({ reflectionViewer, variant, reflection, ...props }) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type ? <>: </> : null}\n </Typography>\n <SomeTypeViewer reflection={reflection} reflectionViewer={reflectionViewer} />\n </FlexRow>\n <Stack direction=\"row\" spacing={1}>\n <Chip size=\"small\" label={reflection.kind} />\n {reflection.flags\n ? Object.entries(reflection.flags).map(([flag, value]) => {\n return value ? <Chip size=\"small\" key={flag} label={trimFlagLabel(flag)} variant=\"outlined\" /> : null\n })\n : null}\n </Stack>\n {document && document?.location.hostname === 'localhost' && (\n <JsonViewerButton jsonViewProps={{ collapsed: 1 }} size=\"small\" variant=\"contained\" padding={0} marginX={1} src={reflection} />\n )}\n </FlexRow>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBQ;AAnBR,sBAA2D;AAC3D,2BAAsC;AAEtC,8BAAiC;AAEjC,2BAA8B;AAE9B,4BAA+B;AAQxB,MAAM,aAAwC,CAAC,EAAE,kBAAkB,SAAS,YAAY,GAAG,MAAM,MAAM;AAC5G,SACE,6CAAC,gCAAQ,gBAAe,cAAc,GAAG,OACvC;AAAA,iDAAC,gCAAQ,aAAa,GACpB;AAAA,mDAAC,8BAAW,SAAkB,QAAM,MACjC;AAAA,mBAAW;AAAA,QACX,WAAW,OAAO,2EAAE,mBAAO,IAAM;AAAA,SACpC;AAAA,MACA,4CAAC,wCAAe,YAAwB,kBAAoC;AAAA,OAC9E;AAAA,IACA,6CAAC,yBAAM,WAAU,OAAM,SAAS,GAC9B;AAAA,kDAAC,wBAAK,MAAK,SAAQ,OAAO,WAAW,MAAM;AAAA,MAC1C,WAAW,QACR,OAAO,QAAQ,WAAW,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM;AACtD,eAAO,QAAQ,4CAAC,wBAAK,MAAK,SAAmB,WAAO,oCAAc,IAAI,GAAG,SAAQ,cAA1C,IAAqD,IAAK;AAAA,MACnG,CAAC,IACD;AAAA,OACN;AAAA,IACC,YAAY,UAAU,SAAS,aAAa,eAC3C,4CAAC,4CAAiB,eAAe,EAAE,WAAW,EAAE,GAAG,MAAK,SAAQ,SAAQ,aAAY,SAAS,GAAG,SAAS,GAAG,KAAK,YAAY;AAAA,KAEjI;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/ReflectionViewer/NameViewer.tsx","../../../src/JsonViewerButton.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"],"sourcesContent":["import { Chip, Stack, Typography, TypographyVariant } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\n\nimport { JsonViewerButton } from '../JsonViewerButton'\nimport { SomeReflection } from '../SomeReflection'\nimport { trimFlagLabel } from '../trimFlagLabel'\nimport { ReflectionViewerProps } from './ReflectionViewerProps'\nimport { SomeTypeViewer } from './SomeTypeViewer'\n\nexport interface NameViewerProps extends FlexBoxProps {\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n variant?: TypographyVariant\n}\n\nexport const NameViewer: React.FC<NameViewerProps> = ({ reflectionViewer, variant, reflection, ...props }) => {\n return (\n <FlexRow justifyContent=\"flex-start\" {...props}>\n <FlexRow marginRight={1}>\n <Typography variant={variant} noWrap>\n {reflection.name}\n {reflection.type ? <>: </> : null}\n </Typography>\n <SomeTypeViewer reflection={reflection} reflectionViewer={reflectionViewer} />\n </FlexRow>\n <Stack direction=\"row\" spacing={1}>\n <Chip size=\"small\" label={reflection.kind} />\n {reflection.flags\n ? Object.entries(reflection.flags).map(([flag, value]) => {\n return value ? <Chip size=\"small\" key={flag} label={trimFlagLabel(flag)} variant=\"outlined\" /> : null\n })\n : null}\n </Stack>\n {document && document?.location.hostname === 'localhost' && (\n <JsonViewerButton jsonViewProps={{ collapsed: 1 }} size=\"small\" variant=\"contained\" padding={0} marginX={1} src={reflection} />\n )}\n </FlexRow>\n )\n}\n","import { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material'\nimport { ButtonEx, ButtonExProps } from '@xylabs/react-button'\nimport { lazy, Suspense, useState } from 'react'\nimport { ReactJsonViewProps } from 'react-json-view'\n\nconst JsonView = lazy(() => import(/* webpackChunkName: \"jsonView\" */ 'react-json-view'))\n\nexport interface JsonViewerButtonProps extends ButtonExProps {\n jsonViewProps?: Partial<ReactJsonViewProps>\n src: object\n}\n\nexport const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({ jsonViewProps, src, title, ...props }) => {\n const [open, setOpen] = useState(false)\n return (\n <>\n <ButtonEx onClick={() => setOpen(!open)} {...props}>\n JSON\n </ButtonEx>\n <Dialog open={open} onClose={() => setOpen(false)}>\n {title ? <DialogTitle>{title}</DialogTitle> : null}\n <DialogContent>\n <Suspense fallback={<div />}>\n <JsonView src={src} {...jsonViewProps} />\n </Suspense>\n </DialogContent>\n <DialogActions>\n <ButtonEx onClick={() => setOpen(false)}>Close</ButtonEx>\n </DialogActions>\n </Dialog>\n </>\n )\n}\n","export const trimFlagLabel = (label: string) => {\n if (label.startsWith('is')) {\n return label.substring(2)\n }\n return label\n}\n","import { Typography, TypographyProps } from '@mui/material'\n\nimport { SomeReflection } from '../../SomeReflection'\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildTypeString } from './buildTypeString'\n\nexport interface SomeTypeViewerProps extends TypographyProps {\n opacity?: number\n reflection: SomeReflection\n reflectionViewer: React.FC<ReflectionViewerProps>\n}\n\nexport const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {\n const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : ''\n if (typeof typeReactNode === 'string') {\n return (\n <Typography title=\"SomeTypeViewer\" style={{ opacity }} {...props}>\n {typeReactNode}\n </Typography>\n )\n }\n return <>{typeReactNode}</>\n}\n","import type { ArrayType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildArrayString = (typeObj: ArrayType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n const typeString = typeBuilder(typeObj.elementType, reflectionViewer)\n if (typeof typeString === 'string') {\n parts.push(typeString)\n }\n parts.push('[]')\n return parts\n}\n","import type { IntersectionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildIntersectionString = (typeObj: IntersectionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' & '),\n )\n }\n return parts\n}\n","import type { ReferenceType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildReferenceString = (typeObj: ReferenceType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n parts.push(typeObj.name)\n if (typeObj.typeArguments) {\n parts.push('<')\n parts.push(\n typeObj.typeArguments\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(', '),\n )\n parts.push('>')\n }\n return parts\n}\n","import type { ReflectionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\n\nexport const buildRelfectionString = (typeObj: ReflectionType, reflectionViewer: React.FC<ReflectionViewerProps>) => {\n if (typeObj.declaration) {\n return <>{reflectionViewer({ reflection: typeObj.declaration })}</>\n }\n}\n","import type { UnionType } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildUnionString = (typeObj: UnionType, reflectionViewer: React.FC<ReflectionViewerProps>, typeBuilder: TypeBuilder) => {\n const parts: string[] = []\n if (typeObj.types) {\n parts.push(\n typeObj.types\n .map((arg) => {\n return typeBuilder(arg, reflectionViewer)\n })\n .join(' | '),\n )\n }\n return parts\n}\n","import { ReactNode } from 'react'\nimport type { SomeType, Type } from 'typedoc'\n\nimport { ReflectionViewerProps } from '../ReflectionViewerProps'\nimport { buildArrayString } from './buildArrayString'\nimport { buildIntersectionString } from './buildIntersectionString'\nimport { buildReferenceString } from './buildReferenceString'\nimport { buildRelfectionString } from './buildReflectionString'\nimport { buildUnionString } from './buildUnionString'\nimport { TypeBuilder } from './TypeBuilder'\n\nexport const buildTypeString: TypeBuilder = (type: SomeType | Type, reflectionViewer: React.FC<ReflectionViewerProps>): ReactNode => {\n const someType = type as SomeType\n const parts: string[] = []\n\n switch (someType.type) {\n case 'intrinsic':\n parts.push(someType.name)\n break\n case 'intersection': {\n parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'literal':\n parts.push(JSON.stringify(someType.value))\n break\n case 'array': {\n parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reference': {\n parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'union': {\n parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString))\n break\n }\n case 'reflection': {\n return buildRelfectionString(someType, reflectionViewer)\n }\n default:\n parts.push('#')\n parts.push(someType.type)\n parts.push('#')\n break\n }\n return parts.join('')\n}\n"],"mappings":";AAAA,SAAS,MAAM,OAAO,cAAAA,mBAAqC;AAC3D,SAAuB,eAAe;;;ACDtC,SAAS,QAAQ,eAAe,eAAe,mBAAmB;AAClE,SAAS,gBAA+B;AACxC,SAAS,MAAM,UAAU,gBAAgB;AAarC,mBACE,KAGA,YAJF;AAVJ,IAAM,WAAW,KAAK,MAAM;AAAA;AAAA,EAA0C;AAAiB,CAAC;AAOjF,IAAM,mBAAoD,CAAC,EAAE,eAAe,KAAK,OAAO,GAAG,MAAM,MAAM;AAC5G,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,SACE,iCACE;AAAA,wBAAC,YAAS,SAAS,MAAM,QAAQ,CAAC,IAAI,GAAI,GAAG,OAAO,kBAEpD;AAAA,IACA,qBAAC,UAAO,MAAY,SAAS,MAAM,QAAQ,KAAK,GAC7C;AAAA,cAAQ,oBAAC,eAAa,iBAAM,IAAiB;AAAA,MAC9C,oBAAC,iBACC,8BAAC,YAAS,UAAU,oBAAC,SAAI,GACvB,8BAAC,YAAS,KAAW,GAAG,eAAe,GACzC,GACF;AAAA,MACA,oBAAC,iBACC,8BAAC,YAAS,SAAS,MAAM,QAAQ,KAAK,GAAG,mBAAK,GAChD;AAAA,OACF;AAAA,KACF;AAEJ;;;AChCO,IAAM,gBAAgB,CAAC,UAAkB;AAC9C,MAAI,MAAM,WAAW,IAAI,GAAG;AAC1B,WAAO,MAAM,UAAU,CAAC;AAAA,EAC1B;AACA,SAAO;AACT;;;ACLA,SAAS,kBAAmC;;;AC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