@ixo/editor 2.31.1 → 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",
|
|
@@ -16823,6 +16824,7 @@ var BidFlowView = ({ editor, block }) => {
|
|
|
16823
16824
|
}, [block.props.selectedCollections]);
|
|
16824
16825
|
const did = block.props.did;
|
|
16825
16826
|
const adminAddress = block.props.adminAddress || "";
|
|
16827
|
+
const title = block.props.title || "Bid Application";
|
|
16826
16828
|
const { collections, loading, error, refetch } = useCollections(did, selectedCollectionIds, block, editor);
|
|
16827
16829
|
const { executeHookedActions } = useHookedActions({ block, editor });
|
|
16828
16830
|
const refetchRef = useRef11(refetch);
|
|
@@ -16838,7 +16840,7 @@ var BidFlowView = ({ editor, block }) => {
|
|
|
16838
16840
|
if (selectedCollectionIds.length === 0) {
|
|
16839
16841
|
return /* @__PURE__ */ React157.createElement(Center10, { py: "xl" }, /* @__PURE__ */ React157.createElement(Text89, { size: "sm", c: "dimmed" }, "No claim collections selected"));
|
|
16840
16842
|
}
|
|
16841
|
-
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(
|
|
16842
16844
|
ClaimCollectionsList,
|
|
16843
16845
|
{
|
|
16844
16846
|
listType: "bids",
|
|
@@ -17088,6 +17090,7 @@ var EvaluatorFlowView = ({ editor, block }) => {
|
|
|
17088
17090
|
}, [block.props.selectedCollections]);
|
|
17089
17091
|
const did = block.props.deedDid;
|
|
17090
17092
|
const adminAddress = block.props.adminAddress || "";
|
|
17093
|
+
const title = block.props.title || "Evaluate Claims";
|
|
17091
17094
|
const { collections, loading, error, refetch } = useCollections(did, selectedCollectionIds, block, editor);
|
|
17092
17095
|
if (!did) {
|
|
17093
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"));
|
|
@@ -17095,7 +17098,7 @@ var EvaluatorFlowView = ({ editor, block }) => {
|
|
|
17095
17098
|
if (selectedCollectionIds.length === 0) {
|
|
17096
17099
|
return /* @__PURE__ */ React163.createElement(Center11, { py: "xl" }, /* @__PURE__ */ React163.createElement(Text91, { size: "sm", c: "dimmed" }, "No claim collections selected"));
|
|
17097
17100
|
}
|
|
17098
|
-
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 }));
|
|
17099
17102
|
};
|
|
17100
17103
|
|
|
17101
17104
|
// src/mantine/blocks/evaluator/EvaluatorBlock.tsx
|
|
@@ -26371,4 +26374,4 @@ export {
|
|
|
26371
26374
|
ixoGraphQLClient,
|
|
26372
26375
|
getEntity
|
|
26373
26376
|
};
|
|
26374
|
-
//# sourceMappingURL=chunk-
|
|
26377
|
+
//# sourceMappingURL=chunk-DSHJZVWK.mjs.map
|