@xyo-network/react-typedoc 2.41.37 → 2.41.39

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.
Files changed (33) hide show
  1. package/README.md +4 -61
  2. package/dist/cjs/JsonViewerButton.js +1 -1
  3. package/dist/cjs/JsonViewerButton.js.map +1 -1
  4. package/dist/cjs/ReflectionViewer/ReflectionGroupViewer.js +1 -1
  5. package/dist/cjs/ReflectionViewer/ReflectionGroupViewer.js.map +1 -1
  6. package/dist/cjs/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.js +1 -1
  7. package/dist/cjs/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.js.map +1 -1
  8. package/dist/docs.json +153 -153
  9. package/dist/esm/JsonViewerButton.js +1 -1
  10. package/dist/esm/JsonViewerButton.js.map +1 -1
  11. package/dist/esm/ReflectionViewer/ReflectionGroupViewer.js +1 -1
  12. package/dist/esm/ReflectionViewer/ReflectionGroupViewer.js.map +1 -1
  13. package/dist/esm/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.js +1 -1
  14. package/dist/esm/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.js.map +1 -1
  15. package/dist/types/JsonViewerButton.d.ts +1 -1
  16. package/dist/types/JsonViewerButton.d.ts.map +1 -1
  17. package/dist/types/ReflectionViewer/NameViewer.d.ts +1 -1
  18. package/dist/types/ReflectionViewer/NameViewer.d.ts.map +1 -1
  19. package/dist/types/ReflectionViewer/ReflectionGroupViewer.d.ts +2 -2
  20. package/dist/types/ReflectionViewer/ReflectionGroupViewer.d.ts.map +1 -1
  21. package/dist/types/ReflectionViewer/ReflectionViewerProps.d.ts +3 -3
  22. package/dist/types/ReflectionViewer/ReflectionViewerProps.d.ts.map +1 -1
  23. package/dist/types/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.ts +1 -1
  24. package/dist/types/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.d.ts.map +1 -1
  25. package/dist/types/TreeViewer/Reflection.d.ts +2 -2
  26. package/dist/types/TreeViewer/Reflection.d.ts.map +1 -1
  27. package/package.json +8 -8
  28. package/src/JsonViewerButton.tsx +2 -2
  29. package/src/ReflectionViewer/NameViewer.tsx +1 -1
  30. package/src/ReflectionViewer/ReflectionGroupViewer.tsx +6 -6
  31. package/src/ReflectionViewer/ReflectionViewerProps.tsx +3 -3
  32. package/src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx +2 -2
  33. package/src/TreeViewer/Reflection.tsx +2 -2
@@ -3,7 +3,7 @@ import { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material
3
3
  import { ButtonEx } from '@xylabs/react-button';
4
4
  import { lazy, Suspense, useState } from 'react';
5
5
  const JsonView = lazy(() => import(/* webpackChunkName: "jsonView" */ 'react-json-view'));
6
- export const JsonViewerButton = ({ title, src, jsonViewProps, ...props }) => {
6
+ export const JsonViewerButton = ({ jsonViewProps, src, title, ...props }) => {
7
7
  const [open, setOpen] = useState(false);
8
8
  return (_jsxs(_Fragment, { children: [_jsx(ButtonEx, { onClick: () => setOpen(!open), ...props, children: "JSON" }), _jsxs(Dialog, { open: open, onClose: () => setOpen(false), children: [title ? _jsx(DialogTitle, { children: title }) : null, _jsx(DialogContent, { children: _jsx(Suspense, { fallback: _jsx("div", {}), children: _jsx(JsonView, { src: src, ...jsonViewProps }) }) }), _jsx(DialogActions, { children: _jsx(ButtonEx, { onClick: () => setOpen(false), children: "Close" }) })] })] }));
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"JsonViewerButton.js","sourceRoot":"","sources":["../../src/JsonViewerButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACjF,OAAO,EAAE,QAAQ,EAAiB,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGhD,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GAAG,EAAE,CAAC,MAAM,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,CAAC,CAAA;AAOzF,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3G,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACvC,OAAO,CACL,8BACE,KAAC,QAAQ,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAM,KAAK,qBAEvC,EACX,MAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,aAC9C,KAAK,CAAC,CAAC,CAAC,KAAC,WAAW,cAAE,KAAK,GAAe,CAAC,CAAC,CAAC,IAAI,EAClD,KAAC,aAAa,cACZ,KAAC,QAAQ,IAAC,QAAQ,EAAE,eAAO,YACzB,KAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,KAAM,aAAa,GAAI,GAChC,GACG,EAChB,KAAC,aAAa,cACZ,KAAC,QAAQ,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,sBAAkB,GAC3C,IACT,IACR,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -6,7 +6,7 @@ import { useLocation } from 'react-router-dom';
6
6
  import { JsonViewerButton } from '../JsonViewerButton';
7
7
  import { resolveChildren } from '../resolveChildren';
8
8
  import { ReflectionViewer } from './ReflectionViewer';
9
- export const ReflectionGroupViewer = ({ variant, group, children, lookup, autoscroll = false, renderer = ReflectionViewer, hiddenFlags, ...props }) => {
9
+ export const ReflectionGroupViewer = ({ autoscroll = false, children, hiddenFlags, group, lookup, renderer = ReflectionViewer, variant, ...props }) => {
10
10
  const hide = (flags, hiddenFlags = []) => {
11
11
  let hide = false;
12
12
  hiddenFlags.map((hiddenFlag) => {
@@ -1 +1 @@
1
- {"version":3,"file":"ReflectionGroupViewer.js","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionGroupViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAUrD,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,OAAO,EACP,KAAK,EACL,QAAQ,EACR,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,QAAQ,GAAG,gBAAgB,EAC3B,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,CAAC,KAAuB,EAAE,cAA4B,EAAE,EAAE,EAAE;QACvE,IAAI,IAAI,GAAG,KAAK,CAAA;QAChB,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAC7B,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE;gBACvB,IAAI,GAAG,IAAI,CAAA;aACZ;QACH,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;IAED,MAAM,gBAAgB,GAAG,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAA;IAE7D,MAAM,eAAe,GAAG,WAAW;QACjC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACpC,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,I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AAW,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,IADxC,UAAU,CAAC,EAAE,CAEtC,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;YACV,CAAC,CAAC,EACD,QAAQ,IACD,CACX,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Typography } from '@mui/material';
3
3
  import { buildTypeString } from './buildTypeString';
4
- export const SomeTypeViewer = ({ reflectionViewer, opacity = 0.5, reflection, ...props }) => {
4
+ export const SomeTypeViewer = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {
5
5
  const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : '';
6
6
  if (typeof typeReactNode === 'string') {
7
7
  return (_jsx(Typography, { title: "SomeTypeViewer", style: { opacity }, ...props, children: typeReactNode }));
@@ -1 +1 @@
1
- {"version":3,"file":"SomeTypeViewer.js","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAA;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAQnD,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAAE,gBAAgB,EAAE,OAAO,GAAG,GAAG,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACzH,MAAM,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC/F,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACrC,OAAO,CACL,KAAC,UAAU,IAAC,KAAK,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAM,KAAK,YAC7D,aAAa,GACH,CACd,CAAA;KACF;IACD,OAAO,4BAAG,aAAa,GAAI,CAAA;AAC7B,CAAC,CAAA"}
1
+ {"version":3,"file":"SomeTypeViewer.js","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAA;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAQnD,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAAE,OAAO,GAAG,GAAG,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACzH,MAAM,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC/F,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACrC,OAAO,CACL,KAAC,UAAU,IAAC,KAAK,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAM,KAAK,YAC7D,aAAa,GACH,CACd,CAAA;KACF;IACD,OAAO,4BAAG,aAAa,GAAI,CAAA;AAC7B,CAAC,CAAA"}
@@ -2,8 +2,8 @@
2
2
  import { ButtonExProps } from '@xylabs/react-button';
3
3
  import { ReactJsonViewProps } from 'react-json-view';
4
4
  export interface JsonViewerButtonProps extends ButtonExProps {
5
- src: object;
6
5
  jsonViewProps?: Partial<ReactJsonViewProps>;
6
+ src: object;
7
7
  }
8
8
  export declare const JsonViewerButton: React.FC<JsonViewerButtonProps>;
9
9
  //# sourceMappingURL=JsonViewerButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JsonViewerButton.d.ts","sourceRoot":"","sources":["../../src/JsonViewerButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAIpD,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAC5C;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoB5D,CAAA"}
1
+ {"version":3,"file":"JsonViewerButton.d.ts","sourceRoot":"","sources":["../../src/JsonViewerButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAIpD,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAC3C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoB5D,CAAA"}
@@ -5,8 +5,8 @@ import { SomeReflection } from '../SomeReflection';
5
5
  import { ReflectionViewerProps } from './ReflectionViewerProps';
6
6
  export interface NameViewerProps extends FlexBoxProps {
7
7
  reflection: SomeReflection;
8
- variant?: TypographyVariant;
9
8
  reflectionViewer: React.FC<ReflectionViewerProps>;
9
+ variant?: TypographyVariant;
10
10
  }
11
11
  export declare const NameViewer: React.FC<NameViewerProps>;
12
12
  //# sourceMappingURL=NameViewer.d.ts.map
@@ -1 +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,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;CAClD;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuBhD,CAAA"}
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"}
@@ -2,10 +2,10 @@
2
2
  import { ContainerReflection, ReflectionGroup } from 'typedoc';
3
3
  import { ReflectionViewerProps } from './ReflectionViewerProps';
4
4
  export interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {
5
+ autoscroll?: boolean;
6
+ group: ReflectionGroup;
5
7
  reflection: ContainerReflection;
6
8
  renderer?: React.FC<ReflectionViewerProps>;
7
- group: ReflectionGroup;
8
- autoscroll?: boolean;
9
9
  }
10
10
  export declare const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps>;
11
11
  //# sourceMappingURL=ReflectionGroupViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReflectionGroupViewer.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionGroupViewer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,mBAAmB,EAAmB,eAAe,EAAE,MAAM,SAAS,CAAA;AAK/E,OAAO,EAAc,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE3E,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB,CAAC,mBAAmB,CAAC;IAC5F,UAAU,EAAE,mBAAmB,CAAA;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;IAC1C,KAAK,EAAE,eAAe,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA0DtE,CAAA"}
1
+ {"version":3,"file":"ReflectionGroupViewer.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionGroupViewer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,mBAAmB,EAAmB,eAAe,EAAE,MAAM,SAAS,CAAA;AAK/E,OAAO,EAAc,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE3E,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB,CAAC,mBAAmB,CAAC;IAC5F,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,eAAe,CAAA;IACtB,UAAU,EAAE,mBAAmB,CAAA;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;CAC3C;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA0DtE,CAAA"}
@@ -5,10 +5,10 @@ import { Reflection } from 'typedoc';
5
5
  import { ReflectionLookup } from '../ReflectionLookup';
6
6
  export type FlagFilter = 'isPublic' | 'isPrivate' | 'isProtected';
7
7
  export interface ReflectionViewerProps<T extends Reflection = Reflection> extends FlexBoxProps {
8
- reflection: T;
9
- nameViewer?: ReactElement | null;
10
- lookup?: ReflectionLookup;
11
8
  hiddenFlags?: FlagFilter[];
9
+ lookup?: ReflectionLookup;
10
+ nameViewer?: ReactElement | null;
11
+ reflection: T;
12
12
  sources?: boolean;
13
13
  variant?: TypographyVariant;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ReflectionViewerProps.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionViewerProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAA;AAEjE,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,YAAY;IAC5F,UAAU,EAAE,CAAC,CAAA;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B"}
1
+ {"version":3,"file":"ReflectionViewerProps.d.ts","sourceRoot":"","sources":["../../../src/ReflectionViewer/ReflectionViewerProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAA;AAEjE,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,YAAY;IAC5F,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,UAAU,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAChC,UAAU,EAAE,CAAC,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B"}
@@ -3,8 +3,8 @@ import { TypographyProps } from '@mui/material';
3
3
  import { SomeReflection } from '../../SomeReflection';
4
4
  import { ReflectionViewerProps } from '../ReflectionViewerProps';
5
5
  export interface SomeTypeViewerProps extends TypographyProps {
6
- reflection: SomeReflection;
7
6
  opacity?: number;
7
+ reflection: SomeReflection;
8
8
  reflectionViewer: React.FC<ReflectionViewerProps>;
9
9
  }
10
10
  export declare const SomeTypeViewer: React.FC<SomeTypeViewerProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"SomeTypeViewer.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAGhE,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,UAAU,EAAE,cAAc,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;CAClD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
1
+ {"version":3,"file":"SomeTypeViewer.d.ts","sourceRoot":"","sources":["../../../../src/ReflectionViewer/SomeTypeViewer/SomeTypeViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAGhE,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,cAAc,CAAA;IAC1B,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAA;CAClD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
@@ -4,9 +4,9 @@ import { ContainerReflection, Reflection } from 'typedoc';
4
4
  import { ReflectionLookup } from '../ReflectionLookup';
5
5
  import { FlagFilter } from '../ReflectionViewer';
6
6
  export interface ReflectionTreeViewerProps<T extends Reflection = ContainerReflection> extends FlexBoxProps {
7
- reflection: T;
8
- lookup?: ReflectionLookup;
9
7
  hiddenFlags?: FlagFilter[];
8
+ lookup?: ReflectionLookup;
9
+ reflection: T;
10
10
  searchTerm?: string;
11
11
  }
12
12
  export declare const ReflectionTreeViewer: React.FC<ReflectionTreeViewerProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Reflection.d.ts","sourceRoot":"","sources":["../../../src/TreeViewer/Reflection.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU,GAAG,mBAAmB,CAAE,SAAQ,YAAY;IACzG,UAAU,EAAE,CAAC,CAAA;IACb,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4CpE,CAAA"}
1
+ {"version":3,"file":"Reflection.d.ts","sourceRoot":"","sources":["../../../src/TreeViewer/Reflection.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,UAAU,GAAG,mBAAmB,CAAE,SAAQ,YAAY;IACzG,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,UAAU,EAAE,CAAC,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4CpE,CAAA"}
package/package.json CHANGED
@@ -10,18 +10,18 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@mui/lab": "^5.0.0-alpha.117",
13
+ "@mui/lab": "^5.0.0-alpha.118",
14
14
  "@xylabs/assert": "^2.6.16",
15
- "@xylabs/react-button": "^2.15.11",
16
- "@xylabs/react-flexbox": "^2.15.11",
15
+ "@xylabs/react-button": "^2.15.12",
16
+ "@xylabs/react-flexbox": "^2.15.12",
17
17
  "react-json-view": "^1.21.3",
18
18
  "typedoc": "^0.23.24",
19
- "typescript": "^4.9.4"
19
+ "typescript": "^4.9.5"
20
20
  },
21
21
  "devDependencies": {
22
- "@storybook/react": "^6.5.15",
23
- "@xylabs/ts-scripts-yarn3": "2.12.26",
24
- "@xyo-network/core": "^2.43.13",
22
+ "@storybook/react": "^6.5.16",
23
+ "@xylabs/ts-scripts-yarn3": "2.12.29",
24
+ "@xyo-network/core": "^2.43.22",
25
25
  "require-from-string": "^2.0.2"
26
26
  },
27
27
  "peerDependencies": {
@@ -74,5 +74,5 @@
74
74
  },
75
75
  "sideEffects": false,
76
76
  "types": "dist/types/index.d.ts",
77
- "version": "2.41.37"
77
+ "version": "2.41.39"
78
78
  }
@@ -6,11 +6,11 @@ import { ReactJsonViewProps } from 'react-json-view'
6
6
  const JsonView = lazy(() => import(/* webpackChunkName: "jsonView" */ 'react-json-view'))
7
7
 
8
8
  export interface JsonViewerButtonProps extends ButtonExProps {
9
- src: object
10
9
  jsonViewProps?: Partial<ReactJsonViewProps>
10
+ src: object
11
11
  }
12
12
 
13
- export const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({ title, src, jsonViewProps, ...props }) => {
13
+ export const JsonViewerButton: React.FC<JsonViewerButtonProps> = ({ jsonViewProps, src, title, ...props }) => {
14
14
  const [open, setOpen] = useState(false)
15
15
  return (
16
16
  <>
@@ -9,8 +9,8 @@ import { SomeTypeViewer } from './SomeTypeViewer'
9
9
 
10
10
  export interface NameViewerProps extends FlexBoxProps {
11
11
  reflection: SomeReflection
12
- variant?: TypographyVariant
13
12
  reflectionViewer: React.FC<ReflectionViewerProps>
13
+ variant?: TypographyVariant
14
14
  }
15
15
 
16
16
  export const NameViewer: React.FC<NameViewerProps> = ({ reflectionViewer, variant, reflection, ...props }) => {
@@ -10,20 +10,20 @@ import { ReflectionViewer } from './ReflectionViewer'
10
10
  import { FlagFilter, ReflectionViewerProps } from './ReflectionViewerProps'
11
11
 
12
12
  export interface ReflectionGroupViewerProps extends ReflectionViewerProps<ContainerReflection> {
13
+ autoscroll?: boolean
14
+ group: ReflectionGroup
13
15
  reflection: ContainerReflection
14
16
  renderer?: React.FC<ReflectionViewerProps>
15
- group: ReflectionGroup
16
- autoscroll?: boolean
17
17
  }
18
18
 
19
19
  export const ReflectionGroupViewer: React.FC<ReflectionGroupViewerProps> = ({
20
- variant,
21
- group,
20
+ autoscroll = false,
22
21
  children,
22
+ hiddenFlags,
23
+ group,
23
24
  lookup,
24
- autoscroll = false,
25
25
  renderer = ReflectionViewer,
26
- hiddenFlags,
26
+ variant,
27
27
  ...props
28
28
  }) => {
29
29
  const hide = (flags?: ReflectionFlags, hiddenFlags: FlagFilter[] = []) => {
@@ -8,10 +8,10 @@ import { ReflectionLookup } from '../ReflectionLookup'
8
8
  export type FlagFilter = 'isPublic' | 'isPrivate' | 'isProtected'
9
9
 
10
10
  export interface ReflectionViewerProps<T extends Reflection = Reflection> extends FlexBoxProps {
11
- reflection: T
12
- nameViewer?: ReactElement | null
13
- lookup?: ReflectionLookup
14
11
  hiddenFlags?: FlagFilter[]
12
+ lookup?: ReflectionLookup
13
+ nameViewer?: ReactElement | null
14
+ reflection: T
15
15
  sources?: boolean
16
16
  variant?: TypographyVariant
17
17
  }
@@ -5,12 +5,12 @@ import { ReflectionViewerProps } from '../ReflectionViewerProps'
5
5
  import { buildTypeString } from './buildTypeString'
6
6
 
7
7
  export interface SomeTypeViewerProps extends TypographyProps {
8
- reflection: SomeReflection
9
8
  opacity?: number
9
+ reflection: SomeReflection
10
10
  reflectionViewer: React.FC<ReflectionViewerProps>
11
11
  }
12
12
 
13
- export const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({ reflectionViewer, opacity = 0.5, reflection, ...props }) => {
13
+ export const SomeTypeViewer: React.FC<SomeTypeViewerProps> = ({ opacity = 0.5, reflection, reflectionViewer, ...props }) => {
14
14
  const typeReactNode = reflection.type ? buildTypeString(reflection.type, reflectionViewer) : ''
15
15
  if (typeof typeReactNode === 'string') {
16
16
  return (
@@ -9,9 +9,9 @@ import { ReflectionLookup } from '../ReflectionLookup'
9
9
  import { FlagFilter } from '../ReflectionViewer'
10
10
 
11
11
  export interface ReflectionTreeViewerProps<T extends Reflection = ContainerReflection> extends FlexBoxProps {
12
- reflection: T
13
- lookup?: ReflectionLookup
14
12
  hiddenFlags?: FlagFilter[]
13
+ lookup?: ReflectionLookup
14
+ reflection: T
15
15
  searchTerm?: string
16
16
  }
17
17