@ixo/editor 7.2.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.
@@ -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, IconRobot as IconRobot2, IconKey } from "@tabler/icons-react";
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, IconRobot, IconX, IconShieldPlus, IconArrowLeft } from "@tabler/icons-react";
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(IconRobot, { 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 ? (
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(IconRobot2, { 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 }))));
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, IconRobot as IconRobot3, IconChecklist as IconChecklist3 } from "@tabler/icons-react";
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(IconRobot3, { size: 16 }),
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-YL3FFONH.js").then((module) => ({ default: module.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-TOX53BGP.js").then((module) => ({ default: module.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 { IconRobot as IconRobot4 } from "@tabler/icons-react";
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(IconRobot4, 20),
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, IconRobot as IconRobot5, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
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(IconRobot5, { size: 16 });
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, IconRobot as IconRobot6, IconX as IconX14, IconShieldPlus as IconShieldPlus5 } from "@tabler/icons-react";
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(IconRobot6, { 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 ? (
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-5VMI7KA5.js.map
27564
+ //# sourceMappingURL=chunk-T3LAZL3P.js.map