@ixo/editor 2.31.0 → 2.31.2
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.
|
@@ -16269,6 +16269,7 @@ var ClaimFlowView = ({ editor, block }) => {
|
|
|
16269
16269
|
}
|
|
16270
16270
|
}, [block.props.selectedCollections]);
|
|
16271
16271
|
const did = block.props.deedDid;
|
|
16272
|
+
const title = block.props.title || "Submit Claim";
|
|
16272
16273
|
const adminAddress = block.props.adminAddress || "";
|
|
16273
16274
|
const { collections, loading, error, refetch } = useCollections(did, selectedCollectionIds, block, editor);
|
|
16274
16275
|
const refetchRef = useRef10(refetch);
|
|
@@ -16284,7 +16285,7 @@ var ClaimFlowView = ({ editor, block }) => {
|
|
|
16284
16285
|
if (selectedCollectionIds.length === 0) {
|
|
16285
16286
|
return /* @__PURE__ */ React151.createElement(Center9, { py: "xl" }, /* @__PURE__ */ React151.createElement(Text87, { size: "sm", c: "dimmed" }, "No claim collections selected"));
|
|
16286
16287
|
}
|
|
16287
|
-
return /* @__PURE__ */ React151.createElement(Stack113, { w: "100%" }, /* @__PURE__ */ React151.createElement(Flex27, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React151.createElement(Title6, { order: 4 },
|
|
16288
|
+
return /* @__PURE__ */ React151.createElement(Stack113, { w: "100%" }, /* @__PURE__ */ React151.createElement(Flex27, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React151.createElement(Title6, { order: 4 }, title), /* @__PURE__ */ React151.createElement(Flex27, { gap: "xs" }, /* @__PURE__ */ React151.createElement(AssignmentDisplay, { block, onClick: openAssignment }), /* @__PURE__ */ React151.createElement(ActionIcon26, { variant: "subtle", size: "sm", onClick: stableRefetch, loading }, /* @__PURE__ */ React151.createElement(IconRefresh4, { size: 18 })), editable && /* @__PURE__ */ React151.createElement(ActionIcon26, { variant: "subtle", size: "sm", onClick: open }, /* @__PURE__ */ React151.createElement(IconSettings3, { size: 18 })))), loading ? /* @__PURE__ */ React151.createElement(Center9, { py: "xl" }, /* @__PURE__ */ React151.createElement(Loader19, { size: "md" })) : error ? /* @__PURE__ */ React151.createElement(Alert20, { color: "red", title: "Failed to load collections", icon: /* @__PURE__ */ React151.createElement(IconAlertCircle5, { size: 18 }) }, /* @__PURE__ */ React151.createElement(Text87, { size: "sm" }, error)) : /* @__PURE__ */ React151.createElement(
|
|
16288
16289
|
ClaimCollectionsList,
|
|
16289
16290
|
{
|
|
16290
16291
|
listType: "claims",
|
|
@@ -16720,7 +16721,8 @@ var BidTemplateView = ({ editor, block }) => {
|
|
|
16720
16721
|
);
|
|
16721
16722
|
const { open: openAssignment } = usePanel(assignmentPanelId, assignmentPanelContent);
|
|
16722
16723
|
const didDisplay = block.props.did ? `${block.props.did.substring(0, 15)}...${block.props.did.substring(block.props.did.length - 10)}` : "No DID configured";
|
|
16723
|
-
|
|
16724
|
+
const title = block.props.title || "Bid Block";
|
|
16725
|
+
return /* @__PURE__ */ React156.createElement(BaseContainer, { onClick: open }, /* @__PURE__ */ React156.createElement(Group52, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React156.createElement(Group52, { wrap: "nowrap", align: "center" }, getIcon("dollar-sign", "dollar-sign"), /* @__PURE__ */ React156.createElement(Stack114, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React156.createElement(Text88, { fw: 500, size: "sm", contentEditable: false }, title), /* @__PURE__ */ React156.createElement(Text88, { size: "xs", c: "dimmed", contentEditable: false }, block.props.did ? didDisplay : "Configure bid settings"))), /* @__PURE__ */ React156.createElement(AssignmentDisplay, { block, onClick: openAssignment })));
|
|
16724
16726
|
};
|
|
16725
16727
|
|
|
16726
16728
|
// src/mantine/blocks/bid/flow/components/FlowView.tsx
|
|
@@ -16822,6 +16824,7 @@ var BidFlowView = ({ editor, block }) => {
|
|
|
16822
16824
|
}, [block.props.selectedCollections]);
|
|
16823
16825
|
const did = block.props.did;
|
|
16824
16826
|
const adminAddress = block.props.adminAddress || "";
|
|
16827
|
+
const title = block.props.title || "Bid Application";
|
|
16825
16828
|
const { collections, loading, error, refetch } = useCollections(did, selectedCollectionIds, block, editor);
|
|
16826
16829
|
const { executeHookedActions } = useHookedActions({ block, editor });
|
|
16827
16830
|
const refetchRef = useRef11(refetch);
|
|
@@ -16837,7 +16840,7 @@ var BidFlowView = ({ editor, block }) => {
|
|
|
16837
16840
|
if (selectedCollectionIds.length === 0) {
|
|
16838
16841
|
return /* @__PURE__ */ React157.createElement(Center10, { py: "xl" }, /* @__PURE__ */ React157.createElement(Text89, { size: "sm", c: "dimmed" }, "No claim collections selected"));
|
|
16839
16842
|
}
|
|
16840
|
-
return /* @__PURE__ */ React157.createElement(Stack115, { w: "100%" }, /* @__PURE__ */ React157.createElement(Flex28, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React157.createElement(Title7, { order: 4 },
|
|
16843
|
+
return /* @__PURE__ */ React157.createElement(Stack115, { w: "100%" }, /* @__PURE__ */ React157.createElement(Flex28, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React157.createElement(Title7, { order: 4 }, title), /* @__PURE__ */ React157.createElement(Flex28, { gap: "xs" }, /* @__PURE__ */ React157.createElement(AssignmentDisplay, { block, onClick: openAssignment }), /* @__PURE__ */ React157.createElement(ActionIcon27, { variant: "subtle", size: "sm", onClick: stableRefetch, loading }, /* @__PURE__ */ React157.createElement(IconRefresh5, { size: 18 })), editable && /* @__PURE__ */ React157.createElement(ActionIcon27, { variant: "subtle", size: "sm", onClick: open }, /* @__PURE__ */ React157.createElement(IconSettings4, { size: 18 })))), loading ? /* @__PURE__ */ React157.createElement(Center10, { py: "xl" }, /* @__PURE__ */ React157.createElement(Loader20, { size: "md" })) : error ? /* @__PURE__ */ React157.createElement(Alert21, { color: "red", title: "Failed to load collections", icon: /* @__PURE__ */ React157.createElement(IconAlertCircle6, { size: 18 }) }, /* @__PURE__ */ React157.createElement(Text89, { size: "sm" }, error)) : /* @__PURE__ */ React157.createElement(
|
|
16841
16844
|
ClaimCollectionsList,
|
|
16842
16845
|
{
|
|
16843
16846
|
listType: "bids",
|
|
@@ -17087,6 +17090,7 @@ var EvaluatorFlowView = ({ editor, block }) => {
|
|
|
17087
17090
|
}, [block.props.selectedCollections]);
|
|
17088
17091
|
const did = block.props.deedDid;
|
|
17089
17092
|
const adminAddress = block.props.adminAddress || "";
|
|
17093
|
+
const title = block.props.title || "Evaluate Claims";
|
|
17090
17094
|
const { collections, loading, error, refetch } = useCollections(did, selectedCollectionIds, block, editor);
|
|
17091
17095
|
if (!did) {
|
|
17092
17096
|
return /* @__PURE__ */ React163.createElement(Center11, { py: "xl" }, /* @__PURE__ */ React163.createElement(Text91, { size: "sm", c: "dimmed" }, "Please configure the evaluator block in template mode first"));
|
|
@@ -17094,7 +17098,7 @@ var EvaluatorFlowView = ({ editor, block }) => {
|
|
|
17094
17098
|
if (selectedCollectionIds.length === 0) {
|
|
17095
17099
|
return /* @__PURE__ */ React163.createElement(Center11, { py: "xl" }, /* @__PURE__ */ React163.createElement(Text91, { size: "sm", c: "dimmed" }, "No claim collections selected"));
|
|
17096
17100
|
}
|
|
17097
|
-
return /* @__PURE__ */ React163.createElement(Stack117, { w: "100%" }, /* @__PURE__ */ React163.createElement(Flex29, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React163.createElement(Title8, { order: 4 },
|
|
17101
|
+
return /* @__PURE__ */ React163.createElement(Stack117, { w: "100%" }, /* @__PURE__ */ React163.createElement(Flex29, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React163.createElement(Title8, { order: 4 }, title), /* @__PURE__ */ React163.createElement(Flex29, { gap: "xs" }, /* @__PURE__ */ React163.createElement(AssignmentDisplay, { block, onClick: openAssignment }), /* @__PURE__ */ React163.createElement(ActionIcon28, { variant: "subtle", size: "sm", onClick: refetch, loading }, /* @__PURE__ */ React163.createElement(IconRefresh6, { size: 18 })), editable && /* @__PURE__ */ React163.createElement(ActionIcon28, { variant: "subtle", size: "sm" }, /* @__PURE__ */ React163.createElement(IconSettings5, { size: 18 })))), loading ? /* @__PURE__ */ React163.createElement(Center11, { py: "xl" }, /* @__PURE__ */ React163.createElement(Loader21, { size: "md" })) : error ? /* @__PURE__ */ React163.createElement(Alert22, { color: "red", title: "Failed to load collections", icon: /* @__PURE__ */ React163.createElement(IconAlertCircle7, { size: 18 }) }, /* @__PURE__ */ React163.createElement(Text91, { size: "sm" }, error)) : /* @__PURE__ */ React163.createElement(ClaimCollectionsList, { listType: "evaluations", collections, deedId: did, adminAddress, userAddress, onRefresh: refetch }));
|
|
17098
17102
|
};
|
|
17099
17103
|
|
|
17100
17104
|
// src/mantine/blocks/evaluator/EvaluatorBlock.tsx
|
|
@@ -26370,4 +26374,4 @@ export {
|
|
|
26370
26374
|
ixoGraphQLClient,
|
|
26371
26375
|
getEntity
|
|
26372
26376
|
};
|
|
26373
|
-
//# sourceMappingURL=chunk-
|
|
26377
|
+
//# sourceMappingURL=chunk-DSHJZVWK.mjs.map
|