@ixo/editor 6.25.0 → 6.26.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.
- package/dist/{chunk-2OASS6D4.js → chunk-H4OFDRA7.js} +139 -60
- package/dist/{chunk-2OASS6D4.js.map → chunk-H4OFDRA7.js.map} +1 -1
- package/dist/{chunk-R3H7TDTG.js → chunk-PW5J4EAV.js} +2 -2
- package/dist/{chunk-BTMC55BR.js → chunk-YC6GPQZG.js} +4 -1
- package/dist/chunk-YC6GPQZG.js.map +1 -0
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +2 -2
- package/dist/{graphql-client-fgG7EM5J.d.ts → graphql-client-pPdj3dsK.d.ts} +1 -1
- package/dist/{index-x1R0c9P_.d.ts → index-CfkeGZGU.d.ts} +7 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.js +2 -2
- package/dist/{store-wmrw3T5K.d.ts → store-CzML9Czj.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-BTMC55BR.js.map +0 -1
- /package/dist/{chunk-R3H7TDTG.js.map → chunk-PW5J4EAV.js.map} +0 -0
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
warnOnce,
|
|
113
113
|
writeActionState,
|
|
114
114
|
writeRunRecordAndReconcile
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-YC6GPQZG.js";
|
|
116
116
|
|
|
117
117
|
// src/mantine/hooks/usePanel.ts
|
|
118
118
|
import { useCallback, useMemo, useEffect, useRef } from "react";
|
|
@@ -23308,11 +23308,11 @@ var GeneralTab16 = ({
|
|
|
23308
23308
|
useEffect75(() => setLocalTitle(title || ""), [title]);
|
|
23309
23309
|
useEffect75(() => setLocalDescription(description || ""), [description]);
|
|
23310
23310
|
const actionTypeOptions = useMemo86(() => {
|
|
23311
|
-
return getAllActions().map((a) => {
|
|
23311
|
+
return getAllActions().filter((a) => !a.hiddenFromAuthoring || a.type === actionType).map((a) => {
|
|
23312
23312
|
const m = getActionMeta(a.type);
|
|
23313
23313
|
return { value: a.type, label: m.label, description: m.description, icon: m.icon };
|
|
23314
23314
|
});
|
|
23315
|
-
}, []);
|
|
23315
|
+
}, [actionType]);
|
|
23316
23316
|
const actionTypeUI = actionType ? getActionTypeUI(actionType) : void 0;
|
|
23317
23317
|
const ConfigComponent = actionTypeUI?.configComponent;
|
|
23318
23318
|
return /* @__PURE__ */ React239.createElement(Stack154, { gap: 16 }, /* @__PURE__ */ React239.createElement(BaseIconCombobox, { options: actionTypeOptions, value: actionType, onChange: onActionTypeChange }), /* @__PURE__ */ React239.createElement(Group86, { gap: 6, align: "center" }, /* @__PURE__ */ React239.createElement(IconSparkles6, { size: 14, color: "var(--mantine-color-accent-5, #2aeab3)" }), /* @__PURE__ */ React239.createElement(Text133, { size: "sm", fw: 500, c: "var(--mantine-color-accent-5, #2aeab3)", style: { cursor: "pointer" } }, "Configures")), /* @__PURE__ */ React239.createElement(
|
|
@@ -32017,8 +32017,8 @@ var ClaimConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
32017
32017
|
|
|
32018
32018
|
// src/mantine/blocks/action/actionTypes/claim/ClaimFlowDetail.tsx
|
|
32019
32019
|
import React316, { useCallback as useCallback107, useEffect as useEffect110, useMemo as useMemo115, useRef as useRef40, useState as useState165 } from "react";
|
|
32020
|
-
import { ActionIcon as ActionIcon45, Box as Box58, Group as Group112, Loader as Loader57, Stack as Stack207, Text as Text195 } from "@mantine/core";
|
|
32021
|
-
import { IconArrowLeft as IconArrowLeft9, IconCheck as IconCheck22, IconPlayerPlay as IconPlayerPlay6 } from "@tabler/icons-react";
|
|
32020
|
+
import { ActionIcon as ActionIcon45, Box as Box58, Collapse as Collapse10, Group as Group112, Loader as Loader57, Stack as Stack207, Text as Text195, UnstyledButton as UnstyledButton5 } from "@mantine/core";
|
|
32021
|
+
import { IconArrowLeft as IconArrowLeft9, IconCheck as IconCheck22, IconChevronRight as IconChevronRight12, IconPlayerPlay as IconPlayerPlay6 } from "@tabler/icons-react";
|
|
32022
32022
|
import { SurveyModel as SurveyModel10 } from "@ixo/surveys";
|
|
32023
32023
|
|
|
32024
32024
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/resolveClaimFileRef.ts
|
|
@@ -32187,6 +32187,7 @@ var ClaimFlowDetail = ({
|
|
|
32187
32187
|
const [loadingClaimDetail, setLoadingClaimDetail] = useState165(false);
|
|
32188
32188
|
const [disputeDetails, setDisputeDetails] = useState165(null);
|
|
32189
32189
|
const [loadingDispute, setLoadingDispute] = useState165(false);
|
|
32190
|
+
const [claimsExpanded, setClaimsExpanded] = useState165(false);
|
|
32190
32191
|
const selectedClaim = useMemo115(() => claims.find((c) => c.claimId === selectedClaimId) || null, [claims, selectedClaimId]);
|
|
32191
32192
|
const selectedClaimStatus = useMemo115(() => selectedClaim ? getClaimStatusInfo(selectedClaim) : null, [selectedClaim]);
|
|
32192
32193
|
const isSelectedDisputed = selectedClaimStatus?.key === "disputed";
|
|
@@ -32573,6 +32574,7 @@ var ClaimFlowDetail = ({
|
|
|
32573
32574
|
submittedEmitted = true;
|
|
32574
32575
|
setSurveyJson(null);
|
|
32575
32576
|
setPrefillData(null);
|
|
32577
|
+
setClaimsExpanded(true);
|
|
32576
32578
|
await fetchClaimsAndAdmin();
|
|
32577
32579
|
} catch (err) {
|
|
32578
32580
|
const message = err instanceof Error ? err.message : t("actionTypes.claim.flow.errors.submitFailed", { defaultValue: "Failed to submit claim" });
|
|
@@ -32629,15 +32631,7 @@ var ClaimFlowDetail = ({
|
|
|
32629
32631
|
defaultValue: "Configure {{did}} and {{claimCollection}} in template mode before running this action.",
|
|
32630
32632
|
did: "DID",
|
|
32631
32633
|
claimCollection: "claim collection"
|
|
32632
|
-
})) : /* @__PURE__ */ React316.createElement(React316.Fragment, null, /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, t("actionTypes.shared.collectionPrefix", { id: collectionId, defaultValue: `Collection: ${collectionId}` })),
|
|
32633
|
-
BasePrimaryButton,
|
|
32634
|
-
{
|
|
32635
|
-
leftSection: loadingSurvey || authChecking ? /* @__PURE__ */ React316.createElement(Loader57, { size: 14 }) : /* @__PURE__ */ React316.createElement(IconPlayerPlay6, { size: 14 }),
|
|
32636
|
-
onClick: startSurvey,
|
|
32637
|
-
disabled: isDisabled || loadingSurvey || submitting || authChecking || !isServiceAgentAuthorized && !actAs.actAsGroup || !adminAddress
|
|
32638
|
-
},
|
|
32639
|
-
authChecking ? t("actionTypes.claim.flow.checkingAuthorization", { defaultValue: "Checking authorization..." }) : loadingSurvey ? t("actionTypes.shared.loadingSurvey", { defaultValue: "Loading Survey..." }) : t("actionTypes.claim.flow.startNewClaim", { defaultValue: "Start New Claim" })
|
|
32640
|
-
), !authChecking && authError && /* @__PURE__ */ React316.createElement(DismissibleAlert, { color: "orange", styles: actionAlertStyles }, /* @__PURE__ */ React316.createElement(Stack207, { gap: "xs" }, /* @__PURE__ */ React316.createElement(Text195, { size: "sm" }, t("actionTypes.claim.flow.authVerifyFailed", { defaultValue: "Couldn't verify your authorization \u2014 the chain RPC is unreachable." })), /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, authError), /* @__PURE__ */ React316.createElement(BasePrimaryButton, { size: "xs", onClick: () => setAuthRetryKey((k) => k + 1) }, t("actionTypes.claim.flow.retry", { defaultValue: "Retry" })))), !authChecking && !authError && !isServiceAgentAuthorized && !actAs.actAsGroup && /* @__PURE__ */ React316.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.claim.flow.errors.notAuthorized", { defaultValue: "You need service agent authorization for this collection to submit claims." })), loadingClaims ? /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.loadingYourClaims", { defaultValue: "Loading your claims..." })) : claims.length === 0 ? /* @__PURE__ */ React316.createElement(Text195, { size: "sm", c: "dimmed" }, t("actionTypes.claim.flow.noClaimsYet", { defaultValue: "No claims submitted for this collection yet." })) : /* @__PURE__ */ React316.createElement(Stack207, { gap: "xs" }, /* @__PURE__ */ React316.createElement(Text195, { size: "sm", fw: 600 }, t("actionTypes.claim.flow.yourClaims", { defaultValue: "Your Claims" })), claims.map((claim) => {
|
|
32634
|
+
})) : /* @__PURE__ */ React316.createElement(React316.Fragment, null, /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, t("actionTypes.shared.collectionPrefix", { id: collectionId, defaultValue: `Collection: ${collectionId}` })), loadingClaims ? /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.loadingYourClaims", { defaultValue: "Loading your claims..." })) : claims.length === 0 ? /* @__PURE__ */ React316.createElement(Text195, { size: "sm", c: "dimmed" }, t("actionTypes.claim.flow.noClaimsYet", { defaultValue: "No claims submitted for this collection yet." })) : /* @__PURE__ */ React316.createElement(Stack207, { gap: "xs" }, /* @__PURE__ */ React316.createElement(UnstyledButton5, { onClick: () => setClaimsExpanded((prev) => !prev), style: { color: "var(--mantine-color-text)" } }, /* @__PURE__ */ React316.createElement(Group112, { gap: 6, align: "center" }, /* @__PURE__ */ React316.createElement(IconChevronRight12, { size: 16, style: { transform: claimsExpanded ? "rotate(90deg)" : "none", transition: "transform 150ms ease", flexShrink: 0 } }), /* @__PURE__ */ React316.createElement(Text195, { size: "sm", fw: 600 }, t("actionTypes.claim.flow.yourClaims", { defaultValue: "Your Claims" }), " (", claims.length, ")"))), /* @__PURE__ */ React316.createElement(Collapse10, { in: claimsExpanded }, /* @__PURE__ */ React316.createElement(Stack207, { gap: "xs" }, claims.map((claim) => {
|
|
32641
32635
|
const status = getClaimStatusInfo(claim);
|
|
32642
32636
|
const profile = profilesByDid[claim.agentDid];
|
|
32643
32637
|
const displayName = profile?.displayname || claim.agentDid || claim.agentAddress;
|
|
@@ -32664,7 +32658,15 @@ var ClaimFlowDetail = ({
|
|
|
32664
32658
|
},
|
|
32665
32659
|
profile?.avatarUrl ? null : avatarLabel
|
|
32666
32660
|
), /* @__PURE__ */ React316.createElement(Stack207, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React316.createElement(Text195, { fw: 500, size: "md", truncate: true, style: { lineHeight: 1.5 } }, displayName), /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed", truncate: true }, truncateAddress3(claim.agentAddress)))), /* @__PURE__ */ React316.createElement(Stack207, { gap: 0, align: "flex-end", style: { flexShrink: 0, minWidth: 80 } }, /* @__PURE__ */ React316.createElement(Text195, { fw: 500, size: "md", c: status.color, style: { lineHeight: 1.5 } }, status.key === "approved" && /* @__PURE__ */ React316.createElement(IconCheck22, { size: 14, style: { verticalAlign: "middle", marginRight: 2 } }), status.label), /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, getTimeAgo2(claim.submissionDate || ""))));
|
|
32667
|
-
}))),
|
|
32661
|
+
})))), prefillData && /* @__PURE__ */ React316.createElement(DismissibleAlert, { color: "orange", styles: actionAlertStyles }, t("actionTypes.claim.flow.amendingNotice", { defaultValue: "Amending a previously disputed claim \u2014 edit the fields below and submit to resubmit." })), /* @__PURE__ */ React316.createElement(
|
|
32662
|
+
BasePrimaryButton,
|
|
32663
|
+
{
|
|
32664
|
+
leftSection: loadingSurvey || authChecking ? /* @__PURE__ */ React316.createElement(Loader57, { size: 14 }) : /* @__PURE__ */ React316.createElement(IconPlayerPlay6, { size: 14 }),
|
|
32665
|
+
onClick: startSurvey,
|
|
32666
|
+
disabled: isDisabled || loadingSurvey || submitting || authChecking || !isServiceAgentAuthorized && !actAs.actAsGroup || !adminAddress
|
|
32667
|
+
},
|
|
32668
|
+
authChecking ? t("actionTypes.claim.flow.checkingAuthorization", { defaultValue: "Checking authorization..." }) : loadingSurvey ? t("actionTypes.shared.loadingSurvey", { defaultValue: "Loading Survey..." }) : t("actionTypes.claim.flow.startNewClaim", { defaultValue: "Start New Claim" })
|
|
32669
|
+
), !authChecking && authError && /* @__PURE__ */ React316.createElement(DismissibleAlert, { color: "orange", styles: actionAlertStyles }, /* @__PURE__ */ React316.createElement(Stack207, { gap: "xs" }, /* @__PURE__ */ React316.createElement(Text195, { size: "sm" }, t("actionTypes.claim.flow.authVerifyFailed", { defaultValue: "Couldn't verify your authorization \u2014 the chain RPC is unreachable." })), /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, authError), /* @__PURE__ */ React316.createElement(BasePrimaryButton, { size: "xs", onClick: () => setAuthRetryKey((k) => k + 1) }, t("actionTypes.claim.flow.retry", { defaultValue: "Retry" })))), !authChecking && !authError && !isServiceAgentAuthorized && !actAs.actAsGroup && /* @__PURE__ */ React316.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.claim.flow.errors.notAuthorized", { defaultValue: "You need service agent authorization for this collection to submit claims." })), surveyModel && !loadingSurvey && /* @__PURE__ */ React316.createElement(React316.Fragment, null, /* @__PURE__ */ React316.createElement(SurveyAiFillButton, { surveyId: openSurveyId, title: openSurveyTitle }), /* @__PURE__ */ React316.createElement(StableSurvey, { model: surveyModel }))), submitting && /* @__PURE__ */ React316.createElement(Group112, { gap: "xs" }, /* @__PURE__ */ React316.createElement(Loader57, { size: "xs" }), /* @__PURE__ */ React316.createElement(Text195, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.submittingClaim", { defaultValue: "Submitting claim..." }))), error && /* @__PURE__ */ React316.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error));
|
|
32668
32670
|
};
|
|
32669
32671
|
|
|
32670
32672
|
// src/mantine/blocks/action/actionTypes/claim/index.ts
|
|
@@ -33651,7 +33653,7 @@ var CollectionUsersConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
33651
33653
|
|
|
33652
33654
|
// src/mantine/blocks/action/actionTypes/collectionUsers/CollectionUsersFlowDetail.tsx
|
|
33653
33655
|
import React320, { useCallback as useCallback111, useEffect as useEffect114, useMemo as useMemo119, useRef as useRef42, useState as useState169 } from "react";
|
|
33654
|
-
import { ActionIcon as ActionIcon46, Badge as Badge52, Box as Box60, Button as Button67, Divider as Divider22, Group as Group116, Loader as Loader61, Radio as Radio5, SegmentedControl as SegmentedControl15, Stack as Stack211, Text as Text199 } from "@mantine/core";
|
|
33656
|
+
import { ActionIcon as ActionIcon46, Alert as MantineAlert, Badge as Badge52, Box as Box60, Button as Button67, Divider as Divider22, Group as Group116, Loader as Loader61, Radio as Radio5, SegmentedControl as SegmentedControl15, Stack as Stack211, Text as Text199 } from "@mantine/core";
|
|
33655
33657
|
import { useDebouncedValue } from "@mantine/hooks";
|
|
33656
33658
|
import { IconAlertCircle as IconAlertCircle28, IconArrowLeft as IconArrowLeft10, IconCheck as IconCheck24, IconRefresh as IconRefresh9, IconTrash as IconTrash10 } from "@tabler/icons-react";
|
|
33657
33659
|
var LOG2 = "[collection.users]";
|
|
@@ -33950,6 +33952,10 @@ var CollectionUsersFlowDetail = ({
|
|
|
33950
33952
|
listOnLoadRef.current = false;
|
|
33951
33953
|
runList();
|
|
33952
33954
|
}, [runList]);
|
|
33955
|
+
const [evaluatedBids, setEvaluatedBids] = useState169({});
|
|
33956
|
+
const handleBidEvaluated = useCallback111((bidId, outcome) => {
|
|
33957
|
+
setEvaluatedBids((prev) => ({ ...prev, [bidId]: outcome }));
|
|
33958
|
+
}, []);
|
|
33953
33959
|
const handleDownloadGranteesCsv = useCallback111(() => {
|
|
33954
33960
|
const namesByDid = {};
|
|
33955
33961
|
for (const [did, profile] of Object.entries(granteeProfilesByDid)) {
|
|
@@ -34219,9 +34225,32 @@ var CollectionUsersFlowDetail = ({
|
|
|
34219
34225
|
onChange: (value) => setAddQuota(value === "" || value == null ? "" : String(value)),
|
|
34220
34226
|
disabled: isDisabled || isRunning
|
|
34221
34227
|
}
|
|
34222
|
-
), addRole === "evaluate" && /* @__PURE__ */ React320.createElement(MaxAmountsInput, { value: addMaxAmounts, onChange: setAddMaxAmounts, disabled: isDisabled || isRunning }), !validation.ok && validation.error && activeOp === "add" && /* @__PURE__ */ React320.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, validation.error)), !configMissing && section === "bids" && /* @__PURE__ */ React320.createElement(
|
|
34228
|
+
), addRole === "evaluate" && /* @__PURE__ */ React320.createElement(MaxAmountsInput, { value: addMaxAmounts, onChange: setAddMaxAmounts, disabled: isDisabled || isRunning }), !validation.ok && validation.error && activeOp === "add" && /* @__PURE__ */ React320.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, validation.error)), !configMissing && section === "bids" && /* @__PURE__ */ React320.createElement(
|
|
34229
|
+
BidInboxSection,
|
|
34230
|
+
{
|
|
34231
|
+
deedDid,
|
|
34232
|
+
collectionId,
|
|
34233
|
+
adminAddress,
|
|
34234
|
+
isDisabled,
|
|
34235
|
+
handlersRef,
|
|
34236
|
+
grantees: listGrantees,
|
|
34237
|
+
evaluatedByBidId: evaluatedBids,
|
|
34238
|
+
onBidEvaluated: handleBidEvaluated,
|
|
34239
|
+
onGrantsChanged: handleManualRefreshList
|
|
34240
|
+
}
|
|
34241
|
+
), isDisabled && /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, "This block is currently disabled."));
|
|
34223
34242
|
};
|
|
34224
|
-
var BidInboxSection = ({
|
|
34243
|
+
var BidInboxSection = ({
|
|
34244
|
+
deedDid,
|
|
34245
|
+
collectionId,
|
|
34246
|
+
adminAddress,
|
|
34247
|
+
isDisabled,
|
|
34248
|
+
handlersRef,
|
|
34249
|
+
grantees,
|
|
34250
|
+
evaluatedByBidId,
|
|
34251
|
+
onBidEvaluated,
|
|
34252
|
+
onGrantsChanged
|
|
34253
|
+
}) => {
|
|
34225
34254
|
const [bids, setBids] = useState169([]);
|
|
34226
34255
|
const [loading, setLoading] = useState169(false);
|
|
34227
34256
|
const [error, setError] = useState169(null);
|
|
@@ -34232,11 +34261,22 @@ var BidInboxSection = ({ deedDid, collectionId, adminAddress, isDisabled, handle
|
|
|
34232
34261
|
const [approveMaxAmounts, setApproveMaxAmounts] = useState169(EMPTY_MAX_AMOUNTS);
|
|
34233
34262
|
const [submitting, setSubmitting] = useState169(false);
|
|
34234
34263
|
const [profilesByDid, setProfilesByDid] = useState169({});
|
|
34264
|
+
const [lastDecision, setLastDecision] = useState169(null);
|
|
34235
34265
|
const selectedBid = useMemo119(() => bids.find((b) => b.id === selectedBidId) || null, [bids, selectedBidId]);
|
|
34236
34266
|
const selectedBidIsEvaluator = useMemo119(() => {
|
|
34237
34267
|
const role = String(selectedBid?.role || "").toLowerCase();
|
|
34238
34268
|
return role === "evaluation_agent" || role === "ea";
|
|
34239
34269
|
}, [selectedBid]);
|
|
34270
|
+
const bidEvaluatedStatus = useCallback111(
|
|
34271
|
+
(bid) => {
|
|
34272
|
+
const local = evaluatedByBidId[bid.id];
|
|
34273
|
+
if (local) return local;
|
|
34274
|
+
const role = String(bid.role || "").toLowerCase();
|
|
34275
|
+
const grantRole = role === "evaluation_agent" || role === "ea" ? "evaluate" : "submit";
|
|
34276
|
+
return grantees.some((g) => g.address === bid.address && g.role === grantRole) ? "approved" : null;
|
|
34277
|
+
},
|
|
34278
|
+
[evaluatedByBidId, grantees]
|
|
34279
|
+
);
|
|
34240
34280
|
const downloadBidsCsv = useCallback111(
|
|
34241
34281
|
(subset, filename) => {
|
|
34242
34282
|
downloadArrayAsCsv(buildBidRows(subset, grantees), { filename });
|
|
@@ -34335,6 +34375,10 @@ var BidInboxSection = ({ deedDid, collectionId, adminAddress, isDisabled, handle
|
|
|
34335
34375
|
} else {
|
|
34336
34376
|
await h.rejectBid({ bidId: selectedBid.id, collectionId, did: selectedBid.did, reason: rejectReason.trim() || "Rejected", entityDid: deedDid });
|
|
34337
34377
|
}
|
|
34378
|
+
const granteeName = profilesByDid[selectedBid.did]?.displayname || selectedBid.did || selectedBid.address;
|
|
34379
|
+
onBidEvaluated(selectedBid.id, decision === "approve" ? "approved" : "rejected");
|
|
34380
|
+
if (decision === "approve") onGrantsChanged();
|
|
34381
|
+
setLastDecision({ kind: decision === "approve" ? "approved" : "rejected", name: granteeName, roleLabel: getBidRoleLabel(selectedBid.role) });
|
|
34338
34382
|
setSelectedBidId("");
|
|
34339
34383
|
setDecision("");
|
|
34340
34384
|
setRejectReason("");
|
|
@@ -34346,13 +34390,28 @@ var BidInboxSection = ({ deedDid, collectionId, adminAddress, isDisabled, handle
|
|
|
34346
34390
|
} finally {
|
|
34347
34391
|
setSubmitting(false);
|
|
34348
34392
|
}
|
|
34349
|
-
}, [
|
|
34393
|
+
}, [
|
|
34394
|
+
selectedBid,
|
|
34395
|
+
decision,
|
|
34396
|
+
adminAddress,
|
|
34397
|
+
collectionId,
|
|
34398
|
+
deedDid,
|
|
34399
|
+
rejectReason,
|
|
34400
|
+
approveQuota,
|
|
34401
|
+
approveMaxAmounts,
|
|
34402
|
+
handlersRef,
|
|
34403
|
+
refreshBids,
|
|
34404
|
+
profilesByDid,
|
|
34405
|
+
onBidEvaluated,
|
|
34406
|
+
onGrantsChanged
|
|
34407
|
+
]);
|
|
34350
34408
|
if (selectedBid) {
|
|
34351
34409
|
const profile = profilesByDid[selectedBid.did];
|
|
34352
34410
|
const displayName = profile?.displayname || selectedBid.did || selectedBid.address;
|
|
34353
34411
|
const role = String(selectedBid.role || "").toLowerCase();
|
|
34354
34412
|
const isEvaluator = role === "evaluation_agent" || role === "ea";
|
|
34355
34413
|
const maxAmounts = isEvaluator ? buildMaxAmounts(approveMaxAmounts) : [];
|
|
34414
|
+
const evaluatedStatus = bidEvaluatedStatus(selectedBid);
|
|
34356
34415
|
let bidData = null;
|
|
34357
34416
|
try {
|
|
34358
34417
|
bidData = typeof selectedBid.data === "string" ? JSON.parse(selectedBid.data) : selectedBid.data;
|
|
@@ -34380,7 +34439,16 @@ var BidInboxSection = ({ deedDid, collectionId, adminAddress, isDisabled, handle
|
|
|
34380
34439
|
}
|
|
34381
34440
|
] : []
|
|
34382
34441
|
];
|
|
34383
|
-
return /* @__PURE__ */ React320.createElement(Stack211, { gap: "md" }, /* @__PURE__ */ React320.createElement(Group116, { gap: "xs", align: "center" }, /* @__PURE__ */ React320.createElement(ActionIcon46, { variant: "subtle", color: "gray", size: "sm", onClick: () => setSelectedBidId("") }, /* @__PURE__ */ React320.createElement(IconArrowLeft10, { size: 16 })), /* @__PURE__ */ React320.createElement(Text199, { fw: 500, size: "sm", truncate: true, style: { flex: 1, minWidth: 0 } }, "Bid #", selectedBid.id), /* @__PURE__ */ React320.createElement(DownloadCsvButton, { onDownload: () => downloadBidsCsv([selectedBid], `bid-${selectedBid.id}.csv`), label: "Download bid CSV" })), /* @__PURE__ */ React320.createElement(Stack211, { gap: 4 }, /* @__PURE__ */ React320.createElement(Text199, { size: "sm", fw: 600, truncate: true }, displayName), /* @__PURE__ */ React320.createElement(Group116, { gap: "xs" }, /* @__PURE__ */ React320.createElement(Badge52, { size: "xs", variant: "light", color: getRoleColor3(selectedBid.role) }, getBidRoleLabel(selectedBid.role)), /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, truncateAddress4(selectedBid.address)))), /* @__PURE__ */ React320.createElement(CollapsibleSection, { title: "Inputs" }, bidData && typeof bidData === "object" && Object.keys(bidData).length > 0 ? /* @__PURE__ */ React320.createElement(ReadableKeyValues, { data: bidData }) : /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, "No input data available.")), /* @__PURE__ */ React320.createElement(
|
|
34442
|
+
return /* @__PURE__ */ React320.createElement(Stack211, { gap: "md" }, /* @__PURE__ */ React320.createElement(Group116, { gap: "xs", align: "center" }, /* @__PURE__ */ React320.createElement(ActionIcon46, { variant: "subtle", color: "gray", size: "sm", onClick: () => setSelectedBidId("") }, /* @__PURE__ */ React320.createElement(IconArrowLeft10, { size: 16 })), /* @__PURE__ */ React320.createElement(Text199, { fw: 500, size: "sm", truncate: true, style: { flex: 1, minWidth: 0 } }, "Bid #", selectedBid.id), /* @__PURE__ */ React320.createElement(DownloadCsvButton, { onDownload: () => downloadBidsCsv([selectedBid], `bid-${selectedBid.id}.csv`), label: "Download bid CSV" })), /* @__PURE__ */ React320.createElement(Stack211, { gap: 4 }, /* @__PURE__ */ React320.createElement(Text199, { size: "sm", fw: 600, truncate: true }, displayName), /* @__PURE__ */ React320.createElement(Group116, { gap: "xs" }, /* @__PURE__ */ React320.createElement(Badge52, { size: "xs", variant: "light", color: getRoleColor3(selectedBid.role) }, getBidRoleLabel(selectedBid.role)), /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, truncateAddress4(selectedBid.address)))), /* @__PURE__ */ React320.createElement(CollapsibleSection, { title: "Inputs" }, bidData && typeof bidData === "object" && Object.keys(bidData).length > 0 ? /* @__PURE__ */ React320.createElement(ReadableKeyValues, { data: bidData }) : /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, "No input data available.")), evaluatedStatus ? /* @__PURE__ */ React320.createElement(
|
|
34443
|
+
MantineAlert,
|
|
34444
|
+
{
|
|
34445
|
+
color: evaluatedStatus === "approved" ? "green" : "red",
|
|
34446
|
+
icon: evaluatedStatus === "approved" ? /* @__PURE__ */ React320.createElement(IconCheck24, { size: 16 }) : /* @__PURE__ */ React320.createElement(IconAlertCircle28, { size: 16 }),
|
|
34447
|
+
title: evaluatedStatus === "approved" ? "Bid approved" : "Bid rejected",
|
|
34448
|
+
styles: actionAlertStyles
|
|
34449
|
+
},
|
|
34450
|
+
evaluatedStatus === "approved" ? `${getBidRoleLabel(selectedBid.role)} access is already granted for this collection.` : "This application was declined."
|
|
34451
|
+
) : /* @__PURE__ */ React320.createElement(React320.Fragment, null, /* @__PURE__ */ React320.createElement(
|
|
34384
34452
|
BaseSelect,
|
|
34385
34453
|
{
|
|
34386
34454
|
label: "Decision",
|
|
@@ -34420,12 +34488,24 @@ var BidInboxSection = ({ deedDid, collectionId, adminAddress, isDisabled, handle
|
|
|
34420
34488
|
color: decision === "reject" ? "red" : void 0
|
|
34421
34489
|
},
|
|
34422
34490
|
decision === "reject" ? "Reject bid" : "Approve bid"
|
|
34423
|
-
));
|
|
34491
|
+
)));
|
|
34424
34492
|
}
|
|
34425
|
-
return /* @__PURE__ */ React320.createElement(Stack211, { gap: "sm" },
|
|
34493
|
+
return /* @__PURE__ */ React320.createElement(Stack211, { gap: "sm" }, lastDecision && /* @__PURE__ */ React320.createElement(
|
|
34494
|
+
MantineAlert,
|
|
34495
|
+
{
|
|
34496
|
+
color: lastDecision.kind === "approved" ? "green" : "red",
|
|
34497
|
+
icon: lastDecision.kind === "approved" ? /* @__PURE__ */ React320.createElement(IconCheck24, { size: 16 }) : /* @__PURE__ */ React320.createElement(IconAlertCircle28, { size: 16 }),
|
|
34498
|
+
title: lastDecision.kind === "approved" ? "Bid approved" : "Bid rejected",
|
|
34499
|
+
withCloseButton: true,
|
|
34500
|
+
onClose: () => setLastDecision(null),
|
|
34501
|
+
styles: actionAlertStyles
|
|
34502
|
+
},
|
|
34503
|
+
lastDecision.kind === "approved" ? `${lastDecision.roleLabel} access granted to ${lastDecision.name}. They can now ${lastDecision.roleLabel === "Evaluator" ? "evaluate" : "submit"} claims in this collection.` : `${lastDecision.name}'s application was declined.`
|
|
34504
|
+
), /* @__PURE__ */ React320.createElement(Group116, { justify: "space-between", align: "center" }, /* @__PURE__ */ React320.createElement(Text199, { size: "sm", fw: 600 }, "Incoming bids"), /* @__PURE__ */ React320.createElement(Group116, { gap: 4 }, /* @__PURE__ */ React320.createElement(DownloadCsvButton, { onDownload: handleDownloadBidsCsv, disabled: loading || bids.length === 0, label: "Download bids CSV" }), /* @__PURE__ */ React320.createElement(ActionIcon46, { variant: "subtle", color: "gray", size: "sm", onClick: refreshBids, disabled: loading }, /* @__PURE__ */ React320.createElement(IconRefresh9, { size: 16 })))), /* @__PURE__ */ React320.createElement(Divider22, { color: "color-mix(in srgb, var(--mantine-color-text) 6%, transparent)" }), loading && /* @__PURE__ */ React320.createElement(Group116, { gap: "xs", justify: "center", py: "sm" }, /* @__PURE__ */ React320.createElement(Loader61, { size: "xs" }), /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, "Loading bids\u2026")), !loading && bids.length === 0 && /* @__PURE__ */ React320.createElement(Text199, { size: "sm", c: "dimmed", ta: "center", py: "sm" }, "No bids available for this collection."), bids.map((bid) => {
|
|
34426
34505
|
const profile = profilesByDid[bid.did];
|
|
34427
34506
|
const displayName = profile?.displayname || bid.did || bid.address;
|
|
34428
|
-
|
|
34507
|
+
const status = bidEvaluatedStatus(bid) || "pending";
|
|
34508
|
+
return /* @__PURE__ */ React320.createElement(ListItemContainer, { key: bid.id, isChecked: false, onClick: () => setSelectedBidId(bid.id) }, /* @__PURE__ */ React320.createElement(Stack211, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React320.createElement(Text199, { fw: 500, size: "sm", truncate: true }, displayName), /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed", truncate: true }, truncateAddress4(bid.address))), /* @__PURE__ */ React320.createElement(Stack211, { gap: 2, align: "flex-end", style: { flexShrink: 0 } }, /* @__PURE__ */ React320.createElement(Group116, { gap: 4 }, /* @__PURE__ */ React320.createElement(Badge52, { size: "xs", variant: "light", color: getRoleColor3(bid.role) }, getBidRoleLabel(bid.role)), /* @__PURE__ */ React320.createElement(Badge52, { size: "xs", variant: "light", color: status === "approved" ? "green" : status === "rejected" ? "red" : "gray" }, status === "approved" ? "Approved" : status === "rejected" ? "Rejected" : "Pending")), /* @__PURE__ */ React320.createElement(Text199, { size: "xs", c: "dimmed" }, getTimeAgo3(bid.created || ""))));
|
|
34429
34509
|
}), error && /* @__PURE__ */ React320.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error));
|
|
34430
34510
|
};
|
|
34431
34511
|
|
|
@@ -34752,7 +34832,7 @@ var EvaluateClaimConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
34752
34832
|
|
|
34753
34833
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/EvaluateClaimFlowDetail.tsx
|
|
34754
34834
|
import React324, { useCallback as useCallback114, useEffect as useEffect117, useMemo as useMemo122, useRef as useRef45, useState as useState173 } from "react";
|
|
34755
|
-
import { ActionIcon as ActionIcon48, Box as Box62, Button as Button69, Checkbox as Checkbox14, Divider as Divider23, Group as Group120, Loader as Loader64, ScrollArea as ScrollArea8, Stack as Stack215, Text as Text203, UnstyledButton as
|
|
34835
|
+
import { ActionIcon as ActionIcon48, Box as Box62, Button as Button69, Checkbox as Checkbox14, Divider as Divider23, Group as Group120, Loader as Loader64, ScrollArea as ScrollArea8, Stack as Stack215, Text as Text203, UnstyledButton as UnstyledButton7 } from "@mantine/core";
|
|
34756
34836
|
import { IconArrowLeft as IconArrowLeft11, IconCheck as IconCheck26, IconFilter as IconFilter2 } from "@tabler/icons-react";
|
|
34757
34837
|
import { SurveyModel as SurveyModel11 } from "@ixo/surveys";
|
|
34758
34838
|
|
|
@@ -34954,7 +35034,7 @@ var EvaluationReportSection = ({ runtime, selectedClaimId }) => {
|
|
|
34954
35034
|
|
|
34955
35035
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/ClaimAttachments.tsx
|
|
34956
35036
|
import React323, { useCallback as useCallback113, useEffect as useEffect116, useMemo as useMemo121, useRef as useRef44, useState as useState172 } from "react";
|
|
34957
|
-
import { Box as Box61, Group as Group119, Loader as Loader63, SimpleGrid as SimpleGrid4, Stack as Stack214, Text as Text202, Tooltip as Tooltip31, UnstyledButton as
|
|
35037
|
+
import { Box as Box61, Group as Group119, Loader as Loader63, SimpleGrid as SimpleGrid4, Stack as Stack214, Text as Text202, Tooltip as Tooltip31, UnstyledButton as UnstyledButton6 } from "@mantine/core";
|
|
34958
35038
|
import { IconFile as IconFile5, IconFileText as IconFileText6, IconMusic, IconPhoto as IconPhoto5, IconVideo } from "@tabler/icons-react";
|
|
34959
35039
|
function toMediaFile(raw) {
|
|
34960
35040
|
if (!raw) return null;
|
|
@@ -35110,7 +35190,7 @@ var ClaimAttachments = ({ surveyModel, credentialSubject, entityDid }) => {
|
|
|
35110
35190
|
const displayUrl = resolved[item.content] || (!fetchClaimMedia ? item.content : "");
|
|
35111
35191
|
const isFetching = !!pending[item.content] || openingKey === item.content;
|
|
35112
35192
|
return /* @__PURE__ */ React323.createElement(Tooltip31, { key: `${item.content}-${index}`, label: item.label, openDelay: 400, disabled: !item.label || item.label === item.name }, /* @__PURE__ */ React323.createElement(
|
|
35113
|
-
|
|
35193
|
+
UnstyledButton6,
|
|
35114
35194
|
{
|
|
35115
35195
|
onClick: () => handleOpen(item),
|
|
35116
35196
|
style: {
|
|
@@ -35862,7 +35942,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
35862
35942
|
did: "DID",
|
|
35863
35943
|
claimCollection: "claim collection"
|
|
35864
35944
|
})) : /* @__PURE__ */ React324.createElement(React324.Fragment, null, flowManagerContext, /* @__PURE__ */ React324.createElement(EvaluationReportSection, { runtime }), /* @__PURE__ */ React324.createElement(Group120, { justify: "space-between", align: "center" }, /* @__PURE__ */ React324.createElement(Group120, { gap: 0 }, filterTabs.map((tab) => /* @__PURE__ */ React324.createElement(
|
|
35865
|
-
|
|
35945
|
+
UnstyledButton7,
|
|
35866
35946
|
{
|
|
35867
35947
|
key: tab.value,
|
|
35868
35948
|
onClick: () => setActiveFilter(tab.value),
|
|
@@ -39263,9 +39343,9 @@ function finaliseLineItem(cells) {
|
|
|
39263
39343
|
|
|
39264
39344
|
// src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroLineItemsEditor.tsx
|
|
39265
39345
|
import React353, { useCallback as useCallback142, useMemo as useMemo140 } from "react";
|
|
39266
|
-
import { ActionIcon as ActionIcon49, Alert as Alert51, Box as Box67, Button as Button78, Collapse as
|
|
39346
|
+
import { ActionIcon as ActionIcon49, Alert as Alert51, Box as Box67, Button as Button78, Collapse as Collapse11, Divider as Divider30, Group as Group129, SegmentedControl as SegmentedControl18, Stack as Stack244, Text as Text228, Tooltip as Tooltip33 } from "@mantine/core";
|
|
39267
39347
|
import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
|
|
39268
|
-
import { IconChevronDown as IconChevronDown10, IconChevronRight as
|
|
39348
|
+
import { IconChevronDown as IconChevronDown10, IconChevronRight as IconChevronRight13, IconPlus as IconPlus10, IconTrash as IconTrash11 } from "@tabler/icons-react";
|
|
39269
39349
|
function getNestedField(fields, path) {
|
|
39270
39350
|
if (!fields || !path) return void 0;
|
|
39271
39351
|
return fields.find((f) => f.path === path);
|
|
@@ -39423,12 +39503,12 @@ function LineItemRowCard({
|
|
|
39423
39503
|
variant: "subtle",
|
|
39424
39504
|
color: "gray",
|
|
39425
39505
|
onClick: toggleAdvanced,
|
|
39426
|
-
leftSection: advancedOpen ? /* @__PURE__ */ React353.createElement(IconChevronDown10, { size: 14 }) : /* @__PURE__ */ React353.createElement(
|
|
39506
|
+
leftSection: advancedOpen ? /* @__PURE__ */ React353.createElement(IconChevronDown10, { size: 14 }) : /* @__PURE__ */ React353.createElement(IconChevronRight13, { size: 14 }),
|
|
39427
39507
|
style: { alignSelf: "flex-start" }
|
|
39428
39508
|
},
|
|
39429
39509
|
advancedOpen ? "Hide" : "More",
|
|
39430
39510
|
" (Tax, Item code, Discount)"
|
|
39431
|
-
), /* @__PURE__ */ React353.createElement(
|
|
39511
|
+
), /* @__PURE__ */ React353.createElement(Collapse11, { in: advancedOpen }, /* @__PURE__ */ React353.createElement(Stack244, { gap: "xs" }, /* @__PURE__ */ React353.createElement(
|
|
39432
39512
|
DataInput,
|
|
39433
39513
|
{
|
|
39434
39514
|
label: "Tax type",
|
|
@@ -41020,8 +41100,8 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
|
|
|
41020
41100
|
|
|
41021
41101
|
// src/mantine/blocks/action/actionTypes/_shared/DynamicToolForm.tsx
|
|
41022
41102
|
import React361, { useMemo as useMemo145, useState as useState212 } from "react";
|
|
41023
|
-
import { Button as Button83, Collapse as
|
|
41024
|
-
import { IconChevronDown as IconChevronDown11, IconChevronRight as
|
|
41103
|
+
import { Button as Button83, Collapse as Collapse12, Stack as Stack252 } from "@mantine/core";
|
|
41104
|
+
import { IconChevronDown as IconChevronDown11, IconChevronRight as IconChevronRight14 } from "@tabler/icons-react";
|
|
41025
41105
|
var ALWAYS_EXCLUDE = /* @__PURE__ */ new Set(["user_id", "connected_account_id"]);
|
|
41026
41106
|
function prettify(name) {
|
|
41027
41107
|
return name.replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
|
|
@@ -41089,7 +41169,7 @@ var DynamicToolForm = ({ schema, values, onChange, editorDocument, blockId, read
|
|
|
41089
41169
|
variant: "subtle",
|
|
41090
41170
|
size: "xs",
|
|
41091
41171
|
color: "gray",
|
|
41092
|
-
leftSection: showOptional ? /* @__PURE__ */ React361.createElement(IconChevronDown11, { size: 14 }) : /* @__PURE__ */ React361.createElement(
|
|
41172
|
+
leftSection: showOptional ? /* @__PURE__ */ React361.createElement(IconChevronDown11, { size: 14 }) : /* @__PURE__ */ React361.createElement(IconChevronRight14, { size: 14 }),
|
|
41093
41173
|
onClick: () => setShowOptional((s) => !s),
|
|
41094
41174
|
style: { alignSelf: "flex-start" }
|
|
41095
41175
|
},
|
|
@@ -41097,7 +41177,7 @@ var DynamicToolForm = ({ schema, values, onChange, editorDocument, blockId, read
|
|
|
41097
41177
|
" optional fields (",
|
|
41098
41178
|
optional.length,
|
|
41099
41179
|
")"
|
|
41100
|
-
), /* @__PURE__ */ React361.createElement(
|
|
41180
|
+
), /* @__PURE__ */ React361.createElement(Collapse12, { in: showOptional }, /* @__PURE__ */ React361.createElement(Stack252, { gap: "sm" }, optional.map(renderField)))));
|
|
41101
41181
|
};
|
|
41102
41182
|
|
|
41103
41183
|
// src/mantine/blocks/action/actionTypes/_shared/DelegatedActionConfig.tsx
|
|
@@ -42512,16 +42592,15 @@ import { Stack as Stack268, Text as Text249, NumberInput as NumberInput15 } from
|
|
|
42512
42592
|
function parseWalletFundInputs(json) {
|
|
42513
42593
|
try {
|
|
42514
42594
|
const parsed = typeof json === "string" ? JSON.parse(json) : json;
|
|
42515
|
-
if (!parsed?.address) {
|
|
42516
|
-
throw new TypeError("Missing address");
|
|
42517
|
-
}
|
|
42518
42595
|
return {
|
|
42519
42596
|
address: parsed?.address || "",
|
|
42520
42597
|
amount: parsed?.amount ?? 25e4
|
|
42521
42598
|
};
|
|
42522
|
-
} catch
|
|
42523
|
-
|
|
42524
|
-
|
|
42599
|
+
} catch {
|
|
42600
|
+
return {
|
|
42601
|
+
address: "",
|
|
42602
|
+
amount: 25e4
|
|
42603
|
+
};
|
|
42525
42604
|
}
|
|
42526
42605
|
}
|
|
42527
42606
|
function serializeWalletFundInputs(inputs) {
|
|
@@ -43905,7 +43984,7 @@ var OracleStoreSecretsConfig = ({ inputs, onInputsChange }) => {
|
|
|
43905
43984
|
|
|
43906
43985
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsFlowDetail.tsx
|
|
43907
43986
|
import React394, { useCallback as useCallback179, useEffect as useEffect171, useMemo as useMemo159, useRef as useRef52, useState as useState234 } from "react";
|
|
43908
|
-
import { Button as Button96, Collapse as
|
|
43987
|
+
import { Button as Button96, Collapse as Collapse13, Divider as Divider37, Group as Group149, Loader as Loader91, Stack as Stack285, Text as Text266 } from "@mantine/core";
|
|
43909
43988
|
import { IconAlertCircle as IconAlertCircle46, IconCheck as IconCheck44, IconChevronDown as IconChevronDown12, IconChevronUp as IconChevronUp5, IconLock } from "@tabler/icons-react";
|
|
43910
43989
|
|
|
43911
43990
|
// src/mantine/blocks/action/hooks/useIdempotencyCheck.ts
|
|
@@ -44086,7 +44165,7 @@ var OracleStoreSecretsFlowDetail = ({ inputs, editor, block, runtime, updateRunt
|
|
|
44086
44165
|
onChange: (event) => setOpenRouterDraft(event.currentTarget.value),
|
|
44087
44166
|
style: { flex: 1 }
|
|
44088
44167
|
}
|
|
44089
|
-
) : /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "OPEN_ROUTER_API_KEY", readOnly: true, type: "password", value: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", style: { flex: 1 } })), /* @__PURE__ */ React394.createElement(Group149, { gap: "xs", justify: "flex-end" }, isEditingOpenRouter ? /* @__PURE__ */ React394.createElement(React394.Fragment, null, /* @__PURE__ */ React394.createElement(Button96, { size: "xs", onClick: handleSaveOpenRouter, loading: isEncryptingOpenRouter, disabled: !openRouterDraft || !resolvedInputs.publicKeyMultibase }, "Save"), hasOpenRouter && /* @__PURE__ */ React394.createElement(Button96, { size: "xs", variant: "subtle", onClick: handleCancelEditOpenRouter }, "Cancel")) : /* @__PURE__ */ React394.createElement(Button96, { size: "xs", variant: "outline", onClick: handleChangeOpenRouter }, "Change")), /* @__PURE__ */ React394.createElement(Divider37, { variant: "dashed" }), /* @__PURE__ */ React394.createElement(Text266, { size: "sm", fw: 600 }, "Identifiers (stored as plain config \u2014 not encrypted)"), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "MATRIX_ORACLE_ADMIN_USER_ID", readOnly: true, value: resolvedInputs.matrixUserId }), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "MATRIX_ACCOUNT_ROOM_ID", readOnly: true, value: resolvedInputs.matrixAccountRoomId }), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "ORACLE_ENTITY_DID", readOnly: true, value: resolvedInputs.entityDid }), /* @__PURE__ */ React394.createElement(Divider37, { variant: "dashed" }), /* @__PURE__ */ React394.createElement(Stack285, { gap: "xs" }, /* @__PURE__ */ React394.createElement(Group149, { justify: "space-between", style: { cursor: "pointer", userSelect: "none" }, onClick: () => setShowAdditional((v) => !v) }, /* @__PURE__ */ React394.createElement(Text266, { size: "sm", fw: 500 }, "Additional Configuration"), /* @__PURE__ */ React394.createElement(Group149, { gap: 6 }, /* @__PURE__ */ React394.createElement(Text266, { size: "xs", c: "dimmed" }, "Stored as plain config \u2014 not encrypted"), showAdditional ? /* @__PURE__ */ React394.createElement(IconChevronUp5, { size: 14 }) : /* @__PURE__ */ React394.createElement(IconChevronDown12, { size: 14 }))), /* @__PURE__ */ React394.createElement(
|
|
44168
|
+
) : /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "OPEN_ROUTER_API_KEY", readOnly: true, type: "password", value: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", style: { flex: 1 } })), /* @__PURE__ */ React394.createElement(Group149, { gap: "xs", justify: "flex-end" }, isEditingOpenRouter ? /* @__PURE__ */ React394.createElement(React394.Fragment, null, /* @__PURE__ */ React394.createElement(Button96, { size: "xs", onClick: handleSaveOpenRouter, loading: isEncryptingOpenRouter, disabled: !openRouterDraft || !resolvedInputs.publicKeyMultibase }, "Save"), hasOpenRouter && /* @__PURE__ */ React394.createElement(Button96, { size: "xs", variant: "subtle", onClick: handleCancelEditOpenRouter }, "Cancel")) : /* @__PURE__ */ React394.createElement(Button96, { size: "xs", variant: "outline", onClick: handleChangeOpenRouter }, "Change")), /* @__PURE__ */ React394.createElement(Divider37, { variant: "dashed" }), /* @__PURE__ */ React394.createElement(Text266, { size: "sm", fw: 600 }, "Identifiers (stored as plain config \u2014 not encrypted)"), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "MATRIX_ORACLE_ADMIN_USER_ID", readOnly: true, value: resolvedInputs.matrixUserId }), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "MATRIX_ACCOUNT_ROOM_ID", readOnly: true, value: resolvedInputs.matrixAccountRoomId }), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "ORACLE_ENTITY_DID", readOnly: true, value: resolvedInputs.entityDid }), /* @__PURE__ */ React394.createElement(Divider37, { variant: "dashed" }), /* @__PURE__ */ React394.createElement(Stack285, { gap: "xs" }, /* @__PURE__ */ React394.createElement(Group149, { justify: "space-between", style: { cursor: "pointer", userSelect: "none" }, onClick: () => setShowAdditional((v) => !v) }, /* @__PURE__ */ React394.createElement(Text266, { size: "sm", fw: 500 }, "Additional Configuration"), /* @__PURE__ */ React394.createElement(Group149, { gap: 6 }, /* @__PURE__ */ React394.createElement(Text266, { size: "xs", c: "dimmed" }, "Stored as plain config \u2014 not encrypted"), showAdditional ? /* @__PURE__ */ React394.createElement(IconChevronUp5, { size: 14 }) : /* @__PURE__ */ React394.createElement(IconChevronDown12, { size: 14 }))), /* @__PURE__ */ React394.createElement(Collapse13, { in: showAdditional }, /* @__PURE__ */ React394.createElement(Stack285, { gap: "xs", pt: "xs" }, isLoadingConstants && /* @__PURE__ */ React394.createElement(Group149, { gap: 6 }, /* @__PURE__ */ React394.createElement(Loader91, { size: 12 }), /* @__PURE__ */ React394.createElement(Text266, { size: "xs", c: "dimmed" }, "Loading network constants\u2026")), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "ORACLE_NAME", value: resolvedInputs.oracleName || "", readOnly: true }), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "ORACLE_ADDRESS", value: resolvedInputs.oracleAddress || "", readOnly: true }), /* @__PURE__ */ React394.createElement(BaseTextInput, { label: "ORACLE_DID", value: resolvedInputs.oracleDid || "", readOnly: true }), networkConstants && Object.entries(networkConstants).map(([key, value]) => /* @__PURE__ */ React394.createElement(BaseTextInput, { key, label: key, value, readOnly: true }))))), isRunning && /* @__PURE__ */ React394.createElement(Group149, { gap: "xs" }, /* @__PURE__ */ React394.createElement(Loader91, { size: 14 }), /* @__PURE__ */ React394.createElement(Text266, { size: "sm" }, "Encrypting and storing secrets in matrix room...")), /* @__PURE__ */ React394.createElement(Group149, { justify: "flex-end" }, /* @__PURE__ */ React394.createElement(Button96, { variant: "filled", size: "sm", onClick: handleExecute, disabled: submitDisabled }, "Store Secrets"))), isFailed && errorMessage && /* @__PURE__ */ React394.createElement(DismissibleAlert, { icon: /* @__PURE__ */ React394.createElement(IconAlertCircle46, { size: 16 }), color: "red", styles: actionAlertStyles }, errorMessage), isFailed && /* @__PURE__ */ React394.createElement(Group149, null, /* @__PURE__ */ React394.createElement(Button96, { variant: "outline", onClick: handleRetry }, "Try Again")));
|
|
44090
44169
|
};
|
|
44091
44170
|
|
|
44092
44171
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/index.ts
|
|
@@ -44637,7 +44716,7 @@ var OracleStoreSecretsAndConfigConfig = ({ inputs, onInputsChange }) => {
|
|
|
44637
44716
|
|
|
44638
44717
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigFlowDetail.tsx
|
|
44639
44718
|
import React398, { useCallback as useCallback183, useEffect as useEffect174, useMemo as useMemo161, useRef as useRef53, useState as useState237 } from "react";
|
|
44640
|
-
import { Button as Button98, Collapse as
|
|
44719
|
+
import { Button as Button98, Collapse as Collapse14, Divider as Divider40, Group as Group151, Loader as Loader93, Stack as Stack289, Text as Text270 } from "@mantine/core";
|
|
44641
44720
|
import { IconAlertCircle as IconAlertCircle48, IconCheck as IconCheck46, IconChevronDown as IconChevronDown13, IconChevronUp as IconChevronUp6, IconLock as IconLock2 } from "@tabler/icons-react";
|
|
44642
44721
|
var EXPECTED_SECRETS2 = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
|
|
44643
44722
|
var FIELDS2 = [
|
|
@@ -44806,7 +44885,7 @@ var OracleStoreSecretsAndConfigFlowDetail = ({ inputs, editor, block, runtime, u
|
|
|
44806
44885
|
onChange: (event) => setOpenRouterDraft(event.currentTarget.value),
|
|
44807
44886
|
style: { flex: 1 }
|
|
44808
44887
|
}
|
|
44809
|
-
) : /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "OPEN_ROUTER_API_KEY", readOnly: true, type: "password", value: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", style: { flex: 1 } })), /* @__PURE__ */ React398.createElement(Group151, { gap: "xs", justify: "flex-end" }, isEditingOpenRouter ? /* @__PURE__ */ React398.createElement(React398.Fragment, null, /* @__PURE__ */ React398.createElement(Button98, { size: "xs", onClick: handleSaveOpenRouter, loading: isEncryptingOpenRouter, disabled: !openRouterDraft || !resolvedInputs.publicKeyMultibase }, "Save"), hasOpenRouter && /* @__PURE__ */ React398.createElement(Button98, { size: "xs", variant: "subtle", onClick: handleCancelEditOpenRouter }, "Cancel")) : /* @__PURE__ */ React398.createElement(Button98, { size: "xs", variant: "outline", onClick: handleChangeOpenRouter }, "Change")), /* @__PURE__ */ React398.createElement(Divider40, { variant: "dashed" }), /* @__PURE__ */ React398.createElement(Text270, { size: "sm", fw: 600 }, "Identifiers (stored as plain config)"), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "MATRIX_ORACLE_ADMIN_USER_ID", readOnly: true, value: resolvedInputs.matrixUserId }), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "MATRIX_ACCOUNT_ROOM_ID", readOnly: true, value: resolvedInputs.matrixAccountRoomId }), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "ORACLE_ENTITY_DID", readOnly: true, value: resolvedInputs.entityDid }), /* @__PURE__ */ React398.createElement(Divider40, { variant: "dashed" }), /* @__PURE__ */ React398.createElement(Stack289, { gap: "xs" }, /* @__PURE__ */ React398.createElement(Group151, { justify: "space-between", style: { cursor: "pointer", userSelect: "none" }, onClick: () => setShowAdditional((v) => !v) }, /* @__PURE__ */ React398.createElement(Text270, { size: "sm", fw: 500 }, "Additional Configuration"), /* @__PURE__ */ React398.createElement(Group151, { gap: 6 }, /* @__PURE__ */ React398.createElement(Text270, { size: "xs", c: "dimmed" }, "Stored as plain config"), showAdditional ? /* @__PURE__ */ React398.createElement(IconChevronUp6, { size: 14 }) : /* @__PURE__ */ React398.createElement(IconChevronDown13, { size: 14 }))), /* @__PURE__ */ React398.createElement(
|
|
44888
|
+
) : /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "OPEN_ROUTER_API_KEY", readOnly: true, type: "password", value: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", style: { flex: 1 } })), /* @__PURE__ */ React398.createElement(Group151, { gap: "xs", justify: "flex-end" }, isEditingOpenRouter ? /* @__PURE__ */ React398.createElement(React398.Fragment, null, /* @__PURE__ */ React398.createElement(Button98, { size: "xs", onClick: handleSaveOpenRouter, loading: isEncryptingOpenRouter, disabled: !openRouterDraft || !resolvedInputs.publicKeyMultibase }, "Save"), hasOpenRouter && /* @__PURE__ */ React398.createElement(Button98, { size: "xs", variant: "subtle", onClick: handleCancelEditOpenRouter }, "Cancel")) : /* @__PURE__ */ React398.createElement(Button98, { size: "xs", variant: "outline", onClick: handleChangeOpenRouter }, "Change")), /* @__PURE__ */ React398.createElement(Divider40, { variant: "dashed" }), /* @__PURE__ */ React398.createElement(Text270, { size: "sm", fw: 600 }, "Identifiers (stored as plain config)"), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "MATRIX_ORACLE_ADMIN_USER_ID", readOnly: true, value: resolvedInputs.matrixUserId }), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "MATRIX_ACCOUNT_ROOM_ID", readOnly: true, value: resolvedInputs.matrixAccountRoomId }), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "ORACLE_ENTITY_DID", readOnly: true, value: resolvedInputs.entityDid }), /* @__PURE__ */ React398.createElement(Divider40, { variant: "dashed" }), /* @__PURE__ */ React398.createElement(Stack289, { gap: "xs" }, /* @__PURE__ */ React398.createElement(Group151, { justify: "space-between", style: { cursor: "pointer", userSelect: "none" }, onClick: () => setShowAdditional((v) => !v) }, /* @__PURE__ */ React398.createElement(Text270, { size: "sm", fw: 500 }, "Additional Configuration"), /* @__PURE__ */ React398.createElement(Group151, { gap: 6 }, /* @__PURE__ */ React398.createElement(Text270, { size: "xs", c: "dimmed" }, "Stored as plain config"), showAdditional ? /* @__PURE__ */ React398.createElement(IconChevronUp6, { size: 14 }) : /* @__PURE__ */ React398.createElement(IconChevronDown13, { size: 14 }))), /* @__PURE__ */ React398.createElement(Collapse14, { in: showAdditional }, /* @__PURE__ */ React398.createElement(Stack289, { gap: "xs", pt: "xs" }, isLoadingConstants && /* @__PURE__ */ React398.createElement(Group151, { gap: 6 }, /* @__PURE__ */ React398.createElement(Loader93, { size: 12 }), /* @__PURE__ */ React398.createElement(Text270, { size: "xs", c: "dimmed" }, "Loading network constants...")), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "ORACLE_NAME", value: resolvedInputs.oracleName || "", readOnly: true }), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "ORACLE_ADDRESS", value: resolvedInputs.oracleAddress || "", readOnly: true }), /* @__PURE__ */ React398.createElement(BaseTextInput, { label: "ORACLE_DID", value: resolvedInputs.oracleDid || "", readOnly: true }), networkConstants && Object.entries(networkConstants).map(([key, value]) => /* @__PURE__ */ React398.createElement(BaseTextInput, { key, label: key, value, readOnly: true }))))), isRunning && /* @__PURE__ */ React398.createElement(Group151, { gap: "xs" }, /* @__PURE__ */ React398.createElement(Loader93, { size: 14 }), /* @__PURE__ */ React398.createElement(Text270, { size: "sm" }, "Storing secrets and configuration...")), /* @__PURE__ */ React398.createElement(Group151, { justify: "flex-end" }, /* @__PURE__ */ React398.createElement(Button98, { variant: "filled", size: "sm", onClick: handleExecute, disabled: submitDisabled }, "Store Secrets & Config"))), isFailed && errorMessage && /* @__PURE__ */ React398.createElement(DismissibleAlert, { icon: /* @__PURE__ */ React398.createElement(IconAlertCircle48, { size: 16 }), color: "red", styles: actionAlertStyles }, errorMessage), isFailed && /* @__PURE__ */ React398.createElement(Group151, null, /* @__PURE__ */ React398.createElement(Button98, { variant: "outline", onClick: handleRetry }, "Try Again")));
|
|
44810
44889
|
};
|
|
44811
44890
|
|
|
44812
44891
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/index.ts
|
|
@@ -45083,7 +45162,7 @@ var OracleConfigureOracleConfig = ({ inputs, onInputsChange }) => {
|
|
|
45083
45162
|
|
|
45084
45163
|
// src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleFlowDetail.tsx
|
|
45085
45164
|
import React400, { useCallback as useCallback185, useEffect as useEffect176, useMemo as useMemo162, useRef as useRef54, useState as useState239 } from "react";
|
|
45086
|
-
import { Button as Button99, Collapse as
|
|
45165
|
+
import { Button as Button99, Collapse as Collapse15, Divider as Divider42, Group as Group152, Loader as Loader94, Stack as Stack291, Text as Text272 } from "@mantine/core";
|
|
45087
45166
|
import { IconAlertCircle as IconAlertCircle49, IconCheck as IconCheck47, IconChevronDown as IconChevronDown14, IconChevronUp as IconChevronUp7, IconLock as IconLock4 } from "@tabler/icons-react";
|
|
45088
45167
|
var EXPECTED_SECRETS3 = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
|
|
45089
45168
|
var FIELDS3 = [
|
|
@@ -45287,7 +45366,7 @@ var OracleConfigureOracleFlowDetail = ({ inputs, editor, block, runtime, updateR
|
|
|
45287
45366
|
onChange: (event) => setOpenRouterDraft(event.currentTarget.value),
|
|
45288
45367
|
style: { flex: 1 }
|
|
45289
45368
|
}
|
|
45290
|
-
) : /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "OPEN_ROUTER_API_KEY", readOnly: true, type: "password", value: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", style: { flex: 1 } })), /* @__PURE__ */ React400.createElement(Group152, { gap: "xs", justify: "flex-end" }, isEditingOpenRouter ? /* @__PURE__ */ React400.createElement(React400.Fragment, null, /* @__PURE__ */ React400.createElement(Button99, { size: "xs", onClick: handleSaveOpenRouter, loading: isEncryptingOpenRouter, disabled: !openRouterDraft || !resolvedInputs.publicKeyMultibase }, "Save"), hasOpenRouter && /* @__PURE__ */ React400.createElement(Button99, { size: "xs", variant: "subtle", onClick: handleCancelEditOpenRouter }, "Cancel")) : /* @__PURE__ */ React400.createElement(Button99, { size: "xs", variant: "outline", onClick: handleChangeOpenRouter }, "Change")), /* @__PURE__ */ React400.createElement(Divider42, { variant: "dashed" }), /* @__PURE__ */ React400.createElement(Text272, { size: "sm", fw: 600 }, "Identifiers (stored as plain config)"), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "MATRIX_ORACLE_ADMIN_USER_ID", readOnly: true, value: resolvedInputs.matrixUserId }), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "MATRIX_ACCOUNT_ROOM_ID", readOnly: true, value: resolvedInputs.matrixAccountRoomId }), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "ORACLE_ENTITY_DID", readOnly: true, value: resolvedInputs.entityDid }), /* @__PURE__ */ React400.createElement(Divider42, { variant: "dashed" }), /* @__PURE__ */ React400.createElement(Stack291, { gap: "xs" }, /* @__PURE__ */ React400.createElement(Group152, { justify: "space-between", style: { cursor: "pointer", userSelect: "none" }, onClick: () => setShowAdditional((v) => !v) }, /* @__PURE__ */ React400.createElement(Text272, { size: "sm", fw: 500 }, "Additional Configuration"), /* @__PURE__ */ React400.createElement(Group152, { gap: 6 }, /* @__PURE__ */ React400.createElement(Text272, { size: "xs", c: "dimmed" }, "Stored as plain config"), showAdditional ? /* @__PURE__ */ React400.createElement(IconChevronUp7, { size: 14 }) : /* @__PURE__ */ React400.createElement(IconChevronDown14, { size: 14 }))), /* @__PURE__ */ React400.createElement(
|
|
45369
|
+
) : /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "OPEN_ROUTER_API_KEY", readOnly: true, type: "password", value: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", style: { flex: 1 } })), /* @__PURE__ */ React400.createElement(Group152, { gap: "xs", justify: "flex-end" }, isEditingOpenRouter ? /* @__PURE__ */ React400.createElement(React400.Fragment, null, /* @__PURE__ */ React400.createElement(Button99, { size: "xs", onClick: handleSaveOpenRouter, loading: isEncryptingOpenRouter, disabled: !openRouterDraft || !resolvedInputs.publicKeyMultibase }, "Save"), hasOpenRouter && /* @__PURE__ */ React400.createElement(Button99, { size: "xs", variant: "subtle", onClick: handleCancelEditOpenRouter }, "Cancel")) : /* @__PURE__ */ React400.createElement(Button99, { size: "xs", variant: "outline", onClick: handleChangeOpenRouter }, "Change")), /* @__PURE__ */ React400.createElement(Divider42, { variant: "dashed" }), /* @__PURE__ */ React400.createElement(Text272, { size: "sm", fw: 600 }, "Identifiers (stored as plain config)"), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "MATRIX_ORACLE_ADMIN_USER_ID", readOnly: true, value: resolvedInputs.matrixUserId }), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "MATRIX_ACCOUNT_ROOM_ID", readOnly: true, value: resolvedInputs.matrixAccountRoomId }), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "ORACLE_ENTITY_DID", readOnly: true, value: resolvedInputs.entityDid }), /* @__PURE__ */ React400.createElement(Divider42, { variant: "dashed" }), /* @__PURE__ */ React400.createElement(Stack291, { gap: "xs" }, /* @__PURE__ */ React400.createElement(Group152, { justify: "space-between", style: { cursor: "pointer", userSelect: "none" }, onClick: () => setShowAdditional((v) => !v) }, /* @__PURE__ */ React400.createElement(Text272, { size: "sm", fw: 500 }, "Additional Configuration"), /* @__PURE__ */ React400.createElement(Group152, { gap: 6 }, /* @__PURE__ */ React400.createElement(Text272, { size: "xs", c: "dimmed" }, "Stored as plain config"), showAdditional ? /* @__PURE__ */ React400.createElement(IconChevronUp7, { size: 14 }) : /* @__PURE__ */ React400.createElement(IconChevronDown14, { size: 14 }))), /* @__PURE__ */ React400.createElement(Collapse15, { in: showAdditional }, /* @__PURE__ */ React400.createElement(Stack291, { gap: "xs", pt: "xs" }, isLoadingConstants && /* @__PURE__ */ React400.createElement(Group152, { gap: 6 }, /* @__PURE__ */ React400.createElement(Loader94, { size: 12 }), /* @__PURE__ */ React400.createElement(Text272, { size: "xs", c: "dimmed" }, "Loading network constants...")), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "ORACLE_NAME", value: resolvedInputs.oracleName || "", readOnly: true }), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "ORACLE_ADDRESS", value: resolvedInputs.oracleAddress || "", readOnly: true }), /* @__PURE__ */ React400.createElement(BaseTextInput, { label: "ORACLE_DID", value: resolvedInputs.oracleDid || "", readOnly: true }), networkConstants && Object.entries(networkConstants).map(([key, value]) => /* @__PURE__ */ React400.createElement(BaseTextInput, { key, label: key, value, readOnly: true }))))), isRunning && /* @__PURE__ */ React400.createElement(Group152, { gap: "xs" }, /* @__PURE__ */ React400.createElement(Loader94, { size: 14 }), /* @__PURE__ */ React400.createElement(Text272, { size: "sm" }, "Contracting oracle, storing secrets, and saving configuration...")), /* @__PURE__ */ React400.createElement(Group152, { justify: "flex-end" }, /* @__PURE__ */ React400.createElement(Button99, { variant: "filled", size: "sm", onClick: handleExecute, disabled: submitDisabled }, "Configure Oracle"))), isFailed && errorMessage && /* @__PURE__ */ React400.createElement(DismissibleAlert, { icon: /* @__PURE__ */ React400.createElement(IconAlertCircle49, { size: 16 }), color: "red", styles: actionAlertStyles }, errorMessage), isFailed && /* @__PURE__ */ React400.createElement(Group152, null, /* @__PURE__ */ React400.createElement(Button99, { variant: "outline", onClick: handleRetry }, "Try Again")));
|
|
45291
45370
|
};
|
|
45292
45371
|
|
|
45293
45372
|
// src/mantine/blocks/action/actionTypes/oracleConfigureOracle/index.ts
|
|
@@ -46621,7 +46700,7 @@ import { createReactBlockSpec as createReactBlockSpec23 } from "@blocknote/react
|
|
|
46621
46700
|
|
|
46622
46701
|
// src/mantine/blocks/secrets/SecretsBlock.tsx
|
|
46623
46702
|
import React425, { useCallback as useCallback193, useMemo as useMemo170, useState as useState245 } from "react";
|
|
46624
|
-
import { Anchor as Anchor6, ActionIcon as ActionIcon52, Button as Button103, Collapse as
|
|
46703
|
+
import { Anchor as Anchor6, ActionIcon as ActionIcon52, Button as Button103, Collapse as Collapse16, CopyButton as CopyButton3, Group as Group161, Paper as Paper25, Stack as Stack304, Text as Text286, Tooltip as Tooltip36 } from "@mantine/core";
|
|
46625
46704
|
import { IconCheck as IconCheck51, IconCopy as IconCopy3, IconDownload as IconDownload6, IconEye, IconEyeOff, IconKey as IconKey5 } from "@tabler/icons-react";
|
|
46626
46705
|
var SENSITIVE_KEYS = /* @__PURE__ */ new Set(["mnemonic", "matrixPassword", "matrixRecoveryPhrase", "matrixAccessToken", "pin", "openRouterApiKeyJwe", "authToken"]);
|
|
46627
46706
|
var BLOCK_LABELS = {
|
|
@@ -46758,7 +46837,7 @@ function SecretsBlock({ editor, block }) {
|
|
|
46758
46837
|
if (docType === "template") {
|
|
46759
46838
|
return /* @__PURE__ */ React425.createElement(BaseContainer, { blockId: block.id }, /* @__PURE__ */ React425.createElement(Stack304, { gap: "xs" }, /* @__PURE__ */ React425.createElement(Group161, { gap: "xs", align: "center" }, /* @__PURE__ */ React425.createElement(IconKey5, { size: 18 }), /* @__PURE__ */ React425.createElement(Text286, { fw: 600, size: "sm" }, block.props.title || "Flow Output")), /* @__PURE__ */ React425.createElement(Text286, { size: "xs", c: "dimmed" }, "Displays all flow outputs and allows downloading them in flow mode.")));
|
|
46760
46839
|
}
|
|
46761
|
-
return /* @__PURE__ */ React425.createElement(BaseContainer, { blockId: block.id }, /* @__PURE__ */ React425.createElement(Stack304, { gap: "md" }, /* @__PURE__ */ React425.createElement(Group161, { gap: "xs", align: "center" }, /* @__PURE__ */ React425.createElement(IconKey5, { size: 18 }), /* @__PURE__ */ React425.createElement(Text286, { fw: 600, size: "sm" }, block.props.title || "Flow Output")), /* @__PURE__ */ React425.createElement(Text286, { size: "sm", c: "dimmed" }, "Everything produced by this flow. You can view it here or download as JSON."), connectUrl && /* @__PURE__ */ React425.createElement(Stack304, { gap: "xs" }, /* @__PURE__ */ React425.createElement(Text286, { size: "sm", fw: 500 }, "Oracle Connect Link"), /* @__PURE__ */ React425.createElement(Group161, { gap: "xs", align: "center" }, /* @__PURE__ */ React425.createElement(Anchor6, { href: connectUrl, target: "_blank", size: "sm", style: { wordBreak: "break-all" } }, connectUrl), /* @__PURE__ */ React425.createElement(CopyButton3, { value: connectUrl, timeout: 2e3 }, ({ copied, copy }) => /* @__PURE__ */ React425.createElement(Tooltip36, { label: copied ? "Copied" : "Copy link", withArrow: true, position: "right" }, /* @__PURE__ */ React425.createElement(ActionIcon52, { color: copied ? "teal" : "gray", variant: "subtle", onClick: copy, size: "sm" }, copied ? /* @__PURE__ */ React425.createElement(IconCheck51, { size: 14 }) : /* @__PURE__ */ React425.createElement(IconCopy3, { size: 14 })))))), /* @__PURE__ */ React425.createElement(Group161, { gap: "xs" }, /* @__PURE__ */ React425.createElement(Button103, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ React425.createElement(IconEye, { size: 14 }), onClick: () => setShowOutput((v) => !v) }, showOutput ? "Hide Output" : "View Output"), /* @__PURE__ */ React425.createElement(Button103, { variant: "filled", size: "sm", leftSection: /* @__PURE__ */ React425.createElement(IconDownload6, { size: 14 }), onClick: handleDownload, disabled: outputs.length === 0 }, "Download JSON")), /* @__PURE__ */ React425.createElement(
|
|
46840
|
+
return /* @__PURE__ */ React425.createElement(BaseContainer, { blockId: block.id }, /* @__PURE__ */ React425.createElement(Stack304, { gap: "md" }, /* @__PURE__ */ React425.createElement(Group161, { gap: "xs", align: "center" }, /* @__PURE__ */ React425.createElement(IconKey5, { size: 18 }), /* @__PURE__ */ React425.createElement(Text286, { fw: 600, size: "sm" }, block.props.title || "Flow Output")), /* @__PURE__ */ React425.createElement(Text286, { size: "sm", c: "dimmed" }, "Everything produced by this flow. You can view it here or download as JSON."), connectUrl && /* @__PURE__ */ React425.createElement(Stack304, { gap: "xs" }, /* @__PURE__ */ React425.createElement(Text286, { size: "sm", fw: 500 }, "Oracle Connect Link"), /* @__PURE__ */ React425.createElement(Group161, { gap: "xs", align: "center" }, /* @__PURE__ */ React425.createElement(Anchor6, { href: connectUrl, target: "_blank", size: "sm", style: { wordBreak: "break-all" } }, connectUrl), /* @__PURE__ */ React425.createElement(CopyButton3, { value: connectUrl, timeout: 2e3 }, ({ copied, copy }) => /* @__PURE__ */ React425.createElement(Tooltip36, { label: copied ? "Copied" : "Copy link", withArrow: true, position: "right" }, /* @__PURE__ */ React425.createElement(ActionIcon52, { color: copied ? "teal" : "gray", variant: "subtle", onClick: copy, size: "sm" }, copied ? /* @__PURE__ */ React425.createElement(IconCheck51, { size: 14 }) : /* @__PURE__ */ React425.createElement(IconCopy3, { size: 14 })))))), /* @__PURE__ */ React425.createElement(Group161, { gap: "xs" }, /* @__PURE__ */ React425.createElement(Button103, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ React425.createElement(IconEye, { size: 14 }), onClick: () => setShowOutput((v) => !v) }, showOutput ? "Hide Output" : "View Output"), /* @__PURE__ */ React425.createElement(Button103, { variant: "filled", size: "sm", leftSection: /* @__PURE__ */ React425.createElement(IconDownload6, { size: 14 }), onClick: handleDownload, disabled: outputs.length === 0 }, "Download JSON")), /* @__PURE__ */ React425.createElement(Collapse16, { in: showOutput }, /* @__PURE__ */ React425.createElement(Stack304, { gap: "sm" }, outputs.length === 0 && /* @__PURE__ */ React425.createElement(Text286, { size: "xs", c: "dimmed", fs: "italic" }, "No outputs yet."), outputs.map(({ id, label, output }) => /* @__PURE__ */ React425.createElement(Paper25, { key: id, p: "xs", withBorder: true, style: { borderColor: "var(--mantine-color-neutralColor-6)" } }, /* @__PURE__ */ React425.createElement(Stack304, { gap: 4 }, /* @__PURE__ */ React425.createElement(Text286, { size: "xs", fw: 600 }, label), Object.entries(output).map(([key, value]) => /* @__PURE__ */ React425.createElement(OutputEntry, { key, label: key, value, isSensitive: SENSITIVE_KEYS.has(key) })))))))));
|
|
46762
46841
|
}
|
|
46763
46842
|
|
|
46764
46843
|
// src/mantine/blocks/secrets/SecretsBlockSpec.tsx
|
|
@@ -46825,7 +46904,7 @@ var SkillsTemplateView = ({ editor: _editor, block }) => {
|
|
|
46825
46904
|
};
|
|
46826
46905
|
|
|
46827
46906
|
// src/mantine/blocks/skills/flow/SkillsFlowView.tsx
|
|
46828
|
-
import { ActionIcon as ActionIcon53, Badge as Badge62, Button as Button104, Collapse as
|
|
46907
|
+
import { ActionIcon as ActionIcon53, Badge as Badge62, Button as Button104, Collapse as Collapse17, Group as Group163, Loader as Loader99, Paper as Paper26, Stack as Stack306, Text as Text288, Tooltip as Tooltip37 } from "@mantine/core";
|
|
46829
46908
|
import { IconBrain as IconBrain3, IconCheck as IconCheck52, IconPencil as IconPencil3, IconPlus as IconPlus11, IconTrash as IconTrash13, IconX as IconX21 } from "@tabler/icons-react";
|
|
46830
46909
|
import React430, { useCallback as useCallback194, useEffect as useEffect181, useMemo as useMemo172, useRef as useRef57, useState as useState246 } from "react";
|
|
46831
46910
|
function parseSkills2(raw) {
|
|
@@ -47073,7 +47152,7 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
47073
47152
|
},
|
|
47074
47153
|
/* @__PURE__ */ React430.createElement(IconPencil3, { size: 14 })
|
|
47075
47154
|
), /* @__PURE__ */ React430.createElement(ActionIcon53, { variant: "subtle", color: "red", size: "sm", onClick: () => updateMcpServers(mcpServers.filter((_, idx) => idx !== i)) }, /* @__PURE__ */ React430.createElement(IconTrash13, { size: 14 })))));
|
|
47076
|
-
}), !isCompleted && !showAddMcp && /* @__PURE__ */ React430.createElement(Button104, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ React430.createElement(IconPlus11, { size: 14 }), onClick: () => setShowAddMcp(true) }, "Add MCP Server"), /* @__PURE__ */ React430.createElement(
|
|
47155
|
+
}), !isCompleted && !showAddMcp && /* @__PURE__ */ React430.createElement(Button104, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ React430.createElement(IconPlus11, { size: 14 }), onClick: () => setShowAddMcp(true) }, "Add MCP Server"), /* @__PURE__ */ React430.createElement(Collapse17, { in: showAddMcp }, /* @__PURE__ */ React430.createElement(Paper26, { p: "sm", withBorder: true, style: { borderColor: "var(--mantine-color-neutralColor-6)" } }, /* @__PURE__ */ React430.createElement(Stack306, { gap: "xs" }, /* @__PURE__ */ React430.createElement(BaseTextInput, { size: "xs", label: "Name", placeholder: "Server name", value: mcpName, onChange: (e) => setMcpName(e.currentTarget.value) }), /* @__PURE__ */ React430.createElement(BaseTextInput, { size: "xs", label: "URL", placeholder: "https://...", value: mcpUrl, onChange: (e) => setMcpUrl(e.currentTarget.value) }), /* @__PURE__ */ React430.createElement(
|
|
47077
47156
|
BaseTextInput,
|
|
47078
47157
|
{
|
|
47079
47158
|
size: "xs",
|
|
@@ -49249,17 +49328,17 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
49249
49328
|
|
|
49250
49329
|
// src/mantine/components/Base/BaseIconPicker.tsx
|
|
49251
49330
|
import React435, { useState as useState252, useMemo as useMemo178, useEffect as useEffect187 } from "react";
|
|
49252
|
-
import { TextInput as TextInput11, Tabs as Tabs4, Box as Box74, Stack as Stack307, UnstyledButton as
|
|
49331
|
+
import { TextInput as TextInput11, Tabs as Tabs4, Box as Box74, Stack as Stack307, UnstyledButton as UnstyledButton9, Text as Text290, Center as Center15, ScrollArea as ScrollArea10, Group as Group165, Popover as Popover5 } from "@mantine/core";
|
|
49253
49332
|
import * as TablerIcons2 from "@tabler/icons-react";
|
|
49254
|
-
import { IconSearch as IconSearch11, IconX as IconX22, IconChevronLeft, IconChevronRight as
|
|
49333
|
+
import { IconSearch as IconSearch11, IconX as IconX22, IconChevronLeft, IconChevronRight as IconChevronRight15 } from "@tabler/icons-react";
|
|
49255
49334
|
|
|
49256
49335
|
// src/mantine/components/Base/CoverImageButton.tsx
|
|
49257
49336
|
import React434, { forwardRef, useState as useState251 } from "react";
|
|
49258
|
-
import { UnstyledButton as
|
|
49337
|
+
import { UnstyledButton as UnstyledButton8, Group as Group164, Text as Text289 } from "@mantine/core";
|
|
49259
49338
|
var CoverImageButton = forwardRef(function CoverImageButton2({ isActive = false, onClick, icon: icon2, children, style }, ref) {
|
|
49260
49339
|
const [hovered, setHovered] = useState251(false);
|
|
49261
49340
|
return /* @__PURE__ */ React434.createElement(
|
|
49262
|
-
|
|
49341
|
+
UnstyledButton8,
|
|
49263
49342
|
{
|
|
49264
49343
|
ref,
|
|
49265
49344
|
onClick,
|
|
@@ -49377,7 +49456,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
|
|
|
49377
49456
|
icons.map(([name, IconComponent]) => {
|
|
49378
49457
|
const isSelected = currentIcon === name.replace("Icon", "").replace(/([A-Z])/g, "-$1").toLowerCase().slice(1);
|
|
49379
49458
|
return /* @__PURE__ */ React435.createElement(
|
|
49380
|
-
|
|
49459
|
+
UnstyledButton9,
|
|
49381
49460
|
{
|
|
49382
49461
|
key: name,
|
|
49383
49462
|
onClick: () => handleIconClick(name),
|
|
@@ -49418,7 +49497,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
|
|
|
49418
49497
|
p: 0
|
|
49419
49498
|
},
|
|
49420
49499
|
onRemove && /* @__PURE__ */ React435.createElement(
|
|
49421
|
-
|
|
49500
|
+
UnstyledButton9,
|
|
49422
49501
|
{
|
|
49423
49502
|
onClick: () => {
|
|
49424
49503
|
onRemove();
|
|
@@ -49444,7 +49523,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
|
|
|
49444
49523
|
leftSection: /* @__PURE__ */ React435.createElement(IconSearch11, { size: 18 }),
|
|
49445
49524
|
value: searchQuery,
|
|
49446
49525
|
onChange: (e) => setSearchQuery(e.currentTarget.value),
|
|
49447
|
-
rightSection: searchQuery && /* @__PURE__ */ React435.createElement(
|
|
49526
|
+
rightSection: searchQuery && /* @__PURE__ */ React435.createElement(UnstyledButton9, { onClick: () => setSearchQuery("") }, /* @__PURE__ */ React435.createElement(IconX22, { size: 18 })),
|
|
49448
49527
|
style: { flex: 1 },
|
|
49449
49528
|
styles: {
|
|
49450
49529
|
input: {
|
|
@@ -49460,7 +49539,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
|
|
|
49460
49539
|
size: "xs",
|
|
49461
49540
|
onClick: () => setCurrentPage((p) => Math.min(totalPages, p + 1)),
|
|
49462
49541
|
disabled: currentPage === totalPages,
|
|
49463
|
-
leftSection: /* @__PURE__ */ React435.createElement(
|
|
49542
|
+
leftSection: /* @__PURE__ */ React435.createElement(IconChevronRight15, { size: 14 })
|
|
49464
49543
|
},
|
|
49465
49544
|
"Next"
|
|
49466
49545
|
))), /* @__PURE__ */ React435.createElement(ScrollArea10.Autosize, { scrollbarSize: 0, mah: 200 }, renderIconGrid(paginatedIcons)))), /* @__PURE__ */ React435.createElement(Tabs4.Panel, { value: "upload", pt: "md" }, /* @__PURE__ */ React435.createElement(Center15, { py: "xl" }, /* @__PURE__ */ React435.createElement(Stack307, { align: "center", gap: "md" }, /* @__PURE__ */ React435.createElement(Text290, { size: "sm", c: "dimmed", ta: "center" }, "Upload a custom icon image", /* @__PURE__ */ React435.createElement("br", null), "(PNG, JPG, SVG)"), /* @__PURE__ */ React435.createElement(CoverImageButton, { onClick: onUploadClick }, "Choose File"))))))
|
|
@@ -51899,4 +51978,4 @@ export {
|
|
|
51899
51978
|
ixoGraphQLClient,
|
|
51900
51979
|
getEntity
|
|
51901
51980
|
};
|
|
51902
|
-
//# sourceMappingURL=chunk-
|
|
51981
|
+
//# sourceMappingURL=chunk-H4OFDRA7.js.map
|