quidproquo-web-admin 0.1.8 → 0.1.10

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.
@@ -18,7 +18,8 @@ const LogSummaryDetails = ({ log }) => {
18
18
  const functionKey = log.qpqFunctionRuntimeInfo
19
19
  ? (0, quidproquo_core_1.getFederatedKeyFromQpqFunctionRuntime)(log.qpqFunctionRuntimeInfo)
20
20
  : runtimeTypeToCamelCase(log.runtimeType);
21
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { alignItems: "center", display: "flex", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { gutterBottom: true, variant: "h5", children: [log.runtimeType, " - ", log.moduleName] }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => setExpanded(!expanded), size: "small", children: expanded ? (0, jsx_runtime_1.jsx)(ExpandLess_1.default, {}) : (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }) })] }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: [(0, jsx_runtime_1.jsxs)("div", { style: AnyVariableView_1.genericFunctionRendererStyles.commentBlock, children: [(0, jsx_runtime_1.jsx)("div", { children: '// //////////////////////////////////////////////////////' }), (0, jsx_runtime_1.jsxs)("div", { children: ['// src: ', functionKey] }), log.fromCorrelation && ((0, jsx_runtime_1.jsxs)("div", { children: ['// Caller: ', log.fromCorrelation] })), (0, jsx_runtime_1.jsxs)("div", { children: ['// Total Runtime: ', (0, jsx_runtime_1.jsxs)("span", { style: AnyVariableView_1.genericFunctionRendererStyles.highlightComment, children: [totalRuntime, " ms"] })] }), (0, jsx_runtime_1.jsx)("div", { children: '// //////////////////////////////////////////////////////' })] }), (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { args: log.input, expanded: expanded, functionName: functionKey.split('::').pop() || 'unknown' })] }) })] }));
21
+ const basePath = log.qpqFunctionRuntimeInfo && (0, quidproquo_core_1.isQpqFunctionRuntimeAdvanced)(log.qpqFunctionRuntimeInfo) ? log.qpqFunctionRuntimeInfo.basePath : undefined;
22
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { alignItems: "center", display: "flex", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { gutterBottom: true, variant: "h5", children: [log.runtimeType, " - ", log.moduleName] }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => setExpanded(!expanded), size: "small", children: expanded ? (0, jsx_runtime_1.jsx)(ExpandLess_1.default, {}) : (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }) })] }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("pre", { style: AnyVariableView_1.genericFunctionRendererStyles.pre, children: [(0, jsx_runtime_1.jsxs)("div", { style: AnyVariableView_1.genericFunctionRendererStyles.commentBlock, children: [(0, jsx_runtime_1.jsx)("div", { children: '// //////////////////////////////////////////////////////' }), (0, jsx_runtime_1.jsxs)("div", { children: ['// src: ', functionKey] }), basePath && ((0, jsx_runtime_1.jsxs)("div", { children: ['// basePath: ', basePath] })), log.fromCorrelation && ((0, jsx_runtime_1.jsxs)("div", { children: ['// Caller: ', log.fromCorrelation] })), (0, jsx_runtime_1.jsxs)("div", { children: ['// Total Runtime: ', (0, jsx_runtime_1.jsxs)("span", { style: AnyVariableView_1.genericFunctionRendererStyles.highlightComment, children: [totalRuntime, " ms"] })] }), (0, jsx_runtime_1.jsx)("div", { children: '// //////////////////////////////////////////////////////' })] }), (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { args: log.input, expanded: expanded, functionName: functionKey.split('::').pop() || 'unknown' })] }) })] }));
22
23
  };
23
24
  exports.LogSummaryDetails = LogSummaryDetails;
24
25
  //# sourceMappingURL=LogSummaryDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogSummaryDetails.js","sourceRoot":"","sources":["../../../src/LogViewer/LogSummaryDetails.tsx"],"names":[],"mappings":";;;;;;;AAAA,qDAAqF;AAErF,iCAAiC;AACjC,gFAA4D;AAC5D,gFAA4D;AAC5D,4CAAqE;AAErE,8FAAkI;AAMlI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAU,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAEtI,MAAM,iBAAiB,GAAG,CAAC,EAAE,GAAG,EAA0B,EAAE,EAAE;IACnE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5F,MAAM,WAAW,GAAG,GAAG,CAAC,sBAAsB;QAC5C,CAAC,CAAC,IAAA,uDAAqC,EAAC,GAAG,CAAC,sBAAsB,CAAC;QACnE,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,wBAAC,cAAG,IAAC,UAAU,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,aACrC,wBAAC,qBAAU,IAAC,YAAY,QAAC,OAAO,EAAC,IAAI,aAClC,GAAG,CAAC,WAAW,SAAK,GAAG,CAAC,UAAU,IACxB,EACb,uBAAC,kBAAO,IAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,YAC9C,uBAAC,qBAAU,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAC,OAAO,YAC5D,QAAQ,CAAC,CAAC,CAAC,uBAAC,oBAAc,KAAG,CAAC,CAAC,CAAC,uBAAC,oBAAc,KAAG,GACxC,GACL,IACN,EACN,0CACE,iCAAK,KAAK,EAAE,+CAA6B,CAAC,GAAG,aAC3C,iCAAK,KAAK,EAAE,+CAA6B,CAAC,YAAY,aACpD,0CAAM,2DAA2D,GAAO,EACxE,4CACG,UAAU,EACV,WAAW,IACR,EACL,GAAG,CAAC,eAAe,IAAI,CACtB,4CACG,aAAa,EACb,GAAG,CAAC,eAAe,IAChB,CACP,EACD,4CACG,oBAAoB,EACrB,kCAAM,KAAK,EAAE,+CAA6B,CAAC,gBAAgB,aAAG,YAAY,WAAW,IACjF,EACN,0CAAM,2DAA2D,GAAO,IACpE,EACN,uBAAC,yCAAuB,IAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,SAAS,GAAI,IACtH,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC;AA7CW,QAAA,iBAAiB,qBA6C5B","sourcesContent":["import { getFederatedKeyFromQpqFunctionRuntime, StoryResult } from 'quidproquo-core';\n\nimport { useState } from 'react';\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport { Box, IconButton, Tooltip, Typography } from '@mui/material';\n\nimport { GenericFunctionRenderer, genericFunctionRendererStyles } from './actionComponents/genericActionRenderer/AnyVariableView';\n\ninterface LogSummaryDetailsProps {\n log: StoryResult<any>;\n}\n\nconst runtimeTypeToCamelCase = (runtimeType: string): string => runtimeType.toLowerCase().replace(/_(\\w)/g, (_, char) => char.toUpperCase());\n\nexport const LogSummaryDetails = ({ log }: LogSummaryDetailsProps) => {\n const [expanded, setExpanded] = useState(false);\n\n const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();\n const functionKey = log.qpqFunctionRuntimeInfo\n ? getFederatedKeyFromQpqFunctionRuntime(log.qpqFunctionRuntimeInfo)\n : runtimeTypeToCamelCase(log.runtimeType);\n\n return (\n <>\n <Box alignItems=\"center\" display=\"flex\">\n <Typography gutterBottom variant=\"h5\">\n {log.runtimeType} - {log.moduleName}\n </Typography>\n <Tooltip title={expanded ? 'Collapse' : 'Expand'}>\n <IconButton onClick={() => setExpanded(!expanded)} size=\"small\">\n {expanded ? <ExpandLessIcon /> : <ExpandMoreIcon />}\n </IconButton>\n </Tooltip>\n </Box>\n <div>\n <pre style={genericFunctionRendererStyles.pre}>\n <div style={genericFunctionRendererStyles.commentBlock}>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n <div>\n {'// src: '}\n {functionKey}\n </div>\n {log.fromCorrelation && (\n <div>\n {'// Caller: '}\n {log.fromCorrelation}\n </div>\n )}\n <div>\n {'// Total Runtime: '}\n <span style={genericFunctionRendererStyles.highlightComment}>{totalRuntime} ms</span>\n </div>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n </div>\n <GenericFunctionRenderer args={log.input} expanded={expanded} functionName={functionKey.split('::').pop() || 'unknown'} />\n </pre>\n </div>\n </>\n );\n};\n"]}
1
+ {"version":3,"file":"LogSummaryDetails.js","sourceRoot":"","sources":["../../../src/LogViewer/LogSummaryDetails.tsx"],"names":[],"mappings":";;;;;;;AAAA,qDAAmH;AAEnH,iCAAiC;AACjC,gFAA4D;AAC5D,gFAA4D;AAC5D,4CAAqE;AAErE,8FAAkI;AAMlI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAU,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ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AC,oBAAc,KAAG,GACxC,GACL,IACN,EACN,0CACE,iCAAK,KAAK,EAAE,+CAA6B,CAAC,GAAG,aAC3C,iCAAK,KAAK,EAAE,+CAA6B,CAAC,YAAY,aACpD,0CAAM,2DAA2D,GAAO,EACxE,4CACG,UAAU,EACV,WAAW,IACR,EACL,QAAQ,IAAI,CACX,4CACG,eAAe,EACf,QAAQ,IACL,CACP,EACA,GAAG,CAAC,eAAe,IAAI,CACtB,4CACG,aAAa,EACb,GAAG,CAAC,eAAe,IAChB,CACP,EACD,4CACG,oBAAoB,EACrB,kCAAM,KAAK,EAAE,+CAA6B,CAAC,gBAAgB,aAAG,YAAY,WAAW,IACjF,EACN,0CAAM,2DAA2D,GAAO,IACpE,EACN,uBAAC,yCAAuB,IAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,SAAS,GAAI,IACtH,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC;AArDW,QAAA,iBAAiB,qBAqD5B","sourcesContent":["import { getFederatedKeyFromQpqFunctionRuntime, isQpqFunctionRuntimeAdvanced, StoryResult } from 'quidproquo-core';\n\nimport { useState } from 'react';\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport { Box, IconButton, Tooltip, Typography } from '@mui/material';\n\nimport { GenericFunctionRenderer, genericFunctionRendererStyles } from './actionComponents/genericActionRenderer/AnyVariableView';\n\ninterface LogSummaryDetailsProps {\n log: StoryResult<any>;\n}\n\nconst runtimeTypeToCamelCase = (runtimeType: string): string => runtimeType.toLowerCase().replace(/_(\\w)/g, (_, char) => char.toUpperCase());\n\nexport const LogSummaryDetails = ({ log }: LogSummaryDetailsProps) => {\n const [expanded, setExpanded] = useState(false);\n\n const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();\n const functionKey = log.qpqFunctionRuntimeInfo\n ? getFederatedKeyFromQpqFunctionRuntime(log.qpqFunctionRuntimeInfo)\n : runtimeTypeToCamelCase(log.runtimeType);\n const basePath =\n log.qpqFunctionRuntimeInfo && isQpqFunctionRuntimeAdvanced(log.qpqFunctionRuntimeInfo) ? log.qpqFunctionRuntimeInfo.basePath : undefined;\n\n return (\n <>\n <Box alignItems=\"center\" display=\"flex\">\n <Typography gutterBottom variant=\"h5\">\n {log.runtimeType} - {log.moduleName}\n </Typography>\n <Tooltip title={expanded ? 'Collapse' : 'Expand'}>\n <IconButton onClick={() => setExpanded(!expanded)} size=\"small\">\n {expanded ? <ExpandLessIcon /> : <ExpandMoreIcon />}\n </IconButton>\n </Tooltip>\n </Box>\n <div>\n <pre style={genericFunctionRendererStyles.pre}>\n <div style={genericFunctionRendererStyles.commentBlock}>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n <div>\n {'// src: '}\n {functionKey}\n </div>\n {basePath && (\n <div>\n {'// basePath: '}\n {basePath}\n </div>\n )}\n {log.fromCorrelation && (\n <div>\n {'// Caller: '}\n {log.fromCorrelation}\n </div>\n )}\n <div>\n {'// Total Runtime: '}\n <span style={genericFunctionRendererStyles.highlightComment}>{totalRuntime} ms</span>\n </div>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n </div>\n <GenericFunctionRenderer args={log.input} expanded={expanded} functionName={functionKey.split('::').pop() || 'unknown'} />\n </pre>\n </div>\n </>\n );\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { getFederatedKeyFromQpqFunctionRuntime } from 'quidproquo-core';
2
+ import { getFederatedKeyFromQpqFunctionRuntime, isQpqFunctionRuntimeAdvanced } from 'quidproquo-core';
3
3
  import { useState } from 'react';
4
4
  import ExpandLessIcon from '@mui/icons-material/ExpandLess';
5
5
  import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
@@ -12,6 +12,7 @@ export const LogSummaryDetails = ({ log }) => {
12
12
  const functionKey = log.qpqFunctionRuntimeInfo
13
13
  ? getFederatedKeyFromQpqFunctionRuntime(log.qpqFunctionRuntimeInfo)
14
14
  : runtimeTypeToCamelCase(log.runtimeType);
15
- return (_jsxs(_Fragment, { children: [_jsxs(Box, { alignItems: "center", display: "flex", children: [_jsxs(Typography, { gutterBottom: true, variant: "h5", children: [log.runtimeType, " - ", log.moduleName] }), _jsx(Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: _jsx(IconButton, { onClick: () => setExpanded(!expanded), size: "small", children: expanded ? _jsx(ExpandLessIcon, {}) : _jsx(ExpandMoreIcon, {}) }) })] }), _jsx("div", { children: _jsxs("pre", { style: genericFunctionRendererStyles.pre, children: [_jsxs("div", { style: genericFunctionRendererStyles.commentBlock, children: [_jsx("div", { children: '// //////////////////////////////////////////////////////' }), _jsxs("div", { children: ['// src: ', functionKey] }), log.fromCorrelation && (_jsxs("div", { children: ['// Caller: ', log.fromCorrelation] })), _jsxs("div", { children: ['// Total Runtime: ', _jsxs("span", { style: genericFunctionRendererStyles.highlightComment, children: [totalRuntime, " ms"] })] }), _jsx("div", { children: '// //////////////////////////////////////////////////////' })] }), _jsx(GenericFunctionRenderer, { args: log.input, expanded: expanded, functionName: functionKey.split('::').pop() || 'unknown' })] }) })] }));
15
+ const basePath = log.qpqFunctionRuntimeInfo && isQpqFunctionRuntimeAdvanced(log.qpqFunctionRuntimeInfo) ? log.qpqFunctionRuntimeInfo.basePath : undefined;
16
+ return (_jsxs(_Fragment, { children: [_jsxs(Box, { alignItems: "center", display: "flex", children: [_jsxs(Typography, { gutterBottom: true, variant: "h5", children: [log.runtimeType, " - ", log.moduleName] }), _jsx(Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: _jsx(IconButton, { onClick: () => setExpanded(!expanded), size: "small", children: expanded ? _jsx(ExpandLessIcon, {}) : _jsx(ExpandMoreIcon, {}) }) })] }), _jsx("div", { children: _jsxs("pre", { style: genericFunctionRendererStyles.pre, children: [_jsxs("div", { style: genericFunctionRendererStyles.commentBlock, children: [_jsx("div", { children: '// //////////////////////////////////////////////////////' }), _jsxs("div", { children: ['// src: ', functionKey] }), basePath && (_jsxs("div", { children: ['// basePath: ', basePath] })), log.fromCorrelation && (_jsxs("div", { children: ['// Caller: ', log.fromCorrelation] })), _jsxs("div", { children: ['// Total Runtime: ', _jsxs("span", { style: genericFunctionRendererStyles.highlightComment, children: [totalRuntime, " ms"] })] }), _jsx("div", { children: '// //////////////////////////////////////////////////////' })] }), _jsx(GenericFunctionRenderer, { args: log.input, expanded: expanded, functionName: functionKey.split('::').pop() || 'unknown' })] }) })] }));
16
17
  };
17
18
  //# sourceMappingURL=LogSummaryDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogSummaryDetails.js","sourceRoot":"","sources":["../../../src/LogViewer/LogSummaryDetails.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,qCAAqC,EAAe,MAAM,iBAAiB,CAAC;AAErF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,0DAA0D,CAAC;AAMlI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAU,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAE7I,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,GAAG,EAA0B,EAAE,EAAE;IACnE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC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AI,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,SAAS,GAAI,IACtH,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { getFederatedKeyFromQpqFunctionRuntime, StoryResult } from 'quidproquo-core';\n\nimport { useState } from 'react';\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport { Box, IconButton, Tooltip, Typography } from '@mui/material';\n\nimport { GenericFunctionRenderer, genericFunctionRendererStyles } from './actionComponents/genericActionRenderer/AnyVariableView';\n\ninterface LogSummaryDetailsProps {\n log: StoryResult<any>;\n}\n\nconst runtimeTypeToCamelCase = (runtimeType: string): string => runtimeType.toLowerCase().replace(/_(\\w)/g, (_, char) => char.toUpperCase());\n\nexport const LogSummaryDetails = ({ log }: LogSummaryDetailsProps) => {\n const [expanded, setExpanded] = useState(false);\n\n const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();\n const functionKey = log.qpqFunctionRuntimeInfo\n ? getFederatedKeyFromQpqFunctionRuntime(log.qpqFunctionRuntimeInfo)\n : runtimeTypeToCamelCase(log.runtimeType);\n\n return (\n <>\n <Box alignItems=\"center\" display=\"flex\">\n <Typography gutterBottom variant=\"h5\">\n {log.runtimeType} - {log.moduleName}\n </Typography>\n <Tooltip title={expanded ? 'Collapse' : 'Expand'}>\n <IconButton onClick={() => setExpanded(!expanded)} size=\"small\">\n {expanded ? <ExpandLessIcon /> : <ExpandMoreIcon />}\n </IconButton>\n </Tooltip>\n </Box>\n <div>\n <pre style={genericFunctionRendererStyles.pre}>\n <div style={genericFunctionRendererStyles.commentBlock}>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n <div>\n {'// src: '}\n {functionKey}\n </div>\n {log.fromCorrelation && (\n <div>\n {'// Caller: '}\n {log.fromCorrelation}\n </div>\n )}\n <div>\n {'// Total Runtime: '}\n <span style={genericFunctionRendererStyles.highlightComment}>{totalRuntime} ms</span>\n </div>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n </div>\n <GenericFunctionRenderer args={log.input} expanded={expanded} functionName={functionKey.split('::').pop() || 'unknown'} />\n </pre>\n </div>\n </>\n );\n};\n"]}
1
+ {"version":3,"file":"LogSummaryDetails.js","sourceRoot":"","sources":["../../../src/LogViewer/LogSummaryDetails.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,qCAAqC,EAAE,4BAA4B,EAAe,MAAM,iBAAiB,CAAC;AAEnH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,0DAA0D,CAAC;AAMlI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAU,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAE7I,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,GAAG,EAA0B,EAAE,EAAE;IACnE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5F,MAAM,WAAW,GAAG,GAAG,CAAC,sBAAsB;QAC5C,CA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AI,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,SAAS,GAAI,IACtH,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { getFederatedKeyFromQpqFunctionRuntime, isQpqFunctionRuntimeAdvanced, StoryResult } from 'quidproquo-core';\n\nimport { useState } from 'react';\nimport ExpandLessIcon from '@mui/icons-material/ExpandLess';\nimport ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport { Box, IconButton, Tooltip, Typography } from '@mui/material';\n\nimport { GenericFunctionRenderer, genericFunctionRendererStyles } from './actionComponents/genericActionRenderer/AnyVariableView';\n\ninterface LogSummaryDetailsProps {\n log: StoryResult<any>;\n}\n\nconst runtimeTypeToCamelCase = (runtimeType: string): string => runtimeType.toLowerCase().replace(/_(\\w)/g, (_, char) => char.toUpperCase());\n\nexport const LogSummaryDetails = ({ log }: LogSummaryDetailsProps) => {\n const [expanded, setExpanded] = useState(false);\n\n const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();\n const functionKey = log.qpqFunctionRuntimeInfo\n ? getFederatedKeyFromQpqFunctionRuntime(log.qpqFunctionRuntimeInfo)\n : runtimeTypeToCamelCase(log.runtimeType);\n const basePath =\n log.qpqFunctionRuntimeInfo && isQpqFunctionRuntimeAdvanced(log.qpqFunctionRuntimeInfo) ? log.qpqFunctionRuntimeInfo.basePath : undefined;\n\n return (\n <>\n <Box alignItems=\"center\" display=\"flex\">\n <Typography gutterBottom variant=\"h5\">\n {log.runtimeType} - {log.moduleName}\n </Typography>\n <Tooltip title={expanded ? 'Collapse' : 'Expand'}>\n <IconButton onClick={() => setExpanded(!expanded)} size=\"small\">\n {expanded ? <ExpandLessIcon /> : <ExpandMoreIcon />}\n </IconButton>\n </Tooltip>\n </Box>\n <div>\n <pre style={genericFunctionRendererStyles.pre}>\n <div style={genericFunctionRendererStyles.commentBlock}>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n <div>\n {'// src: '}\n {functionKey}\n </div>\n {basePath && (\n <div>\n {'// basePath: '}\n {basePath}\n </div>\n )}\n {log.fromCorrelation && (\n <div>\n {'// Caller: '}\n {log.fromCorrelation}\n </div>\n )}\n <div>\n {'// Total Runtime: '}\n <span style={genericFunctionRendererStyles.highlightComment}>{totalRuntime} ms</span>\n </div>\n <div>{'// //////////////////////////////////////////////////////'}</div>\n </div>\n <GenericFunctionRenderer args={log.input} expanded={expanded} functionName={functionKey.split('::').pop() || 'unknown'} />\n </pre>\n </div>\n </>\n );\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-web-admin",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -44,12 +44,12 @@
44
44
  "date-fns": "^2.30.0",
45
45
  "dayjs": "^1.11.7",
46
46
  "javascript-time-ago": "^2.5.9",
47
- "quidproquo-core": "0.1.8",
48
- "quidproquo-features": "0.1.8",
49
- "quidproquo-tsconfig": "0.1.8",
50
- "quidproquo-web": "0.1.8",
51
- "quidproquo-web-react": "0.1.8",
52
- "quidproquo-webserver": "0.1.8",
47
+ "quidproquo-core": "0.1.10",
48
+ "quidproquo-features": "0.1.10",
49
+ "quidproquo-tsconfig": "0.1.10",
50
+ "quidproquo-web": "0.1.10",
51
+ "quidproquo-web-react": "0.1.10",
52
+ "quidproquo-webserver": "0.1.10",
53
53
  "react": ">=18.3.1",
54
54
  "react-d3-tree": "^3.6.6",
55
55
  "react-dom": "18.3.1",