quidproquo-web-admin 0.0.262 → 0.1.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/README.md +53 -41
- package/lib/commonjs/App/App.d.ts +2 -0
- package/lib/commonjs/App/App.js +3 -2
- package/lib/commonjs/Auth/Auth.d.ts +1 -1
- package/lib/commonjs/Auth/Auth.js +12 -4
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.d.ts +6 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.js +50 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/index.d.ts +1 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/index.js +17 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/authActionCreator.d.ts +3 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/authActionCreator.js +15 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/authChallengeReducer.d.ts +3 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/authChallengeReducer.js +19 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/authChallengeTypes.d.ts +25 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/authChallengeTypes.js +8 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/index.d.ts +4 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/index.js +20 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeAssociateSoftwareToken.d.ts +2 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeAssociateSoftwareToken.js +18 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeSendMfaSetupCode.d.ts +2 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeSendMfaSetupCode.js +24 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/authChallengeLogic.d.ts +8 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/authChallengeLogic.js +11 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/index.d.ts +1 -0
- package/lib/commonjs/Auth/AuthChallengeMfaSetup/logic/runtime/index.js +17 -0
- package/lib/commonjs/Auth/AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired.d.ts +1 -1
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.d.ts +6 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.js +36 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/index.d.ts +1 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/index.js +17 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/authActionCreator.d.ts +2 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/authActionCreator.js +8 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeReducer.d.ts +3 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeReducer.js +13 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeTypes.d.ts +15 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeTypes.js +7 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/index.d.ts +4 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/index.js +20 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/askAuthChallengeSendMfaCode.d.ts +2 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/askAuthChallengeSendMfaCode.js +22 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/authChallengeLogic.d.ts +6 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/authChallengeLogic.js +9 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/index.d.ts +1 -0
- package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/index.js +17 -0
- package/lib/commonjs/Auth/Login.d.ts +1 -1
- package/lib/commonjs/Config/Config.d.ts +2 -1
- package/lib/commonjs/FederatedAddon.d.ts +6 -0
- package/lib/commonjs/FederatedAddonProvider.d.ts +8 -0
- package/lib/commonjs/FederatedAddonProvider.js +21 -0
- package/lib/commonjs/LogViewer/ActionHistoryItem.d.ts +1 -1
- package/lib/commonjs/LogViewer/ActionHistoryItemTimeStamp.d.ts +1 -1
- package/lib/commonjs/LogViewer/ActionRender/ActionRender.d.ts +2 -2
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.d.ts +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.d.ts +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/AdminLogs.d.ts +1 -1
- package/lib/commonjs/LogViewer/ConsoleLogViewer.d.ts +2 -2
- package/lib/commonjs/LogViewer/LogCorrelationTree.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogCorrelationTree.js +9 -1
- package/lib/commonjs/LogViewer/LogCorrelations.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogDetails.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogDialog/LogDialog.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogMetadataGrid.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogRawJson.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogSearch.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogSummary.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogSummaryDetails.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogSummaryDetails.js +8 -1
- package/lib/commonjs/LogViewer/LogSummaryReturn.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogSummaryReturn.js +8 -1
- package/lib/commonjs/LogViewer/TopSection.d.ts +1 -1
- package/lib/commonjs/LogViewer/TruncatedText.d.ts +1 -1
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.d.ts +8 -8
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +47 -9
- package/lib/commonjs/LogViewer/charts/CostPerService.d.ts +1 -1
- package/lib/commonjs/LogViewer/charts/ErrorsByType.d.ts +1 -1
- package/lib/commonjs/LogViewer/charts/ErrorsOverTime.d.ts +1 -1
- package/lib/commonjs/LogViewer/charts/RequestsByService.d.ts +1 -1
- package/lib/commonjs/LogViewer/logic/index.d.ts +0 -1
- package/lib/commonjs/LogViewer/logic/index.js +0 -1
- package/lib/commonjs/components/AdminDialog.d.ts +1 -1
- package/lib/commonjs/components/AsyncButton.d.ts +2 -2
- package/lib/commonjs/components/DataGrid.d.ts +1 -1
- package/lib/commonjs/components/DataGridPagination/DataGridPagination.d.ts +1 -1
- package/lib/commonjs/components/LastSeen/LastSeen.d.ts +1 -1
- package/lib/commonjs/components/LoadingBox/LoadingBox.d.ts +1 -1
- package/lib/commonjs/components/MainLayout/MainLayout.d.ts +1 -1
- package/lib/commonjs/index.d.ts +2 -0
- package/lib/commonjs/index.js +2 -0
- package/lib/commonjs/logic/platform/apiRequest.js +29 -19
- package/lib/commonjs/useFederatedAddon.js +4 -33
- package/lib/esm/App/App.d.ts +2 -0
- package/lib/esm/App/App.js +3 -2
- package/lib/esm/Auth/Auth.d.ts +1 -1
- package/lib/esm/Auth/Auth.js +8 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.d.ts +6 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.js +43 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/index.d.ts +1 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/index.js +1 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authActionCreator.d.ts +3 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authActionCreator.js +11 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authChallengeReducer.d.ts +3 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authChallengeReducer.js +16 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authChallengeTypes.d.ts +25 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authChallengeTypes.js +5 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/index.d.ts +4 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/index.js +4 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeAssociateSoftwareToken.d.ts +2 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeAssociateSoftwareToken.js +15 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeSendMfaSetupCode.d.ts +2 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/askAuthChallengeSendMfaSetupCode.js +21 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/authChallengeLogic.d.ts +8 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/authChallengeLogic.js +8 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/index.d.ts +1 -0
- package/lib/esm/Auth/AuthChallengeMfaSetup/logic/runtime/index.js +1 -0
- package/lib/esm/Auth/AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired.d.ts +1 -1
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.d.ts +6 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.js +27 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/index.d.ts +1 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/index.js +1 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/authActionCreator.d.ts +2 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/authActionCreator.js +5 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeReducer.d.ts +3 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeReducer.js +10 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeTypes.d.ts +15 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/authChallengeTypes.js +4 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/index.d.ts +4 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/index.js +4 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/askAuthChallengeSendMfaCode.d.ts +2 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/askAuthChallengeSendMfaCode.js +19 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/authChallengeLogic.d.ts +6 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/authChallengeLogic.js +6 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/index.d.ts +1 -0
- package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/index.js +1 -0
- package/lib/esm/Auth/Login.d.ts +1 -1
- package/lib/esm/Config/Config.d.ts +2 -1
- package/lib/esm/FederatedAddon.d.ts +6 -0
- package/lib/esm/FederatedAddonProvider.d.ts +8 -0
- package/lib/esm/FederatedAddonProvider.js +7 -0
- package/lib/esm/LogViewer/ActionHistoryItem.d.ts +1 -1
- package/lib/esm/LogViewer/ActionHistoryItemTimeStamp.d.ts +1 -1
- package/lib/esm/LogViewer/ActionRender/ActionRender.d.ts +2 -2
- package/lib/esm/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.d.ts +1 -1
- package/lib/esm/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.d.ts +1 -1
- package/lib/esm/LogViewer/AdminLogs/AdminLogs.d.ts +1 -1
- package/lib/esm/LogViewer/ConsoleLogViewer.d.ts +2 -2
- package/lib/esm/LogViewer/LogCorrelationTree.d.ts +1 -1
- package/lib/esm/LogViewer/LogCorrelationTree.js +9 -1
- package/lib/esm/LogViewer/LogCorrelations.d.ts +1 -1
- package/lib/esm/LogViewer/LogDetails.d.ts +1 -1
- package/lib/esm/LogViewer/LogDialog/LogDialog.d.ts +1 -1
- package/lib/esm/LogViewer/LogMetadataGrid.d.ts +1 -1
- package/lib/esm/LogViewer/LogRawJson.d.ts +1 -1
- package/lib/esm/LogViewer/LogSearch.d.ts +1 -1
- package/lib/esm/LogViewer/LogSummary.d.ts +1 -1
- package/lib/esm/LogViewer/LogSummaryDetails.d.ts +1 -1
- package/lib/esm/LogViewer/LogSummaryDetails.js +6 -2
- package/lib/esm/LogViewer/LogSummaryReturn.d.ts +1 -1
- package/lib/esm/LogViewer/LogSummaryReturn.js +6 -2
- package/lib/esm/LogViewer/TopSection.d.ts +1 -1
- package/lib/esm/LogViewer/TruncatedText.d.ts +1 -1
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.d.ts +8 -8
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +47 -9
- package/lib/esm/LogViewer/charts/CostPerService.d.ts +1 -1
- package/lib/esm/LogViewer/charts/ErrorsByType.d.ts +1 -1
- package/lib/esm/LogViewer/charts/ErrorsOverTime.d.ts +1 -1
- package/lib/esm/LogViewer/charts/RequestsByService.d.ts +1 -1
- package/lib/esm/LogViewer/logic/index.d.ts +0 -1
- package/lib/esm/LogViewer/logic/index.js +0 -1
- package/lib/esm/components/AdminDialog.d.ts +1 -1
- package/lib/esm/components/AsyncButton.d.ts +2 -2
- package/lib/esm/components/DataGrid.d.ts +1 -1
- package/lib/esm/components/DataGridPagination/DataGridPagination.d.ts +1 -1
- package/lib/esm/components/LastSeen/LastSeen.d.ts +1 -1
- package/lib/esm/components/LoadingBox/LoadingBox.d.ts +1 -1
- package/lib/esm/components/MainLayout/MainLayout.d.ts +1 -1
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/logic/platform/apiRequest.js +29 -16
- package/lib/esm/useFederatedAddon.js +4 -33
- package/package.json +11 -23
- package/lib/commonjs/LogViewer/logic/getFederationManifestUrl.d.ts +0 -3
- package/lib/commonjs/LogViewer/logic/getFederationManifestUrl.js +0 -19
- package/lib/esm/LogViewer/logic/getFederationManifestUrl.d.ts +0 -3
- package/lib/esm/LogViewer/logic/getFederationManifestUrl.js +0 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthChallengeMfaEffect = void 0;
|
|
4
|
+
var AuthChallengeMfaEffect;
|
|
5
|
+
(function (AuthChallengeMfaEffect) {
|
|
6
|
+
AuthChallengeMfaEffect["SetMfaCode"] = "authMfa/SetMfaCode";
|
|
7
|
+
})(AuthChallengeMfaEffect || (exports.AuthChallengeMfaEffect = AuthChallengeMfaEffect = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./authActionCreator"), exports);
|
|
18
|
+
__exportStar(require("./authChallengeReducer"), exports);
|
|
19
|
+
__exportStar(require("./authChallengeTypes"), exports);
|
|
20
|
+
__exportStar(require("./runtime"), exports);
|
package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/logic/runtime/askAuthChallengeSendMfaCode.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askAuthChallengeSendMfaCode = askAuthChallengeSendMfaCode;
|
|
4
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
+
const platformLogic_1 = require("../../../../platformLogic");
|
|
6
|
+
const logic_1 = require("../../../logic");
|
|
7
|
+
function* askAuthChallengeSendMfaCode(challenge, session, email) {
|
|
8
|
+
const { mfaCode } = yield* (0, quidproquo_core_1.askStateRead)('');
|
|
9
|
+
const response = yield* (0, platformLogic_1.askPlatformRequest)('POST', '/challenge', {
|
|
10
|
+
body: {
|
|
11
|
+
challenge,
|
|
12
|
+
email,
|
|
13
|
+
mfaCode,
|
|
14
|
+
session,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
if (response.status < 200 || response.status >= 300) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
yield* (0, platformLogic_1.askSaveAuthToken)(response.data);
|
|
21
|
+
yield* (0, logic_1.askAuthUISetAuthInfo)(response.data);
|
|
22
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { askAuthChallengeSetMfaCode } from '../authActionCreator';
|
|
2
|
+
import { askAuthChallengeSendMfaCode } from './askAuthChallengeSendMfaCode';
|
|
3
|
+
export declare const authChallengeMfaLogic: {
|
|
4
|
+
askAuthChallengeSetMfaCode: typeof askAuthChallengeSetMfaCode;
|
|
5
|
+
askAuthChallengeSendMfaCode: typeof askAuthChallengeSendMfaCode;
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authChallengeMfaLogic = void 0;
|
|
4
|
+
const authActionCreator_1 = require("../authActionCreator");
|
|
5
|
+
const askAuthChallengeSendMfaCode_1 = require("./askAuthChallengeSendMfaCode");
|
|
6
|
+
exports.authChallengeMfaLogic = {
|
|
7
|
+
askAuthChallengeSetMfaCode: authActionCreator_1.askAuthChallengeSetMfaCode,
|
|
8
|
+
askAuthChallengeSendMfaCode: askAuthChallengeSendMfaCode_1.askAuthChallengeSendMfaCode,
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './authChallengeLogic';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./authChallengeLogic"), exports);
|
|
@@ -5,5 +5,5 @@ interface LoginProps {
|
|
|
5
5
|
setPassword: (password: string) => void;
|
|
6
6
|
onLogin: () => Promise<void>;
|
|
7
7
|
}
|
|
8
|
-
export declare function Login({ username, password, setUsername, setPassword, onLogin }: LoginProps): import("react
|
|
8
|
+
export declare function Login({ username, password, setUsername, setPassword, onLogin }: LoginProps): import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseUrlResolvers } from 'quidproquo-web-react';
|
|
1
2
|
export type FederatedTab = {
|
|
2
3
|
name: string;
|
|
3
4
|
View: React.ComponentType;
|
|
@@ -7,3 +8,8 @@ export type FederatedAddon = {
|
|
|
7
8
|
tab: FederatedTab;
|
|
8
9
|
isQpqAdminFederatedAddon: boolean;
|
|
9
10
|
};
|
|
11
|
+
export type LoadFederatedAddonsContext = {
|
|
12
|
+
baseUrlResolvers: BaseUrlResolvers;
|
|
13
|
+
accessToken?: string;
|
|
14
|
+
};
|
|
15
|
+
export type LoadFederatedAddons = (context: LoadFederatedAddonsContext) => Promise<FederatedAddon[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LoadFederatedAddons } from './FederatedAddon';
|
|
3
|
+
export type FederatedAddonProviderProps = {
|
|
4
|
+
loadAddons?: LoadFederatedAddons;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const FederatedAddonProvider: React.FC<FederatedAddonProviderProps>;
|
|
8
|
+
export declare const useLoadFederatedAddons: () => LoadFederatedAddons;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.useLoadFederatedAddons = exports.FederatedAddonProvider = void 0;
|
|
13
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
14
|
+
const react_1 = require("react");
|
|
15
|
+
// Default: no host loader provided, so there are no addons.
|
|
16
|
+
const noopLoadAddons = () => __awaiter(void 0, void 0, void 0, function* () { return []; });
|
|
17
|
+
const FederatedAddonContext = (0, react_1.createContext)(noopLoadAddons);
|
|
18
|
+
const FederatedAddonProvider = ({ loadAddons, children }) => ((0, jsx_runtime_1.jsx)(FederatedAddonContext.Provider, { value: loadAddons !== null && loadAddons !== void 0 ? loadAddons : noopLoadAddons, children: children }));
|
|
19
|
+
exports.FederatedAddonProvider = FederatedAddonProvider;
|
|
20
|
+
const useLoadFederatedAddons = () => (0, react_1.useContext)(FederatedAddonContext);
|
|
21
|
+
exports.useLoadFederatedAddons = useLoadFederatedAddons;
|
|
@@ -4,5 +4,5 @@ interface ActionHistoryItemProps {
|
|
|
4
4
|
result: any;
|
|
5
5
|
expanded: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const ActionHistoryItem: ({ action, result, expanded }: ActionHistoryItemProps) => import("react
|
|
7
|
+
export declare const ActionHistoryItem: ({ action, result, expanded }: ActionHistoryItemProps) => import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,5 +2,5 @@ interface ActionHistoryItemTimeStampProps {
|
|
|
2
2
|
startedAt: string;
|
|
3
3
|
finishedAt: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const ActionHistoryItemTimeStamp: ({ startedAt, finishedAt }: ActionHistoryItemTimeStampProps) => import("react
|
|
5
|
+
export declare const ActionHistoryItemTimeStamp: ({ startedAt, finishedAt }: ActionHistoryItemTimeStampProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -12,6 +12,6 @@ interface ActionRenderProps {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const CoreBatchCustomAction: ActionComponent<SystemBatchActionPayload, any[]>;
|
|
14
14
|
export declare const AnyCustomAction: ActionComponent;
|
|
15
|
-
export declare const ActionRender: ({ action, result, isLegacy, expanded }: ActionRenderProps) => import("react
|
|
16
|
-
export declare const AnyActionHistoryItem: ({ action, result }: AnyActionHistoryItemProps) => import("react
|
|
15
|
+
export declare const ActionRender: ({ action, result, isLegacy, expanded }: ActionRenderProps) => import("react").JSX.Element;
|
|
16
|
+
export declare const AnyActionHistoryItem: ({ action, result }: AnyActionHistoryItemProps) => import("react").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -4,5 +4,5 @@ type AdminLogGridProps = {
|
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
searchProgress: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const AdminLogGrid: ({ logs, isLoading, searchProgress }: AdminLogGridProps) => import("react
|
|
7
|
+
export declare const AdminLogGrid: ({ logs, isLoading, searchProgress }: AdminLogGridProps) => import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface AdminLogSearchBarProps {
|
|
2
2
|
onSearch: () => Promise<any>;
|
|
3
3
|
}
|
|
4
|
-
export declare function AdminLogSearchBar({ onSearch }: AdminLogSearchBarProps): import("react
|
|
4
|
+
export declare function AdminLogSearchBar({ onSearch }: AdminLogSearchBarProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AdminLogs: () => import("react
|
|
1
|
+
export declare const AdminLogs: () => import("react").JSX.Element;
|
|
@@ -2,6 +2,6 @@ import { StoryResult } from 'quidproquo-core';
|
|
|
2
2
|
interface ConsoleLogViewerProps {
|
|
3
3
|
logs: StoryResult<any>['logs'];
|
|
4
4
|
}
|
|
5
|
-
export declare const ConsoleLogViewer: ({ logs }: ConsoleLogViewerProps) => import("react
|
|
6
|
-
declare const _default: import("react").MemoExoticComponent<({ logs }: ConsoleLogViewerProps) => import("react
|
|
5
|
+
export declare const ConsoleLogViewer: ({ logs }: ConsoleLogViewerProps) => import("react").JSX.Element | null;
|
|
6
|
+
declare const _default: import("react").MemoExoticComponent<({ logs }: ConsoleLogViewerProps) => import("react").JSX.Element | null>;
|
|
7
7
|
export default _default;
|
|
@@ -6,5 +6,5 @@ interface LogCorrelationTreeProps {
|
|
|
6
6
|
isVisible: boolean;
|
|
7
7
|
treeApi: TreeApi;
|
|
8
8
|
}
|
|
9
|
-
export declare const LogCorrelationTree: import("react").MemoExoticComponent<({ correlationId, highlightCorrelationId, setSelectedLogCorrelation, isVisible, treeApi, }: LogCorrelationTreeProps) => import("react
|
|
9
|
+
export declare const LogCorrelationTree: import("react").MemoExoticComponent<({ correlationId, highlightCorrelationId, setSelectedLogCorrelation, isVisible, treeApi, }: LogCorrelationTreeProps) => import("react").JSX.Element>;
|
|
10
10
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogCorrelationTree = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
6
|
const react_1 = require("react");
|
|
6
7
|
const react_d3_tree_1 = require("react-d3-tree");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -17,7 +18,14 @@ const renderRectSvgNode = (setSelectedLogCorrelation, highlightCorrelationId) =>
|
|
|
17
18
|
: nodeDatum.error
|
|
18
19
|
? 'red'
|
|
19
20
|
: 'white'; // Bright red for non-selected errors, white for non-selected non-errors
|
|
20
|
-
|
|
21
|
+
// For story runtime types, collapse the runtimeType line away so the generic
|
|
22
|
+
// info takes its place — other runtime types keep their full label stack.
|
|
23
|
+
const isStoryRuntimeType = nodeDatum.runtimeType === quidproquo_core_1.QpqRuntimeType.EXECUTE_STORY || nodeDatum.runtimeType === quidproquo_core_1.QpqRuntimeType.EXECUTE_IMPLEMENTATION_STORY;
|
|
24
|
+
const displayText = (nodeDatum.generic || '').split('::').pop();
|
|
25
|
+
const textLines = isStoryRuntimeType
|
|
26
|
+
? [nodeDatum.moduleName, displayText, nodeDatum.error || '']
|
|
27
|
+
: [nodeDatum.moduleName, nodeDatum.runtimeType, displayText, nodeDatum.error || ''];
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("circle", { r: 10, fill: color, x: "10", y: "10", onClick: () => setSelectedLogCorrelation(nodeDatum.correlation) }), textLines
|
|
21
29
|
.filter((t) => !!t)
|
|
22
30
|
.map((text, i) => {
|
|
23
31
|
const x = 0;
|
|
@@ -5,5 +5,5 @@ interface LogCorrelationsProps {
|
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
treeApi: TreeApi;
|
|
7
7
|
}
|
|
8
|
-
export declare const LogCorrelations: ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi }: LogCorrelationsProps) => import("react
|
|
8
|
+
export declare const LogCorrelations: ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi }: LogCorrelationsProps) => import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,5 +4,5 @@ interface LogDetailsProps {
|
|
|
4
4
|
hideFastActions: boolean;
|
|
5
5
|
orderByDuration: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const LogDetails: ({ log, hideFastActions, orderByDuration, }: LogDetailsProps) => import("react
|
|
7
|
+
export declare const LogDetails: ({ log, hideFastActions, orderByDuration, }: LogDetailsProps) => import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -5,5 +5,5 @@ interface LogDialogProps {
|
|
|
5
5
|
storyResultMetadatas: any[];
|
|
6
6
|
setSelectedLogCorrelation: (logCorrelation: string) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const LogDialog: ({ logCorrelation, open, handleClose, setSelectedLogCorrelation }: LogDialogProps) => import("react
|
|
8
|
+
export declare const LogDialog: ({ logCorrelation, open, handleClose, setSelectedLogCorrelation }: LogDialogProps) => import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -3,5 +3,5 @@ type LogMetadataGridProps = {
|
|
|
3
3
|
logs: LogMetadata[];
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare const LogMetadataGrid: ({ logs, isLoading }: LogMetadataGridProps) => import("react
|
|
6
|
+
export declare const LogMetadataGrid: ({ logs, isLoading }: LogMetadataGridProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -2,5 +2,5 @@ import { StoryResult } from 'quidproquo-core';
|
|
|
2
2
|
interface LogRawJsonProps {
|
|
3
3
|
log: StoryResult<any>;
|
|
4
4
|
}
|
|
5
|
-
export declare const LogRawJson: ({ log }: LogRawJsonProps) => import("react
|
|
5
|
+
export declare const LogRawJson: ({ log }: LogRawJsonProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LogSearch: () => import("react
|
|
1
|
+
export declare const LogSearch: () => import("react").JSX.Element;
|
|
@@ -2,5 +2,5 @@ import { StoryResult } from 'quidproquo-core';
|
|
|
2
2
|
interface LogSummaryProps {
|
|
3
3
|
log: StoryResult<any>;
|
|
4
4
|
}
|
|
5
|
-
export declare const LogSummary: ({ log }: LogSummaryProps) => import("react
|
|
5
|
+
export declare const LogSummary: ({ log }: LogSummaryProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -2,5 +2,5 @@ import { StoryResult } from 'quidproquo-core';
|
|
|
2
2
|
interface LogSummaryDetailsProps {
|
|
3
3
|
log: StoryResult<any>;
|
|
4
4
|
}
|
|
5
|
-
export declare const LogSummaryDetails: ({ log }: LogSummaryDetailsProps) => import("react
|
|
5
|
+
export declare const LogSummaryDetails: ({ log }: LogSummaryDetailsProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.LogSummaryDetails = void 0;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
8
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
9
|
+
const react_1 = require("react");
|
|
10
|
+
const ExpandLess_1 = __importDefault(require("@mui/icons-material/ExpandLess"));
|
|
11
|
+
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
6
12
|
const material_1 = require("@mui/material");
|
|
7
13
|
const AnyVariableView_1 = require("./actionComponents/genericActionRenderer/AnyVariableView");
|
|
8
14
|
const LogSummaryDetails = ({ log }) => {
|
|
15
|
+
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
9
16
|
const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();
|
|
10
17
|
const functionKey = log.qpqFunctionRuntimeInfo ? (0, quidproquo_core_1.getUniqueKeyFromQpqFunctionRuntime)(log.qpqFunctionRuntimeInfo) : 'unknownMahLord';
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "h5", gutterBottom: true, 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, { size: "small", onClick: () => setExpanded(!expanded), 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, { functionName: functionKey.split('::').pop() || 'unknown', args: log.input, expanded: expanded })] }) })] }));
|
|
12
19
|
};
|
|
13
20
|
exports.LogSummaryDetails = LogSummaryDetails;
|
|
@@ -2,5 +2,5 @@ import { StoryResult } from 'quidproquo-core';
|
|
|
2
2
|
interface LogSummaryReturnProps {
|
|
3
3
|
log: StoryResult<any>;
|
|
4
4
|
}
|
|
5
|
-
export declare const LogSummaryReturn: ({ log }: LogSummaryReturnProps) => import("react
|
|
5
|
+
export declare const LogSummaryReturn: ({ log }: LogSummaryReturnProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.LogSummaryReturn = void 0;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const ExpandLess_1 = __importDefault(require("@mui/icons-material/ExpandLess"));
|
|
10
|
+
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
5
11
|
const material_1 = require("@mui/material");
|
|
6
12
|
const actionComponents_1 = require("./actionComponents");
|
|
7
13
|
const LogSummaryReturn = ({ log }) => {
|
|
8
|
-
|
|
14
|
+
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", gutterBottom: true, children: log.error ? 'Thrown Error' : 'Returned' }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: expanded ? 'Collapse' : 'Expand', children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "small", onClick: () => setExpanded(!expanded), children: expanded ? (0, jsx_runtime_1.jsx)(ExpandLess_1.default, {}) : (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }) })] }), (0, jsx_runtime_1.jsx)("pre", { style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }, children: (0, jsx_runtime_1.jsx)("pre", { style: actionComponents_1.genericFunctionRendererStyles.pre, children: log.error ? (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { value: log.error, expanded: expanded }) : (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { value: log.result, expanded: expanded }) }) })] }));
|
|
9
16
|
};
|
|
10
17
|
exports.LogSummaryReturn = LogSummaryReturn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface TopSectionProps {
|
|
2
2
|
onSearch: () => Promise<any>;
|
|
3
3
|
}
|
|
4
|
-
export declare function TopSection({ onSearch }: TopSectionProps): import("react
|
|
4
|
+
export declare function TopSection({ onSearch }: TopSectionProps): import("react").JSX.Element;
|
|
@@ -45,14 +45,14 @@ type VariableViewProps = {
|
|
|
45
45
|
expanded: boolean;
|
|
46
46
|
hideStringQuotes?: boolean;
|
|
47
47
|
};
|
|
48
|
-
export declare const StringVariableView: ({ value, expanded, hideStringQuotes }: VariableViewProps) =>
|
|
49
|
-
export declare const ArrayVariableView: ({ value, expanded }: VariableViewProps) =>
|
|
50
|
-
export declare const KvsQueryConditionVariableView: ({ value, expanded }: VariableViewProps) =>
|
|
51
|
-
export declare const KvsLogicalOperatorVariableView: ({ value, expanded }: VariableViewProps) =>
|
|
52
|
-
export declare const EmptyObjectVariableView: ({ value, expanded }: VariableViewProps) =>
|
|
53
|
-
export declare const QpqBinaryDataVariableView: ({ value, expanded }: VariableViewProps) =>
|
|
54
|
-
export declare const ObjectVariableView: ({ value, expanded }: VariableViewProps) =>
|
|
55
|
-
export declare const AnyVariableView: ({ value, expanded, hideStringQuotes }: VariableViewProps) =>
|
|
48
|
+
export declare const StringVariableView: ({ value, expanded, hideStringQuotes }: VariableViewProps) => React.JSX.Element;
|
|
49
|
+
export declare const ArrayVariableView: ({ value, expanded }: VariableViewProps) => React.JSX.Element;
|
|
50
|
+
export declare const KvsQueryConditionVariableView: ({ value, expanded }: VariableViewProps) => React.JSX.Element;
|
|
51
|
+
export declare const KvsLogicalOperatorVariableView: ({ value, expanded }: VariableViewProps) => React.JSX.Element;
|
|
52
|
+
export declare const EmptyObjectVariableView: ({ value, expanded }: VariableViewProps) => React.JSX.Element;
|
|
53
|
+
export declare const QpqBinaryDataVariableView: ({ value, expanded }: VariableViewProps) => React.JSX.Element;
|
|
54
|
+
export declare const ObjectVariableView: ({ value, expanded }: VariableViewProps) => React.JSX.Element;
|
|
55
|
+
export declare const AnyVariableView: ({ value, expanded, hideStringQuotes }: VariableViewProps) => React.JSX.Element;
|
|
56
56
|
interface GenericFunctionRendererProps {
|
|
57
57
|
functionName: string;
|
|
58
58
|
args: {
|
|
@@ -27,21 +27,59 @@ exports.genericFunctionRendererStyles = {
|
|
|
27
27
|
highlightComment: { color: 'white' }, // Number value color
|
|
28
28
|
jsonComment: { color: '#5E993E' }, // Number value color
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
// Try to parse a string as JSON. We reject bare numbers so that plain numeric
|
|
31
|
+
// strings (which JSON.parse happily accepts) keep rendering as strings.
|
|
32
|
+
const tryParseJson = (text) => {
|
|
31
33
|
try {
|
|
32
|
-
const
|
|
33
|
-
if (typeof
|
|
34
|
-
|
|
34
|
+
const value = JSON.parse(text);
|
|
35
|
+
if (typeof value === 'number') {
|
|
36
|
+
return { ok: false };
|
|
35
37
|
}
|
|
36
|
-
return
|
|
38
|
+
return { ok: true, value };
|
|
37
39
|
}
|
|
38
40
|
catch (_a) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
return { ok: false };
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
// base64 decoding succeeds on plenty of random strings, so the JSON parse below
|
|
45
|
+
// is what actually makes this specific - it only matches if the string is BOTH
|
|
46
|
+
// valid base64 AND decodes to valid JSON.
|
|
47
|
+
const base64Pattern = /^[A-Za-z0-9+/]+={0,2}$/;
|
|
48
|
+
const tryDecodeBase64 = (text) => {
|
|
49
|
+
// Cheap structural gate: canonical base64 uses only this charset and its length
|
|
50
|
+
// is a multiple of 4. This also skips obvious non-base64 (anything with {, ", spaces).
|
|
51
|
+
if (text.length === 0 || text.length % 4 !== 0 || !base64Pattern.test(text)) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
const decoded = atob(text);
|
|
56
|
+
// Round-trip to reject non-canonical base64 that atob would otherwise accept.
|
|
57
|
+
if (btoa(decoded) !== text) {
|
|
58
|
+
return undefined;
|
|
42
59
|
}
|
|
43
|
-
return
|
|
60
|
+
return decoded;
|
|
61
|
+
}
|
|
62
|
+
catch (_a) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const StringVariableView = ({ value, expanded, hideStringQuotes }) => {
|
|
67
|
+
const asJson = tryParseJson(value);
|
|
68
|
+
if (asJson.ok) {
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.jsonComment, children: ['<', "json", '>'] }), (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { value: asJson.value, expanded: expanded })] }));
|
|
70
|
+
}
|
|
71
|
+
const decoded = tryDecodeBase64(value);
|
|
72
|
+
if (decoded !== undefined) {
|
|
73
|
+
const asBase64Json = tryParseJson(decoded);
|
|
74
|
+
if (asBase64Json.ok) {
|
|
75
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.jsonComment, children: ['<', "base64-json", '>'] }), (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { value: asBase64Json.value, expanded: expanded })] }));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const trimmedValue = value.length > 25 && !expanded ? `${value.slice(0, 25)}...` : value;
|
|
79
|
+
if (hideStringQuotes) {
|
|
80
|
+
return (0, jsx_runtime_1.jsx)("span", { style: exports.genericFunctionRendererStyles.stringValue, children: trimmedValue });
|
|
44
81
|
}
|
|
82
|
+
return (0, jsx_runtime_1.jsxs)("span", { style: exports.genericFunctionRendererStyles.stringValue, children: ["\"", trimmedValue, "\""] });
|
|
45
83
|
};
|
|
46
84
|
exports.StringVariableView = StringVariableView;
|
|
47
85
|
const ArrayVariableView = ({ value, expanded }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface CostPerServiceProps {
|
|
2
2
|
logs: any[];
|
|
3
3
|
}
|
|
4
|
-
export declare const CostPerService: ({ logs }: CostPerServiceProps) => import("react
|
|
4
|
+
export declare const CostPerService: ({ logs }: CostPerServiceProps) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface ErrorsByTypeProps {
|
|
2
2
|
logs: any[];
|
|
3
3
|
}
|
|
4
|
-
export declare const ErrorsByType: ({ logs }: ErrorsByTypeProps) => import("react
|
|
4
|
+
export declare const ErrorsByType: ({ logs }: ErrorsByTypeProps) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -3,5 +3,5 @@ interface ErrorsOverTimeProps {
|
|
|
3
3
|
logs: any[];
|
|
4
4
|
searchParams: SearchParams;
|
|
5
5
|
}
|
|
6
|
-
export declare const ErrorsOverTime: ({ logs, searchParams }: ErrorsOverTimeProps) => import("react
|
|
6
|
+
export declare const ErrorsOverTime: ({ logs, searchParams }: ErrorsOverTimeProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface RequestsByServiceProps {
|
|
|
3
3
|
logs: any[];
|
|
4
4
|
searchParams: SearchParams;
|
|
5
5
|
}
|
|
6
|
-
export declare const RequestsByService: ({ logs, searchParams }: RequestsByServiceProps) => import("react
|
|
6
|
+
export declare const RequestsByService: ({ logs, searchParams }: RequestsByServiceProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -2,7 +2,6 @@ export * from './createHierarchy';
|
|
|
2
2
|
export * from './filterLogs';
|
|
3
3
|
export * from './findLogDirectChildren';
|
|
4
4
|
export * from './findRootLog';
|
|
5
|
-
export * from './getFederationManifestUrl';
|
|
6
5
|
export * from './getLogHierarchy';
|
|
7
6
|
export * from './getLogs';
|
|
8
7
|
export * from './getLogUrl';
|
|
@@ -18,7 +18,6 @@ __exportStar(require("./createHierarchy"), exports);
|
|
|
18
18
|
__exportStar(require("./filterLogs"), exports);
|
|
19
19
|
__exportStar(require("./findLogDirectChildren"), exports);
|
|
20
20
|
__exportStar(require("./findRootLog"), exports);
|
|
21
|
-
__exportStar(require("./getFederationManifestUrl"), exports);
|
|
22
21
|
__exportStar(require("./getLogHierarchy"), exports);
|
|
23
22
|
__exportStar(require("./getLogs"), exports);
|
|
24
23
|
__exportStar(require("./getLogUrl"), exports);
|
|
@@ -20,5 +20,5 @@ interface AdminDialogProps {
|
|
|
20
20
|
}[];
|
|
21
21
|
children: React.ReactNode;
|
|
22
22
|
}
|
|
23
|
-
export declare const AdminDialog: ({ open, handleClose, title, selectedTab, onSelectTab, tabs, buttons, children }: AdminDialogProps) => import("react
|
|
23
|
+
export declare const AdminDialog: ({ open, handleClose, title, selectedTab, onSelectTab, tabs, buttons, children }: AdminDialogProps) => import("react").JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface AsyncButtonProps {
|
|
3
3
|
onClick: (event: any) => Promise<void>;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
type?: 'button' | 'submit' | 'reset';
|
|
7
7
|
}
|
|
8
|
-
export declare function AsyncButton({ onClick, children, disabled, type }: AsyncButtonProps):
|
|
8
|
+
export declare function AsyncButton({ onClick, children, disabled, type }: AsyncButtonProps): React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -13,4 +13,4 @@ export interface DataGridProps<T extends object> {
|
|
|
13
13
|
columns: DataGridColumDefinitions<T>[];
|
|
14
14
|
onRowClick?: (row: T) => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const DataGrid: <T extends object>({ items, columns, onRowClick }: DataGridProps<T>) => import("react
|
|
16
|
+
export declare const DataGrid: <T extends object>({ items, columns, onRowClick }: DataGridProps<T>) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function DataGridPagination(): import("react
|
|
1
|
+
export declare function DataGridPagination(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("react").MemoExoticComponent<(props: any) => import("react
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<(props: any) => import("react").JSX.Element>;
|
|
2
2
|
export default _default;
|
|
@@ -4,5 +4,5 @@ interface LoadingBoxProps<T> {
|
|
|
4
4
|
renderItem: (item: T) => React.ReactNode;
|
|
5
5
|
renderLoading?: () => React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const LoadingBox: <T>({ path, renderItem, renderLoading }: LoadingBoxProps<T>) =>
|
|
7
|
+
export declare const LoadingBox: <T>({ path, renderItem, renderLoading }: LoadingBoxProps<T>) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function MainLayout(): import("react
|
|
1
|
+
export declare function MainLayout(): import("react").JSX.Element;
|