@ixo/editor 7.1.0 → 7.2.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/{EvalEngineFlowDetail-YL3FFONH.js → EvalEngineFlowDetail-UFIMDVZY.js} +10 -10
- package/dist/EvalEngineFlowDetail-UFIMDVZY.js.map +1 -0
- package/dist/{EvaluateClaimFlowDetail-TOX53BGP.js → EvaluateClaimFlowDetail-4VNIWTYW.js} +4 -4
- package/dist/EvaluateClaimFlowDetail-4VNIWTYW.js.map +1 -0
- package/dist/{chunk-3WLWIA7D.js → chunk-IUC6B2NF.js} +4 -1
- package/dist/chunk-IUC6B2NF.js.map +1 -0
- package/dist/{chunk-VDEWPLOB.js → chunk-T3LAZL3P.js} +16 -16
- package/dist/chunk-T3LAZL3P.js.map +1 -0
- package/dist/{chunk-IMN2PXVU.js → chunk-VWJNCOHW.js} +128 -10
- package/dist/chunk-VWJNCOHW.js.map +1 -0
- package/dist/core/index.cjs +127 -14
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +47 -11
- package/dist/core/index.js +6 -2
- package/dist/core/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/mantine/index.js +2 -2
- package/package.json +1 -1
- package/dist/EvalEngineFlowDetail-YL3FFONH.js.map +0 -1
- package/dist/EvaluateClaimFlowDetail-TOX53BGP.js.map +0 -1
- package/dist/chunk-3WLWIA7D.js.map +0 -1
- package/dist/chunk-IMN2PXVU.js.map +0 -1
- package/dist/chunk-VDEWPLOB.js.map +0 -1
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
setActiveEditor,
|
|
99
99
|
syncFlowNodePropsFromProjection,
|
|
100
100
|
writeFlowIdentity
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-IUC6B2NF.js";
|
|
102
102
|
import {
|
|
103
103
|
LATEST_VERSION,
|
|
104
104
|
buildActionRunInputs,
|
|
@@ -381,12 +381,12 @@ function useTrackBlockFocus(blockId, editor) {
|
|
|
381
381
|
// src/mantine/components/AuthorizationTab.tsx
|
|
382
382
|
import React2, { useMemo as useMemo3, useState as useState3, useEffect as useEffect4, useCallback as useCallback4 } from "react";
|
|
383
383
|
import { Stack as Stack2, Text as Text2, Badge as Badge2, Group as Group2, Paper as Paper2, Button as Button2, ActionIcon as ActionIcon2 } from "@mantine/core";
|
|
384
|
-
import { IconShieldPlus as IconShieldPlus2, IconShieldCheck, IconTrash, IconUser as IconUser2,
|
|
384
|
+
import { IconShieldPlus as IconShieldPlus2, IconShieldCheck, IconTrash, IconUser as IconUser2, IconInnerShadowBottomRight as IconInnerShadowBottomRight2, IconKey } from "@tabler/icons-react";
|
|
385
385
|
|
|
386
386
|
// src/mantine/components/GrantPermissionPanel.tsx
|
|
387
387
|
import React, { useState as useState2, useCallback as useCallback3 } from "react";
|
|
388
388
|
import { Stack, Text, TextInput, Button, Group, Radio, Checkbox, Alert, Paper, Loader, Badge, ActionIcon, Divider, NumberInput, Title } from "@mantine/core";
|
|
389
|
-
import { IconSearch, IconUser,
|
|
389
|
+
import { IconSearch, IconUser, IconInnerShadowBottomRight, IconX, IconShieldPlus, IconArrowLeft } from "@tabler/icons-react";
|
|
390
390
|
var MAX_GRANT_DAYS = 30;
|
|
391
391
|
var GrantPermissionPanel = ({
|
|
392
392
|
onBack,
|
|
@@ -541,7 +541,7 @@ var GrantPermissionPanel = ({
|
|
|
541
541
|
onChange: (e) => setSearchQuery(e.currentTarget.value),
|
|
542
542
|
onKeyDown: (e) => e.key === "Enter" && handleSearch()
|
|
543
543
|
}
|
|
544
|
-
), selectedRecipient ? /* @__PURE__ */ React.createElement(Paper, { p: "sm", withBorder: true }, /* @__PURE__ */ React.createElement(Group, { justify: "space-between" }, /* @__PURE__ */ React.createElement(Group, { gap: "xs" }, recipientType === "oracle" ? /* @__PURE__ */ React.createElement(
|
|
544
|
+
), selectedRecipient ? /* @__PURE__ */ React.createElement(Paper, { p: "sm", withBorder: true }, /* @__PURE__ */ React.createElement(Group, { justify: "space-between" }, /* @__PURE__ */ React.createElement(Group, { gap: "xs" }, recipientType === "oracle" ? /* @__PURE__ */ React.createElement(IconInnerShadowBottomRight, { size: 16 }) : /* @__PURE__ */ React.createElement(IconUser, { size: 16 }), /* @__PURE__ */ React.createElement(Text, { size: "sm" }, selectedRecipient.displayName), /* @__PURE__ */ React.createElement(Badge, { size: "xs", variant: "light" }, selectedRecipient.did.slice(-12))), /* @__PURE__ */ React.createElement(ActionIcon, { size: "sm", variant: "subtle", onClick: () => setSelectedRecipient(null) }, /* @__PURE__ */ React.createElement(IconX, { size: 14 })))) : searchResults.length > 0 ? /* @__PURE__ */ React.createElement(Paper, { p: "xs", withBorder: true, style: { maxHeight: 150, overflow: "auto" } }, /* @__PURE__ */ React.createElement(Stack, { gap: 4 }, searchResults.map((result) => /* @__PURE__ */ React.createElement(Button, { key: result.did, variant: "subtle", size: "sm", justify: "flex-start", onClick: () => setSelectedRecipient(result) }, result.displayName)))) : null) : /* @__PURE__ */ React.createElement(TextInput, { label: "Recipient DID", placeholder: "did:ixo:...", value: manualDid, onChange: (e) => setManualDid(e.currentTarget.value) }), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, /* @__PURE__ */ React.createElement(Text, { size: "sm", fw: 500 }, "Permission Scope"), singleBlockMode && fixedBlock && !allowCustomCapabilities ? (
|
|
545
545
|
// Single block mode: show fixed block info
|
|
546
546
|
/* @__PURE__ */ React.createElement(Paper, { p: "sm", withBorder: true }, /* @__PURE__ */ React.createElement(Group, { gap: "xs" }, /* @__PURE__ */ React.createElement(Badge, { variant: "light", color: "blue" }, fixedBlock.type), /* @__PURE__ */ React.createElement(Text, { size: "sm" }, fixedBlock.name || `Block ${fixedBlock.id.slice(-8)}`)), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed", mt: "xs" }, "Permission will be granted to execute this specific block."))
|
|
547
547
|
) : (
|
|
@@ -829,7 +829,7 @@ var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid:
|
|
|
829
829
|
const audience = cap.audienceDid ?? cap.audience ?? "";
|
|
830
830
|
const issuer = normalizeActorDid(cap.issuerDid ?? cap.issuer);
|
|
831
831
|
const canRevoke = !!issuer && issuer === currentUserDid;
|
|
832
|
-
return /* @__PURE__ */ React2.createElement(Paper2, { key: cid, p: "xs", withBorder: true }, /* @__PURE__ */ React2.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(IconShieldCheck, { size: 16, color: "var(--mantine-color-green-6)" }), /* @__PURE__ */ React2.createElement(Stack2, { gap: 2 }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, audience.includes(":oracle:") ? /* @__PURE__ */ React2.createElement(
|
|
832
|
+
return /* @__PURE__ */ React2.createElement(Paper2, { key: cid, p: "xs", withBorder: true }, /* @__PURE__ */ React2.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(IconShieldCheck, { size: 16, color: "var(--mantine-color-green-6)" }), /* @__PURE__ */ React2.createElement(Stack2, { gap: 2 }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, audience.includes(":oracle:") ? /* @__PURE__ */ React2.createElement(IconInnerShadowBottomRight2, { size: 14 }) : /* @__PURE__ */ React2.createElement(IconUser2, { size: 14 }), /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500 }, audience.slice(-16) || "(unknown audience)")), /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", c: "dimmed" }, "Expires: ", formatExpiration(cap.expiration)), /* @__PURE__ */ React2.createElement(Badge2, { size: "xs", variant: "light" }, Array.isArray(cap.capabilities) ? cap.capabilities.map((c) => c.can).join(", ") : "")))), canRevoke && /* @__PURE__ */ React2.createElement(ActionIcon2, { size: "sm", variant: "subtle", color: "red", onClick: () => handleRevokeCapability(cid) }, /* @__PURE__ */ React2.createElement(IconTrash, { size: 14 }))));
|
|
833
833
|
}))));
|
|
834
834
|
};
|
|
835
835
|
|
|
@@ -6597,7 +6597,7 @@ import {
|
|
|
6597
6597
|
Select,
|
|
6598
6598
|
useComputedColorScheme
|
|
6599
6599
|
} from "@mantine/core";
|
|
6600
|
-
import { IconAlertCircle as IconAlertCircle6, IconArrowRight as IconArrowRight2, IconRefresh, IconArrowLeft as IconArrowLeft3, IconFileText as IconFileText4,
|
|
6600
|
+
import { IconAlertCircle as IconAlertCircle6, IconArrowRight as IconArrowRight2, IconRefresh, IconArrowLeft as IconArrowLeft3, IconFileText as IconFileText4, IconInnerShadowBottomRight as IconInnerShadowBottomRight3, IconChecklist as IconChecklist3 } from "@tabler/icons-react";
|
|
6601
6601
|
import { Survey as Survey5, SurveyModel as SurveyModel5 } from "@ixo/surveys";
|
|
6602
6602
|
|
|
6603
6603
|
// src/mantine/blocks/evaluator/flow/RubricEvaluationResults.tsx
|
|
@@ -7293,7 +7293,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
|
|
|
7293
7293
|
Tabs.Tab,
|
|
7294
7294
|
{
|
|
7295
7295
|
value: "evaluation",
|
|
7296
|
-
leftSection: /* @__PURE__ */ React66.createElement(
|
|
7296
|
+
leftSection: /* @__PURE__ */ React66.createElement(IconInnerShadowBottomRight3, { size: 16 }),
|
|
7297
7297
|
rightSection: evaluationLoading ? /* @__PURE__ */ React66.createElement(Loader11, { size: 12 }) : evaluationResult?.trace?.result?.outcome ? /* @__PURE__ */ React66.createElement(Badge8, { size: "xs", color: evaluationResult.trace.result.outcome === "pass" ? "green" : evaluationResult.trace.result.outcome === "fail" ? "red" : "orange" }, evaluationResult.trace.result.outcome) : null
|
|
7298
7298
|
},
|
|
7299
7299
|
"AI Evaluation"
|
|
@@ -20314,7 +20314,7 @@ registerActionTypeUI("qi/collection.users", {
|
|
|
20314
20314
|
// src/mantine/blocks/action/actionTypes/evalEngine/index.ts
|
|
20315
20315
|
import { IconClipboardCheck as IconClipboardCheck2 } from "@tabler/icons-react";
|
|
20316
20316
|
var EvalEngineConfig = lazyActionComponent(() => import("./EvalEngineConfig-5ZBXA3Q6.js").then((module) => ({ default: module.EvalEngineConfig })));
|
|
20317
|
-
var EvalEngineFlowDetail = lazyActionComponent(() => import("./EvalEngineFlowDetail-
|
|
20317
|
+
var EvalEngineFlowDetail = lazyActionComponent(() => import("./EvalEngineFlowDetail-UFIMDVZY.js").then((module) => ({ default: module.EvalEngineFlowDetail })));
|
|
20318
20318
|
registerActionTypeUI(EVAL_ENGINE_ACTION_TYPE, {
|
|
20319
20319
|
label: "Evaluation Engine",
|
|
20320
20320
|
description: "Enroll a collection and publish its claim-approval rules in one step",
|
|
@@ -20329,7 +20329,7 @@ registerActionTypeUI(EVAL_ENGINE_ACTION_TYPE, {
|
|
|
20329
20329
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/index.ts
|
|
20330
20330
|
import { IconChecks as IconChecks4 } from "@tabler/icons-react";
|
|
20331
20331
|
var EvaluateClaimConfig = lazyActionComponent(() => import("./EvaluateClaimConfig-HEYNWGSN.js").then((module) => ({ default: module.EvaluateClaimConfig })));
|
|
20332
|
-
var EvaluateClaimFlowDetail = lazyActionComponent(() => import("./EvaluateClaimFlowDetail-
|
|
20332
|
+
var EvaluateClaimFlowDetail = lazyActionComponent(() => import("./EvaluateClaimFlowDetail-4VNIWTYW.js").then((module) => ({ default: module.EvaluateClaimFlowDetail })));
|
|
20333
20333
|
registerActionTypeUI("qi/claim.evaluate", {
|
|
20334
20334
|
label: "Evaluate Claim",
|
|
20335
20335
|
description: "Approve or reject a claim",
|
|
@@ -21137,13 +21137,13 @@ registerActionTypeUI("qi/identity.create", {
|
|
|
21137
21137
|
});
|
|
21138
21138
|
|
|
21139
21139
|
// src/mantine/blocks/action/actionTypes/entityCreateOracle/index.ts
|
|
21140
|
-
import {
|
|
21140
|
+
import { IconInnerShadowBottomRight as IconInnerShadowBottomRight4 } from "@tabler/icons-react";
|
|
21141
21141
|
var EntityCreateOracleConfig = lazyActionComponent(() => import("./EntityCreateOracleConfig-UZ6ZIMP5.js").then((module) => ({ default: module.EntityCreateOracleConfig })));
|
|
21142
21142
|
var EntityCreateOracleFlowDetail = lazyActionComponent(() => import("./EntityCreateOracleFlowDetail-6XJ4UEL5.js").then((module) => ({ default: module.EntityCreateOracleFlowDetail })));
|
|
21143
21143
|
registerActionTypeUI("qi/entity.createOracle", {
|
|
21144
21144
|
label: "Create Oracle Entity",
|
|
21145
21145
|
description: "Create the oracle entity on-chain",
|
|
21146
|
-
icon: icon(
|
|
21146
|
+
icon: icon(IconInnerShadowBottomRight4, 20),
|
|
21147
21147
|
configComponent: EntityCreateOracleConfig,
|
|
21148
21148
|
flowDetailComponent: EntityCreateOracleFlowDetail
|
|
21149
21149
|
});
|
|
@@ -27191,7 +27191,7 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
|
|
|
27191
27191
|
// src/mantine/components/FlowPermissionsPanel.tsx
|
|
27192
27192
|
import React238, { useState as useState105, useEffect as useEffect91, useMemo as useMemo106 } from "react";
|
|
27193
27193
|
import { Stack as Stack143, Text as Text142, Paper as Paper19, Group as Group90, Badge as Badge41, Button as Button43, ActionIcon as ActionIcon36, Loader as Loader38, Alert as Alert30, Divider as Divider22 } from "@mantine/core";
|
|
27194
|
-
import { IconPlus as IconPlus10, IconTrash as IconTrash13, IconShieldCheck as IconShieldCheck15, IconUser as IconUser14,
|
|
27194
|
+
import { IconPlus as IconPlus10, IconTrash as IconTrash13, IconShieldCheck as IconShieldCheck15, IconUser as IconUser14, IconInnerShadowBottomRight as IconInnerShadowBottomRight5, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
|
|
27195
27195
|
var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
|
|
27196
27196
|
const [delegations, setDelegations] = useState105([]);
|
|
27197
27197
|
const [loading, setLoading] = useState105(true);
|
|
@@ -27244,7 +27244,7 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
|
|
|
27244
27244
|
const getIcon2 = (type) => {
|
|
27245
27245
|
switch (type) {
|
|
27246
27246
|
case "oracle":
|
|
27247
|
-
return /* @__PURE__ */ React238.createElement(
|
|
27247
|
+
return /* @__PURE__ */ React238.createElement(IconInnerShadowBottomRight5, { size: 16 });
|
|
27248
27248
|
case "entity":
|
|
27249
27249
|
return /* @__PURE__ */ React238.createElement(IconBuilding2, { size: 16 });
|
|
27250
27250
|
default:
|
|
@@ -27278,7 +27278,7 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
|
|
|
27278
27278
|
// src/mantine/components/GrantPermissionModal.tsx
|
|
27279
27279
|
import React239, { useState as useState106, useCallback as useCallback87 } from "react";
|
|
27280
27280
|
import { Modal as Modal5, Stack as Stack144, Text as Text143, TextInput as TextInput7, Button as Button44, Group as Group91, Radio as Radio2, Checkbox as Checkbox8, Alert as Alert31, Paper as Paper20, Loader as Loader39, Badge as Badge42, ActionIcon as ActionIcon37, Divider as Divider23, NumberInput as NumberInput2 } from "@mantine/core";
|
|
27281
|
-
import { IconSearch as IconSearch7, IconUser as IconUser15,
|
|
27281
|
+
import { IconSearch as IconSearch7, IconUser as IconUser15, IconInnerShadowBottomRight as IconInnerShadowBottomRight6, IconX as IconX14, IconShieldPlus as IconShieldPlus5 } from "@tabler/icons-react";
|
|
27282
27282
|
var MAX_GRANT_DAYS2 = 30;
|
|
27283
27283
|
var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, searchUsers, getOracles, onGrant }) => {
|
|
27284
27284
|
const singleBlockMode = !!targetBlockId || blocks.length === 1;
|
|
@@ -27414,7 +27414,7 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
|
|
|
27414
27414
|
onChange: (e) => setSearchQuery(e.currentTarget.value),
|
|
27415
27415
|
onKeyDown: (e) => e.key === "Enter" && handleSearch()
|
|
27416
27416
|
}
|
|
27417
|
-
), selectedRecipient ? /* @__PURE__ */ React239.createElement(Paper20, { p: "sm", withBorder: true }, /* @__PURE__ */ React239.createElement(Group91, { justify: "space-between" }, /* @__PURE__ */ React239.createElement(Group91, { gap: "xs" }, recipientType === "oracle" ? /* @__PURE__ */ React239.createElement(
|
|
27417
|
+
), selectedRecipient ? /* @__PURE__ */ React239.createElement(Paper20, { p: "sm", withBorder: true }, /* @__PURE__ */ React239.createElement(Group91, { justify: "space-between" }, /* @__PURE__ */ React239.createElement(Group91, { gap: "xs" }, recipientType === "oracle" ? /* @__PURE__ */ React239.createElement(IconInnerShadowBottomRight6, { size: 16 }) : /* @__PURE__ */ React239.createElement(IconUser15, { size: 16 }), /* @__PURE__ */ React239.createElement(Text143, { size: "sm" }, selectedRecipient.displayName), /* @__PURE__ */ React239.createElement(Badge42, { size: "xs", variant: "light" }, selectedRecipient.did.slice(-12))), /* @__PURE__ */ React239.createElement(ActionIcon37, { size: "sm", variant: "subtle", onClick: () => setSelectedRecipient(null) }, /* @__PURE__ */ React239.createElement(IconX14, { size: 14 })))) : searchResults.length > 0 ? /* @__PURE__ */ React239.createElement(Paper20, { p: "xs", withBorder: true, style: { maxHeight: 150, overflow: "auto" } }, /* @__PURE__ */ React239.createElement(Stack144, { gap: 4 }, searchResults.map((result) => /* @__PURE__ */ React239.createElement(Button44, { key: result.did, variant: "subtle", size: "sm", justify: "flex-start", onClick: () => setSelectedRecipient(result) }, result.displayName)))) : null) : /* @__PURE__ */ React239.createElement(TextInput7, { label: "Recipient DID", placeholder: "did:ixo:...", value: manualDid, onChange: (e) => setManualDid(e.currentTarget.value) }), /* @__PURE__ */ React239.createElement(Divider23, null), /* @__PURE__ */ React239.createElement(Stack144, { gap: "xs" }, /* @__PURE__ */ React239.createElement(Text143, { size: "sm", fw: 500 }, "Permission Scope"), singleBlockMode && fixedBlock ? (
|
|
27418
27418
|
// Single block mode: show fixed block info
|
|
27419
27419
|
/* @__PURE__ */ React239.createElement(Paper20, { p: "sm", withBorder: true }, /* @__PURE__ */ React239.createElement(Group91, { gap: "xs" }, /* @__PURE__ */ React239.createElement(Badge42, { variant: "light", color: "blue" }, fixedBlock.type), /* @__PURE__ */ React239.createElement(Text143, { size: "sm" }, fixedBlock.name || `Block ${fixedBlock.id.slice(-8)}`)), /* @__PURE__ */ React239.createElement(Text143, { size: "xs", c: "dimmed", mt: "xs" }, "Permission will be granted to execute this specific block."))
|
|
27420
27420
|
) : (
|
|
@@ -27561,4 +27561,4 @@ export {
|
|
|
27561
27561
|
ixoGraphQLClient,
|
|
27562
27562
|
getEntity
|
|
27563
27563
|
};
|
|
27564
|
-
//# sourceMappingURL=chunk-
|
|
27564
|
+
//# sourceMappingURL=chunk-T3LAZL3P.js.map
|