@ixo/editor 5.28.0 → 5.29.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/dist/{chunk-KWN34HVF.mjs → chunk-47XOPWSV.mjs} +22 -3
- package/dist/chunk-47XOPWSV.mjs.map +1 -0
- package/dist/{chunk-AXKLTSPX.mjs → chunk-LWKZRDZO.mjs} +317 -115
- package/dist/chunk-LWKZRDZO.mjs.map +1 -0
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.mjs +1 -1
- package/dist/{graphql-client-C2YnVMPy.d.ts → graphql-client-D9Y6Sbgf.d.ts} +1 -1
- package/dist/{index-Bdh5jcT4.d.ts → index-o5BPjp5P.d.ts} +12 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.mjs +2 -2
- package/dist/{store-IeJf2yNz.d.ts → store-Bf9cuTNN.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-AXKLTSPX.mjs.map +0 -1
- package/dist/chunk-KWN34HVF.mjs.map +0 -1
|
@@ -6253,9 +6253,9 @@ function renderNumber(value) {
|
|
|
6253
6253
|
return formattedValue;
|
|
6254
6254
|
}
|
|
6255
6255
|
var formatCoin2 = (coin) => {
|
|
6256
|
-
const
|
|
6256
|
+
const USDC_DENOM3 = "ibc/6BBE9BD4246F8E04948D5A4EEE7164B2630263B9EBB5E7DC5F0A46C62A2FF97B";
|
|
6257
6257
|
const DECIMALS = 6;
|
|
6258
|
-
const denom = coin.denom ===
|
|
6258
|
+
const denom = coin.denom === USDC_DENOM3 ? "USDC" : coin.denom === "uixo" ? "IXO" : coin.denom;
|
|
6259
6259
|
const raw = Number(coin.amount);
|
|
6260
6260
|
const display = raw >= Math.pow(10, DECIMALS) ? raw / Math.pow(10, DECIMALS) : raw;
|
|
6261
6261
|
return `${display} ${denom}`;
|
|
@@ -7033,9 +7033,18 @@ function roleLabel(value) {
|
|
|
7033
7033
|
if (r === "evaluate") return "Evaluate (Evaluator)";
|
|
7034
7034
|
return "Unknown role";
|
|
7035
7035
|
}
|
|
7036
|
+
var IXO_DENOM = "uixo";
|
|
7037
|
+
var USDC_DENOM2 = "ibc/6BBE9BD4246F8E04948D5A4EEE7164B2630263B9EBB5E7DC5F0A46C62A2FF97B";
|
|
7038
|
+
function formatCoin4(value) {
|
|
7039
|
+
const coin = value;
|
|
7040
|
+
const denomValue = String(coin?.denom || "");
|
|
7041
|
+
const denom = denomValue === IXO_DENOM ? "IXO" : denomValue === USDC_DENOM2 ? "USDC" : denomValue;
|
|
7042
|
+
return `${String(coin?.amount || "")} ${denom}`.trim();
|
|
7043
|
+
}
|
|
7036
7044
|
function diffAdd(inputs) {
|
|
7037
7045
|
const results = [];
|
|
7038
7046
|
const kind = String(inputs.granteeKind || "user");
|
|
7047
|
+
const role = String(inputs.role || "").trim().toLowerCase();
|
|
7039
7048
|
results.push({ key: "role", label: "Role", before: null, after: roleLabel(inputs.role), changeType: "add" });
|
|
7040
7049
|
if (inputs.collectionId) {
|
|
7041
7050
|
results.push({ key: "collectionId", label: "Collection", before: null, after: String(inputs.collectionId), changeType: "add" });
|
|
@@ -7062,6 +7071,16 @@ function diffAdd(inputs) {
|
|
|
7062
7071
|
changeType: "add",
|
|
7063
7072
|
unit: formatQuota2(inputs.agentQuota) === "\u2014" ? void 0 : "claims"
|
|
7064
7073
|
});
|
|
7074
|
+
if (role === "evaluate") {
|
|
7075
|
+
const maxAmount = Array.isArray(inputs.maxAmount) ? inputs.maxAmount : [];
|
|
7076
|
+
results.push({
|
|
7077
|
+
key: "maxAmount",
|
|
7078
|
+
label: "Max Amounts",
|
|
7079
|
+
before: null,
|
|
7080
|
+
after: maxAmount.length > 0 ? maxAmount.map(formatCoin4).join(", ") : "None",
|
|
7081
|
+
changeType: maxAmount.length > 0 ? "add" : "unchanged"
|
|
7082
|
+
});
|
|
7083
|
+
}
|
|
7065
7084
|
return results;
|
|
7066
7085
|
}
|
|
7067
7086
|
function diffRevoke(inputs) {
|
|
@@ -11810,4 +11829,4 @@ export {
|
|
|
11810
11829
|
executeQueuedFlowAgentCoreCommands,
|
|
11811
11830
|
FlowAgentService
|
|
11812
11831
|
};
|
|
11813
|
-
//# sourceMappingURL=chunk-
|
|
11832
|
+
//# sourceMappingURL=chunk-47XOPWSV.mjs.map
|