@xyo-network/react-typedoc 2.77.2 → 2.78.1

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.
@@ -1,2 +1,642 @@
1
- "use strict";var Y=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var Be=Object.prototype.hasOwnProperty;var Ie=(e,o)=>{for(var r in o)Y(e,r,{get:o[r],enumerable:!0})},De=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of ke(o))!Be.call(e,i)&&i!==r&&Y(e,i,{get:()=>o[i],enumerable:!(t=ve(o,i))||t.enumerable});return e};var Ge=e=>De(Y({},"__esModule",{value:!0}),e);var Xe={};Ie(Xe,{CommentViewer:()=>W,ContainerReflectionViewer:()=>q,DeclarationContainerReflectionViewer:()=>K,DeclarationReflectionViewer:()=>H,JsonViewerButton:()=>C,ProjectReflectionViewer:()=>Ne,ProjectTwoPanelReflectionViewer:()=>Je,ReflectionGroupTreeViewer:()=>Ae,ReflectionGroupViewer:()=>F,ReflectionTreeViewer:()=>Z,ReflectionViewer:()=>a,SomeTypeViewer:()=>U,SourceViewer:()=>$e,TwoPanelReflectionViewer:()=>_});module.exports=Ge(Xe);var ee=require("@mui/material"),oe=require("@xylabs/react-flexbox"),j=require("react/jsx-runtime"),W=({comment:e,...o})=>{var r;return(0,j.jsx)(oe.FlexCol,{alignItems:"stretch",...o,children:(0,j.jsx)(ee.Typography,{variant:"body2",children:(r=e.summary[0])==null?void 0:r.text})})};var y=require("@mui/material"),z=require("@xylabs/react-button"),re=require("@xyo-network/react-payload-raw-info"),te=require("react"),u=require("react/jsx-runtime"),C=({jsonViewProps:e,src:o,title:r,...t})=>{let[i,n]=(0,te.useState)(!1);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(z.ButtonEx,{onClick:()=>n(!i),...t,children:"JSON"}),(0,u.jsxs)(y.Dialog,{open:i,onClose:()=>n(!1),children:[r?(0,u.jsx)(y.DialogTitle,{children:r}):null,(0,u.jsx)(y.DialogContent,{children:(0,u.jsx)(re.JsonViewerEx,{value:o,...e})}),(0,u.jsx)(y.DialogActions,{children:(0,u.jsx)(z.ButtonEx,{onClick:()=>n(!1),children:"Close"})})]})]})};var Pe=require("@xylabs/assert");var T=e=>{let o={};if(e.children)for(let r of e.children)o[r.id]=r;return o};var ue=require("@mui/material"),L=require("@xylabs/react-flexbox"),Re=require("react"),de=require("react-router-dom");var x=(e,o={})=>{var r;return((r=e.children)==null?void 0:r.map(t=>{switch(typeof t){case"object":return t;case"number":{let i=o[t];if(i===void 0)throw new Error(`Child Reference Not Found [${t}]`);return i}default:throw new Error(`Invalid Child Type [${typeof t}, ${t}]`)}}))??[]};var fe=require("@xylabs/react-flexbox");var V=require("@mui/material"),M=require("@xylabs/react-flexbox");var ie=e=>e.startsWith("is")?e.slice(2):e;var ce=require("@mui/material");var ne=(e,o,r)=>{let t=[],i=r(e.elementType,o);return typeof i=="string"&&t.push(i),t.push("[]"),t};var pe=(e,o,r)=>{let t=[];return e.types&&t.push(e.types.map(i=>r(i,o)).join(" & ")),t};var le=(e,o,r)=>{let t=[];return t.push(e.name),e.typeArguments&&t.push("<",e.typeArguments.map(i=>r(i,o)).join(", "),">"),t};var E=require("react/jsx-runtime"),ae=(e,o)=>{if(e.declaration)return(0,E.jsx)(E.Fragment,{children:o({reflection:e.declaration})})};var me=(e,o,r)=>{let t=[];return e.types&&t.push(e.types.map(i=>r(i,o)).join(" | ")),t};var S=(e,o)=>{let r=e,t=[];switch(r.type){case"intrinsic":{t.push(r.name);break}case"intersection":{t.push(...pe(r,o,S));break}case"literal":{t.push(JSON.stringify(r.value));break}case"array":{t.push(...ne(r,o,S));break}case"reference":{t.push(...le(r,o,S));break}case"union":{t.push(...me(r,o,S));break}case"reflection":return ae(r,o);default:{t.push("#",r.type,"#");break}}return t.join("")};var I=require("react/jsx-runtime"),U=({opacity:e=.5,reflection:o,reflectionViewer:r,...t})=>{let i=o.type?S(o.type,r):"";return typeof i=="string"?(0,I.jsx)(ce.Typography,{title:"SomeTypeViewer",style:{opacity:e},...t,children:i}):(0,I.jsx)(I.Fragment,{children:i})};var f=require("react/jsx-runtime"),se=({reflectionViewer:e,variant:o,reflection:r,...t})=>(0,f.jsxs)(M.FlexRow,{justifyContent:"flex-start",...t,children:[(0,f.jsxs)(M.FlexRow,{marginRight:1,children:[(0,f.jsxs)(V.Typography,{variant:o,noWrap:!0,children:[r.name,r.type?(0,f.jsx)(f.Fragment,{children:":\xA0"}):null]}),(0,f.jsx)(U,{reflection:r,reflectionViewer:e})]}),(0,f.jsxs)(V.Stack,{direction:"row",spacing:1,children:[(0,f.jsx)(V.Chip,{size:"small",label:r.kind}),r.flags?Object.entries(r.flags).map(([i,n])=>n?(0,f.jsx)(V.Chip,{size:"small",label:ie(i),variant:"outlined"},i):null):null]}),document&&(document==null?void 0:document.location.hostname)==="localhost"&&(0,f.jsx)(C,{size:"small",variant:"contained",padding:0,marginX:1,src:r})]});var b=require("react/jsx-runtime"),Ee=(e,o=[])=>{let r=!1;return o.map(t=>{e!=null&&e[t]&&(r=!0)}),r},a=({variant:e,nameViewer:o,children:r,reflection:t,hiddenFlags:i,...n})=>{var p;let l=t;return Ee(t==null?void 0:t.flags,i)?null:(0,b.jsxs)(fe.FlexCol,{title:"ReflectionViewer",alignItems:"stretch",...n,children:[o===void 0?(0,b.jsx)(se,{marginY:.25,variant:e,reflection:l,reflectionViewer:a}):o,t.comment?(0,b.jsx)(W,{comment:t.comment}):null,((p=l.parameters)==null?void 0:p.map(R=>(0,b.jsx)(a,{hiddenFlags:i,marginY:.25,marginX:1,reflection:R},R.id)))??null,r]})};var h=require("react/jsx-runtime"),Le=(e,o=[])=>{let r=!1;return o.map(t=>{e!=null&&e[t]&&(r=!0)}),r},F=({autoScroll:e=!1,children:o,hiddenFlags:r,group:t,lookup:i,renderer:n=a,variant:l,...p})=>{let R=x(t,i)??[],k=r?R.reduce((m,s)=>m+(Le(s.flags,r)?0:1),0):1,{hash:g}=(0,de.useLocation)();return(0,Re.useEffect)(()=>{var m;g&&e&&((m=document.querySelector(g))==null||m.scrollIntoView({behavior:"smooth"}))},[g,e]),k>0?(0,h.jsxs)(L.FlexCol,{title:"ReflectionGroupViewer",...p,children:[(0,h.jsxs)(L.FlexRow,{marginY:1,justifyContent:"flex-start",children:[(0,h.jsx)(ue.Typography,{variant:l,children:t.title}),(0,h.jsx)(C,{size:"small",variant:"contained",padding:0,marginX:1,src:x(t,i)})]}),x(t,i).map(m=>m?(0,h.jsx)("div",{id:m.name,children:n({hiddenFlags:r,lookup:i,margin:1,padding:1,reflection:m})},m.id):null),o]}):null};var N=require("react/jsx-runtime"),q=({children:e,reflection:o,hiddenFlags:r,itemRenderer:t=a,...i})=>{var l;let n=T(o);return(0,N.jsxs)(a,{title:"ContainerReflectionViewer",sources:!0,reflection:o,lookup:n,...i,children:[(l=o.groups)==null?void 0:l.map(p=>(0,N.jsx)(F,{margin:1,lookup:n,renderer:t,group:p,reflection:o,hiddenFlags:r,alignItems:"stretch"},p.title)),e]})};var v=require("react/jsx-runtime"),H=({reflection:e,hiddenFlags:o,...r})=>{var i,n,l;let t=p=>Array.isArray(p)?p:p?[p]:void 0;return(0,v.jsxs)(a,{nameViewer:e.signatures||e.getSignature||e.setSignature?null:void 0,title:"DeclarationReflectionViewer",hiddenFlags:o,reflection:e,...r,children:[(i=e.signatures)==null?void 0:i.map(p=>(0,v.jsx)(a,{hiddenFlags:o,reflection:p},p.id)),(n=t(e.getSignature))==null?void 0:n.map(p=>(0,v.jsx)(a,{marginX:1,hiddenFlags:o,reflection:p},p.id)),(l=t(e.setSignature))==null?void 0:l.map(p=>(0,v.jsx)(a,{marginX:1,hiddenFlags:o,reflection:p},p.id))]})};var ye=require("@mui/material"),we=require("react-router-dom");var ge=require("react/jsx-runtime"),K=({reflection:e,lookup:o,itemRenderer:r=H,...t})=>{let{hash:i}=(0,we.useLocation)(),n=(0,ye.useTheme)();return(0,ge.jsx)(q,{title:"DeclarationContainerReflectionViewer",paper:i.slice(1)===e.name,bgcolor:i.slice(1)===e.name?n.palette.background.default:void 0,lookup:o,itemRenderer:r,reflection:e,...t})};var O=require("react");var Q=require("react/jsx-runtime"),Ne=({reflection:e,hiddenFlags:o,itemRenderer:r=a,...t})=>{let i=(0,O.useMemo)(()=>T(e),[e]);return(0,Q.jsx)(a,{title:"ProjectReflectionViewer",hiddenFlags:o,reflection:e,...t,children:(0,O.useMemo)(()=>{var n;return(n=e.groups)==null?void 0:n.map(l=>(0,Q.jsx)(F,{autoScroll:!0,variant:"h6",lookup:i,renderer:r,group:l,reflection:e,alignItems:"stretch",hiddenFlags:o},l.title))},[i,e,o,r])})};var Fe=require("@mui/icons-material"),$=require("@mui/material"),d=require("@xylabs/react-flexbox"),G=require("react");var A=require("@mui/icons-material"),Ce=require("@mui/material"),D=require("@mui/x-tree-view"),xe=require("@xylabs/react-flexbox"),Ve=require("react-router-dom"),w=require("react/jsx-runtime"),Z=({lookup:e,reflection:o,searchTerm:r,...t})=>{var n;let i=(0,Ve.useNavigate)();return(0,w.jsx)(xe.FlexCol,{alignItems:"stretch",...t,children:(0,w.jsx)(D.TreeView,{"aria-label":"XYO SDK Documentation",defaultExpandIcon:(0,w.jsx)(A.Add,{}),defaultCollapseIcon:(0,w.jsx)(A.Remove,{}),defaultExpanded:o.groups?[o.groups[0].title]:[],children:(n=o.groups)==null?void 0:n.map((l,p)=>(0,w.jsx)(D.TreeItem,{nodeId:l.title,label:(0,w.jsx)(Ce.Typography,{variant:"h6",children:l.title}),children:l.children.map((R,k)=>{let g=r==null?void 0:r.trim().toLowerCase(),m=typeof R=="number"?e==null?void 0:e[R]:R;return m&&(!g||m.name.toLowerCase().includes(g))?(0,w.jsx)(D.TreeItem,{nodeId:`declaration-${m==null?void 0:m.id}`,label:m.name,onClick:()=>{var B;let s=`#${m.name}`;i({hash:s}),(B=document.querySelector(s))==null||B.scrollIntoView({behavior:"smooth"})}},`secondary-${p}- ${k}`):null})},`primary-${p}`))})})};var he=require("@mui/material"),J=require("@xylabs/react-flexbox");var P=require("react/jsx-runtime"),Ae=({variant:e,group:o,children:r,lookup:t,renderer:i=a,...n})=>(0,P.jsxs)(J.FlexCol,{...n,children:[(0,P.jsxs)(J.FlexRow,{marginY:1,justifyContent:"flex-start",children:[(0,P.jsx)(he.Typography,{variant:e,children:o.title}),(0,P.jsx)(C,{size:"small",variant:"contained",padding:0,marginX:1,src:x(o,t)})]}),x(o,t).map(l=>l?(0,P.jsx)("div",{children:i({lookup:t,margin:1,reflection:l})},l.id):null),r]});var c=require("react/jsx-runtime"),_=({reflection:e,itemRenderer:o=a,hiddenFlags:r,...t})=>{let i=(0,G.useMemo)(()=>T(e),[e]),n=(0,$.useTheme)(),[l,p]=(0,G.useState)(),R=s=>{p(s.target.value)},k=(0,G.useMemo)(()=>{var s;return(s=e.groups)==null?void 0:s.map(B=>(0,c.jsx)(F,{autoScroll:!0,variant:"h6",lookup:i,renderer:o,group:B,reflection:e,alignItems:"stretch",hiddenFlags:r},B.title))},[o,i,e,r]);return(0,c.jsxs)(d.FlexRow,{alignItems:"stretch",justifyContent:"start",sx:{overflowY:"scroll"},...t,children:[(0,c.jsx)(s=>(0,c.jsxs)(d.FlexCol,{...s,children:[(0,c.jsx)($.TextField,{fullWidth:!0,InputProps:{startAdornment:(0,c.jsx)(Fe.Search,{})},onChange:R}),(0,c.jsx)(d.FlexGrowCol,{marginTop:1,alignItems:"stretch",children:(0,c.jsx)(Z,{justifyContent:"flex-start",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",searchTerm:l,hiddenFlags:r,reflection:e,lookup:i,border:`1px solid ${n.palette.grey[300]}`,borderRadius:1,paddingY:1})})]}),{minWidth:320,alignItems:"stretch",justifyContent:"flex-start",overflow:"hidden"}),(0,c.jsx)(s=>(0,c.jsx)(d.FlexGrowCol,{...s,children:(0,c.jsx)(d.FlexGrowCol,{alignItems:"stretch",children:(0,c.jsx)(d.FlexCol,{alignItems:"stretch",justifyContent:"flex-start",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",borderRadius:1,padding:1,border:`1px solid ${n.palette.grey[300]}`,children:k})})}),{marginLeft:1,alignItems:"stretch",justifyContent:"flex-start",overflow:"hidden"})]})};var Te=require("react/jsx-runtime"),Je=({reflection:e,itemRenderer:o=K,...r})=>((0,Pe.assertEx)(e.isProject,()=>"Project expected to be Project"),(0,Te.jsx)(_,{itemRenderer:o,reflection:e,...r}));var Se=require("@mui/material"),be=require("@xylabs/react-flexbox"),X=require("react/jsx-runtime"),$e=({source:e,...o})=>(0,X.jsx)(be.FlexCol,{alignItems:"stretch",...o,children:(0,X.jsx)(Se.Typography,{style:{opacity:.5},variant:"body2",children:(0,X.jsx)("i",{children:e.fileName})})});0&&(module.exports={CommentViewer,ContainerReflectionViewer,DeclarationContainerReflectionViewer,DeclarationReflectionViewer,JsonViewerButton,ProjectReflectionViewer,ProjectTwoPanelReflectionViewer,ReflectionGroupTreeViewer,ReflectionGroupViewer,ReflectionTreeViewer,ReflectionViewer,SomeTypeViewer,SourceViewer,TwoPanelReflectionViewer});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ CommentViewer: () => CommentViewer,
24
+ ContainerReflectionViewer: () => ContainerReflectionViewer,
25
+ DeclarationContainerReflectionViewer: () => DeclarationContainerReflectionViewer,
26
+ DeclarationReflectionViewer: () => DeclarationReflectionViewer,
27
+ JsonViewerButton: () => JsonViewerButton,
28
+ ProjectReflectionViewer: () => ProjectReflectionViewer,
29
+ ProjectTwoPanelReflectionViewer: () => ProjectTwoPanelReflectionViewer,
30
+ ReflectionGroupTreeViewer: () => ReflectionGroupTreeViewer,
31
+ ReflectionGroupViewer: () => ReflectionGroupViewer,
32
+ ReflectionTreeViewer: () => ReflectionTreeViewer,
33
+ ReflectionViewer: () => ReflectionViewer,
34
+ SomeTypeViewer: () => SomeTypeViewer,
35
+ SourceViewer: () => SourceViewer,
36
+ TwoPanelReflectionViewer: () => TwoPanelReflectionViewer
37
+ });
38
+ module.exports = __toCommonJS(src_exports);
39
+
40
+ // src/CommentViewer.tsx
41
+ var import_material = require("@mui/material");
42
+ var import_react_flexbox = require("@xylabs/react-flexbox");
43
+ var import_jsx_runtime = require("react/jsx-runtime");
44
+ var CommentViewer = ({ comment, ...props }) => {
45
+ var _a;
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { alignItems: "stretch", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", children: (_a = comment.summary[0]) == null ? void 0 : _a.text }) });
47
+ };
48
+
49
+ // src/JsonViewerButton.tsx
50
+ var import_material2 = require("@mui/material");
51
+ var import_react_button = require("@xylabs/react-button");
52
+ var import_react_payload_raw_info = require("@xyo-network/react-payload-raw-info");
53
+ var import_react = require("react");
54
+ var import_jsx_runtime2 = require("react/jsx-runtime");
55
+ var JsonViewerButton = ({ jsonViewProps, src, title, ...props }) => {
56
+ const [open, setOpen] = (0, import_react.useState)(false);
57
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
58
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_button.ButtonEx, { onClick: () => setOpen(!open), ...props, children: "JSON" }),
59
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material2.Dialog, { open, onClose: () => setOpen(false), children: [
60
+ title ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.DialogTitle, { children: title }) : null,
61
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.DialogContent, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_payload_raw_info.JsonViewerEx, { value: src, ...jsonViewProps }) }),
62
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.DialogActions, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_button.ButtonEx, { onClick: () => setOpen(false), children: "Close" }) })
63
+ ] })
64
+ ] });
65
+ };
66
+
67
+ // src/ProjectTwoPanelReflectionViewer.tsx
68
+ var import_assert = require("@xylabs/assert");
69
+
70
+ // src/createLookup.ts
71
+ var createLookup = (reflection) => {
72
+ const lookup = {};
73
+ if (reflection.children) for (const item of reflection.children) lookup[item.id] = item;
74
+ return lookup;
75
+ };
76
+
77
+ // src/ReflectionViewer/ReflectionGroupViewer.tsx
78
+ var import_material5 = require("@mui/material");
79
+ var import_react_flexbox4 = require("@xylabs/react-flexbox");
80
+ var import_react2 = require("react");
81
+ var import_react_router_dom = require("react-router-dom");
82
+
83
+ // src/resolveChildren.ts
84
+ var resolveChildren = (reflection, lookup = {}) => {
85
+ var _a;
86
+ return ((_a = reflection.children) == null ? void 0 : _a.map((child) => {
87
+ switch (typeof child) {
88
+ case "object": {
89
+ return child;
90
+ }
91
+ case "number": {
92
+ const childObj = lookup[child];
93
+ if (childObj === void 0) {
94
+ throw new Error(`Child Reference Not Found [${child}]`);
95
+ }
96
+ return childObj;
97
+ }
98
+ default: {
99
+ throw new Error(`Invalid Child Type [${typeof child}, ${child}]`);
100
+ }
101
+ }
102
+ })) ?? [];
103
+ };
104
+
105
+ // src/ReflectionViewer/ReflectionViewer.tsx
106
+ var import_react_flexbox3 = require("@xylabs/react-flexbox");
107
+
108
+ // src/ReflectionViewer/NameViewer.tsx
109
+ var import_material4 = require("@mui/material");
110
+ var import_react_flexbox2 = require("@xylabs/react-flexbox");
111
+
112
+ // src/trimFlagLabel.ts
113
+ var trimFlagLabel = (label) => {
114
+ if (label.startsWith("is")) {
115
+ return label.slice(2);
116
+ }
117
+ return label;
118
+ };
119
+
120
+ // src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx
121
+ var import_material3 = require("@mui/material");
122
+
123
+ // src/ReflectionViewer/SomeTypeViewer/buildArrayString.tsx
124
+ var buildArrayString = (typeObj, reflectionViewer, typeBuilder) => {
125
+ const parts = [];
126
+ const typeString = typeBuilder(typeObj.elementType, reflectionViewer);
127
+ if (typeof typeString === "string") {
128
+ parts.push(typeString);
129
+ }
130
+ parts.push("[]");
131
+ return parts;
132
+ };
133
+
134
+ // src/ReflectionViewer/SomeTypeViewer/buildIntersectionString.tsx
135
+ var buildIntersectionString = (typeObj, reflectionViewer, typeBuilder) => {
136
+ const parts = [];
137
+ if (typeObj.types) {
138
+ parts.push(
139
+ typeObj.types.map((arg) => {
140
+ return typeBuilder(arg, reflectionViewer);
141
+ }).join(" & ")
142
+ );
143
+ }
144
+ return parts;
145
+ };
146
+
147
+ // src/ReflectionViewer/SomeTypeViewer/buildReferenceString.ts
148
+ var buildReferenceString = (typeObj, reflectionViewer, typeBuilder) => {
149
+ const parts = [];
150
+ parts.push(typeObj.name);
151
+ if (typeObj.typeArguments) {
152
+ parts.push(
153
+ "<",
154
+ typeObj.typeArguments.map((arg) => {
155
+ return typeBuilder(arg, reflectionViewer);
156
+ }).join(", "),
157
+ ">"
158
+ );
159
+ }
160
+ return parts;
161
+ };
162
+
163
+ // src/ReflectionViewer/SomeTypeViewer/buildReflectionString.tsx
164
+ var import_jsx_runtime3 = require("react/jsx-runtime");
165
+ var buildRelfectionString = (typeObj, reflectionViewer) => {
166
+ if (typeObj.declaration) {
167
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: reflectionViewer({ reflection: typeObj.declaration }) });
168
+ }
169
+ };
170
+
171
+ // src/ReflectionViewer/SomeTypeViewer/buildUnionString.tsx
172
+ var buildUnionString = (typeObj, reflectionViewer, typeBuilder) => {
173
+ const parts = [];
174
+ if (typeObj.types) {
175
+ parts.push(
176
+ typeObj.types.map((arg) => {
177
+ return typeBuilder(arg, reflectionViewer);
178
+ }).join(" | ")
179
+ );
180
+ }
181
+ return parts;
182
+ };
183
+
184
+ // src/ReflectionViewer/SomeTypeViewer/buildTypeString.tsx
185
+ var buildTypeString = (type, reflectionViewer) => {
186
+ const someType = type;
187
+ const parts = [];
188
+ switch (someType.type) {
189
+ case "intrinsic": {
190
+ parts.push(someType.name);
191
+ break;
192
+ }
193
+ case "intersection": {
194
+ parts.push(...buildIntersectionString(someType, reflectionViewer, buildTypeString));
195
+ break;
196
+ }
197
+ case "literal": {
198
+ parts.push(JSON.stringify(someType.value));
199
+ break;
200
+ }
201
+ case "array": {
202
+ parts.push(...buildArrayString(someType, reflectionViewer, buildTypeString));
203
+ break;
204
+ }
205
+ case "reference": {
206
+ parts.push(...buildReferenceString(someType, reflectionViewer, buildTypeString));
207
+ break;
208
+ }
209
+ case "union": {
210
+ parts.push(...buildUnionString(someType, reflectionViewer, buildTypeString));
211
+ break;
212
+ }
213
+ case "reflection": {
214
+ return buildRelfectionString(someType, reflectionViewer);
215
+ }
216
+ default: {
217
+ parts.push("#", someType.type, "#");
218
+ break;
219
+ }
220
+ }
221
+ return parts.join("");
222
+ };
223
+
224
+ // src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx
225
+ var import_jsx_runtime4 = require("react/jsx-runtime");
226
+ var SomeTypeViewer = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {
227
+ const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : "";
228
+ if (typeof typeReactNode === "string") {
229
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.Typography, { title: "SomeTypeViewer", style: { opacity }, ...props, children: typeReactNode });
230
+ }
231
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: typeReactNode });
232
+ };
233
+
234
+ // src/ReflectionViewer/NameViewer.tsx
235
+ var import_jsx_runtime5 = require("react/jsx-runtime");
236
+ var NameViewer = ({ reflectionViewer, variant, reflection, ...props }) => {
237
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_flexbox2.FlexRow, { justifyContent: "flex-start", ...props, children: [
238
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_flexbox2.FlexRow, { marginRight: 1, children: [
239
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material4.Typography, { variant, noWrap: true, children: [
240
+ reflection.name,
241
+ reflection.type ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: ":\xA0" }) : null
242
+ ] }),
243
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SomeTypeViewer, { reflection, reflectionViewer })
244
+ ] }),
245
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material4.Stack, { direction: "row", spacing: 1, children: [
246
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material4.Chip, { size: "small", label: reflection.kind }),
247
+ reflection.flags ? Object.entries(reflection.flags).map(([flag, value]) => {
248
+ return value ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material4.Chip, { size: "small", label: trimFlagLabel(flag), variant: "outlined" }, flag) : null;
249
+ }) : null
250
+ ] }),
251
+ document && (document == null ? void 0 : document.location.hostname) === "localhost" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(JsonViewerButton, { size: "small", variant: "contained", padding: 0, marginX: 1, src: reflection })
252
+ ] });
253
+ };
254
+
255
+ // src/ReflectionViewer/ReflectionViewer.tsx
256
+ var import_jsx_runtime6 = require("react/jsx-runtime");
257
+ var hide = (flags, hiddenFlags = []) => {
258
+ let hide3 = false;
259
+ hiddenFlags.map((hiddenFlag) => {
260
+ if (flags == null ? void 0 : flags[hiddenFlag]) {
261
+ hide3 = true;
262
+ }
263
+ });
264
+ return hide3;
265
+ };
266
+ var ReflectionViewer = ({ variant, nameViewer, children, reflection, hiddenFlags, ...props }) => {
267
+ var _a;
268
+ const someReflection = reflection;
269
+ return hide(reflection == null ? void 0 : reflection.flags, hiddenFlags) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox3.FlexCol, { title: "ReflectionViewer", alignItems: "stretch", ...props, children: [
270
+ nameViewer === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NameViewer, { marginY: 0.25, variant, reflection: someReflection, reflectionViewer: ReflectionViewer }) : nameViewer,
271
+ reflection.comment ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CommentViewer, { comment: reflection.comment }) : null,
272
+ ((_a = someReflection.parameters) == null ? void 0 : _a.map((parameter) => {
273
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ReflectionViewer, { hiddenFlags, marginY: 0.25, marginX: 1, reflection: parameter }, parameter.id);
274
+ })) ?? null,
275
+ children
276
+ ] });
277
+ };
278
+
279
+ // src/ReflectionViewer/ReflectionGroupViewer.tsx
280
+ var import_jsx_runtime7 = require("react/jsx-runtime");
281
+ var hide2 = (flags, hiddenFlags = []) => {
282
+ let hide3 = false;
283
+ hiddenFlags.map((hiddenFlag) => {
284
+ if (flags == null ? void 0 : flags[hiddenFlag]) {
285
+ hide3 = true;
286
+ }
287
+ });
288
+ return hide3;
289
+ };
290
+ var ReflectionGroupViewer = ({
291
+ autoScroll = false,
292
+ children,
293
+ hiddenFlags,
294
+ group,
295
+ lookup,
296
+ renderer = ReflectionViewer,
297
+ variant,
298
+ ...props
299
+ }) => {
300
+ const resolvedChildren = resolveChildren(group, lookup) ?? [];
301
+ const visibleChildren = hiddenFlags ? resolvedChildren.reduce((acc, item) => {
302
+ return acc + (hide2(item.flags, hiddenFlags) ? 0 : 1);
303
+ }, 0) : 1;
304
+ const { hash } = (0, import_react_router_dom.useLocation)();
305
+ (0, import_react2.useEffect)(() => {
306
+ var _a;
307
+ if (hash && autoScroll) {
308
+ (_a = document.querySelector(hash)) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
309
+ }
310
+ }, [hash, autoScroll]);
311
+ return visibleChildren > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox4.FlexCol, { title: "ReflectionGroupViewer", ...props, children: [
312
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox4.FlexRow, { marginY: 1, justifyContent: "flex-start", children: [
313
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material5.Typography, { variant, children: group.title }),
314
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(JsonViewerButton, { size: "small", variant: "contained", padding: 0, marginX: 1, src: resolveChildren(group, lookup) })
315
+ ] }),
316
+ resolveChildren(group, lookup).map((reflection) => {
317
+ return reflection ? (
318
+ // I wrap this in a div since React does not understand that they have keys using the Renderer
319
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { id: reflection.name, children: renderer({ hiddenFlags, lookup, margin: 1, padding: 1, reflection }) }, reflection.id)
320
+ ) : null;
321
+ }),
322
+ children
323
+ ] }) : null;
324
+ };
325
+
326
+ // src/ReflectionViewer/Container.tsx
327
+ var import_jsx_runtime8 = require("react/jsx-runtime");
328
+ var ContainerReflectionViewer = ({
329
+ children,
330
+ reflection,
331
+ hiddenFlags,
332
+ itemRenderer = ReflectionViewer,
333
+ ...props
334
+ }) => {
335
+ var _a;
336
+ const lookup = createLookup(reflection);
337
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(ReflectionViewer, { title: "ContainerReflectionViewer", sources: true, reflection, lookup, ...props, children: [
338
+ (_a = reflection.groups) == null ? void 0 : _a.map((group) => {
339
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
340
+ ReflectionGroupViewer,
341
+ {
342
+ margin: 1,
343
+ lookup,
344
+ renderer: itemRenderer,
345
+ group,
346
+ reflection,
347
+ hiddenFlags,
348
+ alignItems: "stretch"
349
+ },
350
+ group.title
351
+ );
352
+ }),
353
+ children
354
+ ] });
355
+ };
356
+
357
+ // src/ReflectionViewer/Declaration.tsx
358
+ var import_jsx_runtime9 = require("react/jsx-runtime");
359
+ var DeclarationReflectionViewer = ({ reflection, hiddenFlags, ...props }) => {
360
+ var _a, _b, _c;
361
+ const safeSignatures = (signatures) => {
362
+ return Array.isArray(signatures) ? signatures : signatures ? [signatures] : void 0;
363
+ };
364
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
365
+ ReflectionViewer,
366
+ {
367
+ nameViewer: reflection.signatures || reflection.getSignature || reflection.setSignature ? null : void 0,
368
+ title: "DeclarationReflectionViewer",
369
+ hiddenFlags,
370
+ reflection,
371
+ ...props,
372
+ children: [
373
+ (_a = reflection.signatures) == null ? void 0 : _a.map((signature) => {
374
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ReflectionViewer, { hiddenFlags, reflection: signature }, signature.id);
375
+ }),
376
+ (_b = safeSignatures(reflection.getSignature)) == null ? void 0 : _b.map((signature) => {
377
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ReflectionViewer, { marginX: 1, hiddenFlags, reflection: signature }, signature.id);
378
+ }),
379
+ (_c = safeSignatures(reflection.setSignature)) == null ? void 0 : _c.map((signature) => {
380
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ReflectionViewer, { marginX: 1, hiddenFlags, reflection: signature }, signature.id);
381
+ })
382
+ ]
383
+ }
384
+ );
385
+ };
386
+
387
+ // src/ReflectionViewer/DeclarationContainer.tsx
388
+ var import_material6 = require("@mui/material");
389
+ var import_react_router_dom2 = require("react-router-dom");
390
+ var import_jsx_runtime10 = require("react/jsx-runtime");
391
+ var DeclarationContainerReflectionViewer = ({
392
+ reflection,
393
+ lookup,
394
+ itemRenderer = DeclarationReflectionViewer,
395
+ ...props
396
+ }) => {
397
+ const { hash } = (0, import_react_router_dom2.useLocation)();
398
+ const theme = (0, import_material6.useTheme)();
399
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
400
+ ContainerReflectionViewer,
401
+ {
402
+ title: "DeclarationContainerReflectionViewer",
403
+ paper: hash.slice(1) === reflection.name,
404
+ bgcolor: hash.slice(1) === reflection.name ? theme.palette.background.default : void 0,
405
+ lookup,
406
+ itemRenderer,
407
+ reflection,
408
+ ...props
409
+ }
410
+ );
411
+ };
412
+
413
+ // src/ReflectionViewer/Project.tsx
414
+ var import_react3 = require("react");
415
+ var import_jsx_runtime11 = require("react/jsx-runtime");
416
+ var ProjectReflectionViewer = ({
417
+ reflection,
418
+ hiddenFlags,
419
+ itemRenderer = ReflectionViewer,
420
+ ...props
421
+ }) => {
422
+ const lookup = (0, import_react3.useMemo)(() => createLookup(reflection), [reflection]);
423
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ReflectionViewer, { title: "ProjectReflectionViewer", hiddenFlags, reflection, ...props, children: (0, import_react3.useMemo)(() => {
424
+ var _a;
425
+ return (_a = reflection.groups) == null ? void 0 : _a.map((group) => {
426
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
427
+ ReflectionGroupViewer,
428
+ {
429
+ autoScroll: true,
430
+ variant: "h6",
431
+ lookup,
432
+ renderer: itemRenderer,
433
+ group,
434
+ reflection,
435
+ alignItems: "stretch",
436
+ hiddenFlags
437
+ },
438
+ group.title
439
+ );
440
+ });
441
+ }, [lookup, reflection, hiddenFlags, itemRenderer]) });
442
+ };
443
+
444
+ // src/TwoPanelReflectionViewer.tsx
445
+ var import_icons_material2 = require("@mui/icons-material");
446
+ var import_material9 = require("@mui/material");
447
+ var import_react_flexbox7 = require("@xylabs/react-flexbox");
448
+ var import_react4 = require("react");
449
+
450
+ // src/TreeViewer/Reflection.tsx
451
+ var import_icons_material = require("@mui/icons-material");
452
+ var import_material7 = require("@mui/material");
453
+ var import_x_tree_view = require("@mui/x-tree-view");
454
+ var import_react_flexbox5 = require("@xylabs/react-flexbox");
455
+ var import_react_router_dom3 = require("react-router-dom");
456
+ var import_jsx_runtime12 = require("react/jsx-runtime");
457
+ var ReflectionTreeViewer = ({ lookup, reflection, searchTerm, ...props }) => {
458
+ var _a;
459
+ const navigate = (0, import_react_router_dom3.useNavigate)();
460
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_flexbox5.FlexCol, { alignItems: "stretch", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
461
+ import_x_tree_view.TreeView,
462
+ {
463
+ "aria-label": "XYO SDK Documentation",
464
+ defaultExpandIcon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material.Add, {}),
465
+ defaultCollapseIcon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material.Remove, {}),
466
+ defaultExpanded: reflection.groups ? [reflection.groups[0].title] : [],
467
+ children: (_a = reflection.groups) == null ? void 0 : _a.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_x_tree_view.TreeItem, { nodeId: group.title, label: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material7.Typography, { variant: "h6", children: group.title }), children: group.children.map((child, jndex) => {
468
+ const searchTermTrimmed = searchTerm == null ? void 0 : searchTerm.trim().toLowerCase();
469
+ const childReflection = typeof child === "number" ? lookup == null ? void 0 : lookup[child] : child;
470
+ return childReflection && (!searchTermTrimmed || childReflection.name.toLowerCase().includes(searchTermTrimmed)) ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
471
+ import_x_tree_view.TreeItem,
472
+ {
473
+ nodeId: `declaration-${childReflection == null ? void 0 : childReflection.id}`,
474
+ label: childReflection.name,
475
+ onClick: () => {
476
+ var _a2;
477
+ const hash = `#${childReflection.name}`;
478
+ navigate({ hash });
479
+ (_a2 = document.querySelector(hash)) == null ? void 0 : _a2.scrollIntoView({ behavior: "smooth" });
480
+ }
481
+ },
482
+ `secondary-${index}- ${jndex}`
483
+ ) : null;
484
+ }) }, `primary-${index}`))
485
+ }
486
+ ) });
487
+ };
488
+
489
+ // src/TreeViewer/ReflectionGroup.tsx
490
+ var import_material8 = require("@mui/material");
491
+ var import_react_flexbox6 = require("@xylabs/react-flexbox");
492
+ var import_jsx_runtime13 = require("react/jsx-runtime");
493
+ var ReflectionGroupTreeViewer = ({
494
+ variant,
495
+ group,
496
+ children,
497
+ lookup,
498
+ renderer = ReflectionViewer,
499
+ ...props
500
+ }) => {
501
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react_flexbox6.FlexCol, { ...props, children: [
502
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react_flexbox6.FlexRow, { marginY: 1, justifyContent: "flex-start", children: [
503
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material8.Typography, { variant, children: group.title }),
504
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(JsonViewerButton, { size: "small", variant: "contained", padding: 0, marginX: 1, src: resolveChildren(group, lookup) })
505
+ ] }),
506
+ resolveChildren(group, lookup).map((reflection) => {
507
+ return reflection ? (
508
+ // I wrap this in a div since React does not understand that they have keys using the Renderer
509
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: renderer({ lookup, margin: 1, reflection }) }, reflection.id)
510
+ ) : null;
511
+ }),
512
+ children
513
+ ] });
514
+ };
515
+
516
+ // src/TwoPanelReflectionViewer.tsx
517
+ var import_jsx_runtime14 = require("react/jsx-runtime");
518
+ var TwoPanelReflectionViewer = ({
519
+ reflection,
520
+ itemRenderer = ReflectionViewer,
521
+ hiddenFlags,
522
+ ...props
523
+ }) => {
524
+ const lookup = (0, import_react4.useMemo)(() => createLookup(reflection), [reflection]);
525
+ const theme = (0, import_material9.useTheme)();
526
+ const [searchTerm, setSearchTerm] = (0, import_react4.useState)();
527
+ const onSearchTermChange = (e) => {
528
+ setSearchTerm(e.target.value);
529
+ };
530
+ const reflectionGroups = (0, import_react4.useMemo)(() => {
531
+ var _a;
532
+ return (_a = reflection.groups) == null ? void 0 : _a.map((group) => {
533
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
534
+ ReflectionGroupViewer,
535
+ {
536
+ autoScroll: true,
537
+ variant: "h6",
538
+ lookup,
539
+ renderer: itemRenderer,
540
+ group,
541
+ reflection,
542
+ alignItems: "stretch",
543
+ hiddenFlags
544
+ },
545
+ group.title
546
+ );
547
+ });
548
+ }, [itemRenderer, lookup, reflection, hiddenFlags]);
549
+ const NavigationCol = (props2) => {
550
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react_flexbox7.FlexCol, { ...props2, children: [
551
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
552
+ import_material9.TextField,
553
+ {
554
+ fullWidth: true,
555
+ InputProps: {
556
+ startAdornment: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons_material2.Search, {})
557
+ },
558
+ onChange: onSearchTermChange
559
+ }
560
+ ),
561
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_flexbox7.FlexGrowCol, { marginTop: 1, alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
562
+ ReflectionTreeViewer,
563
+ {
564
+ justifyContent: "flex-start",
565
+ position: "absolute",
566
+ top: 0,
567
+ left: 0,
568
+ right: 0,
569
+ bottom: 0,
570
+ overflow: "scroll",
571
+ searchTerm,
572
+ hiddenFlags,
573
+ reflection,
574
+ lookup,
575
+ border: `1px solid ${theme.palette.grey["300"]}`,
576
+ borderRadius: 1,
577
+ paddingY: 1
578
+ }
579
+ ) })
580
+ ] });
581
+ };
582
+ const DetailsCol = (props2) => {
583
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_flexbox7.FlexGrowCol, { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_flexbox7.FlexGrowCol, { alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
584
+ import_react_flexbox7.FlexCol,
585
+ {
586
+ alignItems: "stretch",
587
+ justifyContent: "flex-start",
588
+ position: "absolute",
589
+ top: 0,
590
+ left: 0,
591
+ right: 0,
592
+ bottom: 0,
593
+ overflow: "scroll",
594
+ borderRadius: 1,
595
+ padding: 1,
596
+ border: `1px solid ${theme.palette.grey["300"]}`,
597
+ children: reflectionGroups
598
+ }
599
+ ) }) });
600
+ };
601
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react_flexbox7.FlexRow, { alignItems: "stretch", justifyContent: "start", sx: { overflowY: "scroll" }, ...props, children: [
602
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(NavigationCol, { minWidth: 320, alignItems: "stretch", justifyContent: "flex-start", overflow: "hidden" }),
603
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DetailsCol, { marginLeft: 1, alignItems: "stretch", justifyContent: "flex-start", overflow: "hidden" })
604
+ ] });
605
+ };
606
+
607
+ // src/ProjectTwoPanelReflectionViewer.tsx
608
+ var import_jsx_runtime15 = require("react/jsx-runtime");
609
+ var ProjectTwoPanelReflectionViewer = ({
610
+ reflection,
611
+ itemRenderer = DeclarationContainerReflectionViewer,
612
+ ...props
613
+ }) => {
614
+ (0, import_assert.assertEx)(reflection.isProject, () => "Project expected to be Project");
615
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TwoPanelReflectionViewer, { itemRenderer, reflection, ...props });
616
+ };
617
+
618
+ // src/SourceViewer.tsx
619
+ var import_material10 = require("@mui/material");
620
+ var import_react_flexbox8 = require("@xylabs/react-flexbox");
621
+ var import_jsx_runtime16 = require("react/jsx-runtime");
622
+ var SourceViewer = ({ source, ...props }) => {
623
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_flexbox8.FlexCol, { alignItems: "stretch", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_material10.Typography, { style: { opacity: 0.5 }, variant: "body2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { children: source.fileName }) }) });
624
+ };
625
+ // Annotate the CommonJS export names for ESM import in node:
626
+ 0 && (module.exports = {
627
+ CommentViewer,
628
+ ContainerReflectionViewer,
629
+ DeclarationContainerReflectionViewer,
630
+ DeclarationReflectionViewer,
631
+ JsonViewerButton,
632
+ ProjectReflectionViewer,
633
+ ProjectTwoPanelReflectionViewer,
634
+ ReflectionGroupTreeViewer,
635
+ ReflectionGroupViewer,
636
+ ReflectionTreeViewer,
637
+ ReflectionViewer,
638
+ SomeTypeViewer,
639
+ SourceViewer,
640
+ TwoPanelReflectionViewer
641
+ });
2
642
  //# sourceMappingURL=index.cjs.map