@ixo/editor 2.2.0 → 2.4.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.
|
@@ -1657,13 +1657,15 @@ var assetsConfigFields = [
|
|
|
1657
1657
|
var assetsHandlerKey = "getAssets";
|
|
1658
1658
|
var assetsSortFields = [
|
|
1659
1659
|
{ key: "price", label: "Price", type: "number" },
|
|
1660
|
-
{ key: "
|
|
1660
|
+
{ key: "issuer", label: "Issuer", type: "string" },
|
|
1661
1661
|
{ key: "name", label: "Name", type: "string" },
|
|
1662
1662
|
{ key: "alsoKnownAs", label: "Also Known As", type: "string" }
|
|
1663
1663
|
];
|
|
1664
1664
|
var assetsFilterFields = [
|
|
1665
1665
|
{ key: "available", label: "Available", type: true },
|
|
1666
|
-
{ key: "available", label: "Unavailable", type: false }
|
|
1666
|
+
{ key: "available", label: "Unavailable", type: false },
|
|
1667
|
+
{ key: "owned", label: "Owned", type: true },
|
|
1668
|
+
{ key: "owned", label: "Not Owned", type: false }
|
|
1667
1669
|
];
|
|
1668
1670
|
var assetsSelectionPanelConfig = {
|
|
1669
1671
|
image: (item) => item.image,
|
|
@@ -2595,7 +2597,7 @@ var ListTemplateView = ({ editor, block }) => {
|
|
|
2595
2597
|
|
|
2596
2598
|
// src/mantine/blocks/list/flow/ListFlowView.tsx
|
|
2597
2599
|
import React46, { useState as useState7, useEffect as useEffect7, useMemo as useMemo8, useCallback as useCallback10 } from "react";
|
|
2598
|
-
import { Group as Group8, Stack as Stack27, Text as Text27, ActionIcon as ActionIcon2, Alert as Alert4, Loader as Loader2, Center as Center2, Flex as Flex19, Button as Button6, Title as Title4, Collapse } from "@mantine/core";
|
|
2600
|
+
import { Group as Group8, Stack as Stack27, Text as Text27, ActionIcon as ActionIcon2, Alert as Alert4, Loader as Loader2, Center as Center2, Flex as Flex19, Button as Button6, Title as Title4, Collapse, Tooltip as Tooltip4 } from "@mantine/core";
|
|
2599
2601
|
|
|
2600
2602
|
// src/mantine/blocks/list/linked_resources/LinkedResourcesList.tsx
|
|
2601
2603
|
import React26 from "react";
|
|
@@ -2729,7 +2731,7 @@ var AssetsList = ({ items, isMultiSelect, isItemChecked, onItemCheck }) => {
|
|
|
2729
2731
|
}
|
|
2730
2732
|
const rows = items.map((asset) => {
|
|
2731
2733
|
const isChecked = isItemChecked?.(asset.did);
|
|
2732
|
-
return /* @__PURE__ */ React27.createElement(ListItemContainer, { onClick: () => onItemCheck?.(asset.did, !isChecked), key: asset.did, isChecked: !!isChecked }, /* @__PURE__ */ React27.createElement(Flex4, { align: "center", gap: "sm" }, /* @__PURE__ */ React27.createElement(Image, { radius: 16, w: 32, h: 32, src: asset.icon }), /* @__PURE__ */ React27.createElement(Stack11, { gap: 0 }, /* @__PURE__ */ React27.createElement(Text9, { size: "sm" }, asset.name || "-", " ", asset.alsoKnownAs || "-"),
|
|
2734
|
+
return /* @__PURE__ */ React27.createElement(ListItemContainer, { onClick: () => onItemCheck?.(asset.did, !isChecked), key: asset.did, isChecked: !!isChecked }, /* @__PURE__ */ React27.createElement(Flex4, { align: "center", gap: "sm" }, /* @__PURE__ */ React27.createElement(Image, { radius: 16, w: 32, h: 32, src: asset.icon }), /* @__PURE__ */ React27.createElement(Stack11, { gap: 0 }, /* @__PURE__ */ React27.createElement(Text9, { size: "sm" }, asset.name || "-", " ", asset.alsoKnownAs || "-"), /* @__PURE__ */ React27.createElement(Text9, { size: "sm", c: "dimmed" }, asset.issuer || "-"))), /* @__PURE__ */ React27.createElement(Flex4, { align: "center", gap: "md" }, /* @__PURE__ */ React27.createElement(Stack11, { ta: "right", gap: 0 }, /* @__PURE__ */ React27.createElement(Text9, { size: "sm" }, asset.currency || "", formatNumber(asset.price)), /* @__PURE__ */ React27.createElement(Text9, { size: "sm", c: "dimmed" }, asset.owned ? "Owned" : "Not Owned")), isMultiSelect && /* @__PURE__ */ React27.createElement(ListItemCheckbox, { ariaLabel: `Select asset ${asset.did}`, checked: isItemChecked?.(asset.did), onCheck: (checked) => onItemCheck?.(asset.did, checked) })));
|
|
2733
2735
|
});
|
|
2734
2736
|
return /* @__PURE__ */ React27.createElement(Box3, { flex: 1 }, /* @__PURE__ */ React27.createElement(Stack11, null, rows));
|
|
2735
2737
|
};
|
|
@@ -2929,7 +2931,7 @@ var ValidatorsList = ({ items, isMultiSelect, isItemChecked, onItemCheck }) => {
|
|
|
2929
2931
|
|
|
2930
2932
|
// src/mantine/blocks/list/ListActionsMenu.tsx
|
|
2931
2933
|
import React38 from "react";
|
|
2932
|
-
import { Menu, Text as Text20, ActionIcon } from "@mantine/core";
|
|
2934
|
+
import { Menu, Text as Text20, ActionIcon, Tooltip as Tooltip3 } from "@mantine/core";
|
|
2933
2935
|
import { IconArrowDown, IconArrowUp, IconAdjustments, IconCheckbox as IconCheckbox2, IconAdjustmentsHorizontal, IconDownload } from "@tabler/icons-react";
|
|
2934
2936
|
var ListActionsMenu = ({ options, isMultiSelect, setIsMultiSelect, value, onChange, onDownloadCsv }) => {
|
|
2935
2937
|
const renderItem = (opt, direction) => {
|
|
@@ -2976,7 +2978,7 @@ var ListActionsMenu = ({ options, isMultiSelect, setIsMultiSelect, value, onChan
|
|
|
2976
2978
|
}
|
|
2977
2979
|
}
|
|
2978
2980
|
},
|
|
2979
|
-
/* @__PURE__ */ React38.createElement(Menu.Target, null, /* @__PURE__ */ React38.createElement(ActionIcon, { variant: "subtle", size: "sm", "aria-label": "List actions", title: "List actions" }, /* @__PURE__ */ React38.createElement(IconAdjustmentsHorizontal, { size: 18 }))),
|
|
2981
|
+
/* @__PURE__ */ React38.createElement(Menu.Target, null, /* @__PURE__ */ React38.createElement(Tooltip3, { label: "Actions", withArrow: true }, /* @__PURE__ */ React38.createElement(ActionIcon, { variant: "subtle", size: "sm", "aria-label": "List actions", title: "List actions" }, /* @__PURE__ */ React38.createElement(IconAdjustmentsHorizontal, { size: 18 })))),
|
|
2980
2982
|
/* @__PURE__ */ React38.createElement(Menu.Dropdown, null, /* @__PURE__ */ React38.createElement(Menu.Label, null, /* @__PURE__ */ React38.createElement(Text20, null, "Order By")), options.map((opt) => /* @__PURE__ */ React38.createElement(React38.Fragment, { key: opt.key }, renderItem(opt, "desc"), renderItem(opt, "asc"))), /* @__PURE__ */ React38.createElement(Menu.Divider, null), /* @__PURE__ */ React38.createElement(Menu.Item, { leftSection: /* @__PURE__ */ React38.createElement(IconAdjustments, { size: 16 }) }, "Smart Filter"), /* @__PURE__ */ React38.createElement(Menu.Divider, null), /* @__PURE__ */ React38.createElement(Menu.Item, { onClick: () => setIsMultiSelect(!isMultiSelect), leftSection: /* @__PURE__ */ React38.createElement(IconCheckbox2, { size: 16 }) }, "Multi Select"), onDownloadCsv && /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(Menu.Divider, null), /* @__PURE__ */ React38.createElement(Menu.Item, { onClick: onDownloadCsv, leftSection: /* @__PURE__ */ React38.createElement(IconDownload, { size: 16 }) }, "Download CSV")))
|
|
2981
2983
|
);
|
|
2982
2984
|
};
|
|
@@ -3704,7 +3706,7 @@ var ListFlowView = ({ block, editor }) => {
|
|
|
3704
3706
|
if (!listType) {
|
|
3705
3707
|
return /* @__PURE__ */ React46.createElement(Center2, { py: "xl" }, /* @__PURE__ */ React46.createElement(Text27, { size: "sm", c: "dimmed" }, "List not configured"));
|
|
3706
3708
|
}
|
|
3707
|
-
return /* @__PURE__ */ React46.createElement(Stack27, { w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React46.createElement(Title4, { order: 4 }, getListNameByType(listType)), /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: toggle, "aria-label": opened ? "Collapse" : "Expand"
|
|
3709
|
+
return /* @__PURE__ */ React46.createElement(Stack27, { w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React46.createElement(Title4, { order: 4 }, getListNameByType(listType)), /* @__PURE__ */ React46.createElement(Tooltip4, { label: opened ? "Collapse" : "Expand", withArrow: true }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: toggle, "aria-label": opened ? "Collapse" : "Expand" }, opened ? /* @__PURE__ */ React46.createElement(IconChevronUp, { size: 18 }) : /* @__PURE__ */ React46.createElement(IconChevronDown, { size: 18 })))), /* @__PURE__ */ React46.createElement(Collapse, { pb: 5, px: 5, in: opened }, /* @__PURE__ */ React46.createElement(Stack27, { mih: totalPages !== 1 ? 500 : void 0, w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { align: "center", gap: "xs" }, listSortConfig?.key && /* @__PURE__ */ React46.createElement(Flex19, { align: "center" }, /* @__PURE__ */ React46.createElement(Text27, { size: "xs" }, listSortConfig.key?.replace(/([A-Z])/g, " $1").replace(
|
|
3708
3710
|
/^./,
|
|
3709
3711
|
(str) => str.toUpperCase()
|
|
3710
3712
|
), " "), /* @__PURE__ */ React46.createElement(Text27, { lh: 0.5 }, listSortConfig.direction === "asc" && /* @__PURE__ */ React46.createElement(IconArrowUp2, { size: 18 }), listSortConfig.direction === "desc" && /* @__PURE__ */ React46.createElement(IconArrowDown2, { size: 18 }))), isMultiSelect && /* @__PURE__ */ React46.createElement(Text27, { lh: 0.5 }, "Multi Selection")), /* @__PURE__ */ React46.createElement(Flex19, { justify: "space-between" }, /* @__PURE__ */ React46.createElement(Flex19, { gap: "xs", align: "center" }, /* @__PURE__ */ React46.createElement(FilterTab, { key: "All", label: "All", isActive: !listFilterConfig?.key, onClick: () => handleFilterChange(null) }), Array.isArray(listFilterConfigOptions) && listFilterConfigOptions.length > 0 && listFilterConfigOptions.map(({ key, label, type }) => /* @__PURE__ */ React46.createElement(
|
|
@@ -3715,7 +3717,7 @@ var ListFlowView = ({ block, editor }) => {
|
|
|
3715
3717
|
isActive: listFilterConfig?.key === key && listFilterConfig?.value === type,
|
|
3716
3718
|
onClick: () => handleFilterChange({ key, value: type })
|
|
3717
3719
|
}
|
|
3718
|
-
))), /* @__PURE__ */ React46.createElement(Flex19, { gap: "xs" }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: fetchData, loading }, /* @__PURE__ */ React46.createElement(IconRefresh, { size: 18 })), editable && /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: openPanel }, /* @__PURE__ */ React46.createElement(IconSettings, { size: 18 })), listConfig && listSortConfigOptions && listSortConfigOptions?.length > 0 && /* @__PURE__ */ React46.createElement(
|
|
3720
|
+
))), /* @__PURE__ */ React46.createElement(Flex19, { gap: "xs" }, /* @__PURE__ */ React46.createElement(Tooltip4, { label: "Refresh", withArrow: true }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: fetchData, loading }, /* @__PURE__ */ React46.createElement(IconRefresh, { size: 18 }))), editable && /* @__PURE__ */ React46.createElement(Tooltip4, { label: "Settings", withArrow: true }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: openPanel }, /* @__PURE__ */ React46.createElement(IconSettings, { size: 18 }))), listConfig && listSortConfigOptions && listSortConfigOptions?.length > 0 && /* @__PURE__ */ React46.createElement(
|
|
3719
3721
|
ListActionsMenu,
|
|
3720
3722
|
{
|
|
3721
3723
|
isMultiSelect,
|
|
@@ -6712,7 +6714,7 @@ var useVoteBusinessLogic = ({ block, editor }) => {
|
|
|
6712
6714
|
|
|
6713
6715
|
// src/mantine/blocks/proposal/flow/VoteGeneralTab.tsx
|
|
6714
6716
|
import React89, { useState as useState20 } from "react";
|
|
6715
|
-
import { Stack as Stack67, Text as Text41, Group as Group24, Card as Card12, Button as Button15, Progress as Progress2, Box as Box18, Tooltip as
|
|
6717
|
+
import { Stack as Stack67, Text as Text41, Group as Group24, Card as Card12, Button as Button15, Progress as Progress2, Box as Box18, Tooltip as Tooltip5 } from "@mantine/core";
|
|
6716
6718
|
var getVoteIcon = (voteType) => {
|
|
6717
6719
|
switch (voteType) {
|
|
6718
6720
|
case "yes":
|
|
@@ -6845,7 +6847,7 @@ var FlowGeneralTab = ({
|
|
|
6845
6847
|
}
|
|
6846
6848
|
}
|
|
6847
6849
|
), /* @__PURE__ */ React89.createElement(Text41, { size: "sm", fw: 500, style: { color: "#ffd43b" } }, isDisabled.message))
|
|
6848
|
-
), /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(
|
|
6850
|
+
), /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(Tooltip5, { key: voteType, label: disabled ? isDisabled?.message : void 0, disabled: !disabled, position: "top" }, /* @__PURE__ */ React89.createElement(
|
|
6849
6851
|
Button15,
|
|
6850
6852
|
{
|
|
6851
6853
|
variant: "outline",
|
|
@@ -6886,7 +6888,7 @@ var FlowGeneralTab = ({
|
|
|
6886
6888
|
}
|
|
6887
6889
|
},
|
|
6888
6890
|
/* @__PURE__ */ React89.createElement(Stack67, { gap: "xs" }, /* @__PURE__ */ React89.createElement(Text41, { fw: 500, size: "sm", style: { color: "#f1f3f5" } }, "Proposal Executed"), /* @__PURE__ */ React89.createElement(Text41, { size: "sm", style: { color: "#adb5bd" } }, "This proposal has been successfully executed."))
|
|
6889
|
-
), !hasSubmittedProposal && /* @__PURE__ */ React89.createElement(Stack67, { gap: "lg" }, /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(
|
|
6891
|
+
), !hasSubmittedProposal && /* @__PURE__ */ React89.createElement(Stack67, { gap: "lg" }, /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(Tooltip5, { key: voteType, label: "Proposal must be submitted before voting", position: "top" }, /* @__PURE__ */ React89.createElement(
|
|
6890
6892
|
Button15,
|
|
6891
6893
|
{
|
|
6892
6894
|
variant: "outline",
|
|
@@ -6904,7 +6906,7 @@ var FlowGeneralTab = ({
|
|
|
6904
6906
|
}
|
|
6905
6907
|
},
|
|
6906
6908
|
/* @__PURE__ */ React89.createElement(Text41, { fw: 500, tt: "capitalize", style: { textAlign: "left" } }, voteType === "no_with_veto" ? "No with Veto" : voteType)
|
|
6907
|
-
))))), hasSubmittedProposal && !hasVoted && selectedVote && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React89.createElement(
|
|
6909
|
+
))))), hasSubmittedProposal && !hasVoted && selectedVote && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React89.createElement(Tooltip5, { label: disabled ? isDisabled?.message : "Sign to vote", position: "top" }, /* @__PURE__ */ React89.createElement("div", null, /* @__PURE__ */ React89.createElement(
|
|
6908
6910
|
Button15,
|
|
6909
6911
|
{
|
|
6910
6912
|
size: "sm",
|
|
@@ -7383,12 +7385,12 @@ import { IconTrash, IconPlus as IconPlus2 } from "@tabler/icons-react";
|
|
|
7383
7385
|
|
|
7384
7386
|
// src/mantine/components/DataInput/DataInput.tsx
|
|
7385
7387
|
import React96, { useState as useState24, useCallback as useCallback15, useMemo as useMemo13 } from "react";
|
|
7386
|
-
import { Input as Input2, ActionIcon as ActionIcon7, Tooltip as
|
|
7388
|
+
import { Input as Input2, ActionIcon as ActionIcon7, Tooltip as Tooltip7, Badge as Badge11, Group as Group26 } from "@mantine/core";
|
|
7387
7389
|
import { IconVariable, IconX as IconX2 } from "@tabler/icons-react";
|
|
7388
7390
|
|
|
7389
7391
|
// src/mantine/components/DataInput/BlockPropSelector.tsx
|
|
7390
7392
|
import React95, { useState as useState23, useMemo as useMemo12 } from "react";
|
|
7391
|
-
import { Popover, Text as Text44, Stack as Stack70, Group as Group25, ActionIcon as ActionIcon6, Input, ScrollArea as ScrollArea4, Badge as Badge10, Box as Box19, Tooltip as
|
|
7393
|
+
import { Popover, Text as Text44, Stack as Stack70, Group as Group25, ActionIcon as ActionIcon6, Input, ScrollArea as ScrollArea4, Badge as Badge10, Box as Box19, Tooltip as Tooltip6 } from "@mantine/core";
|
|
7392
7394
|
import { IconSearch, IconX, IconCircle, IconChevronRight as IconChevronRight2, IconArrowLeft } from "@tabler/icons-react";
|
|
7393
7395
|
function buildPropertyTree(properties) {
|
|
7394
7396
|
const root = [];
|
|
@@ -7555,7 +7557,7 @@ function BlockPropSelector({ children, opened, onClose, onSelect, editorDocument
|
|
|
7555
7557
|
)))
|
|
7556
7558
|
) : (
|
|
7557
7559
|
// Property navigation view
|
|
7558
|
-
currentNodes.length === 0 ? /* @__PURE__ */ React95.createElement(Text44, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, "No properties available") : /* @__PURE__ */ React95.createElement(Stack70, { gap: "xs" }, currentNodes.map((node, index) => /* @__PURE__ */ React95.createElement(
|
|
7560
|
+
currentNodes.length === 0 ? /* @__PURE__ */ React95.createElement(Text44, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, "No properties available") : /* @__PURE__ */ React95.createElement(Stack70, { gap: "xs" }, currentNodes.map((node, index) => /* @__PURE__ */ React95.createElement(Tooltip6, { key: index, label: node.isLeaf ? `Select ${node.displayName}` : `Navigate into ${node.displayName}`, position: "left", withArrow: true }, /* @__PURE__ */ React95.createElement(
|
|
7559
7561
|
Box19,
|
|
7560
7562
|
{
|
|
7561
7563
|
onClick: () => handleNodeClick(node),
|
|
@@ -7714,7 +7716,7 @@ function DataInput({
|
|
|
7714
7716
|
size,
|
|
7715
7717
|
style: { width: "100%" },
|
|
7716
7718
|
rightSectionPointerEvents: "all",
|
|
7717
|
-
rightSection: /* @__PURE__ */ React96.createElement(Group26, { gap: 4, wrap: "nowrap" }, containsReferences && /* @__PURE__ */ React96.createElement(
|
|
7719
|
+
rightSection: /* @__PURE__ */ React96.createElement(Group26, { gap: 4, wrap: "nowrap" }, containsReferences && /* @__PURE__ */ React96.createElement(Tooltip7, { label: "Click to clear all references", position: "left" }, /* @__PURE__ */ React96.createElement(Badge11, { size: "sm", variant: "light", color: "blue", style: { cursor: "pointer" }, onClick: handleClearReferences, leftSection: /* @__PURE__ */ React96.createElement(IconX2, { size: 10 }) }, references.length, " ref", references.length !== 1 ? "s" : "")), /* @__PURE__ */ React96.createElement(
|
|
7718
7720
|
BlockPropSelector,
|
|
7719
7721
|
{
|
|
7720
7722
|
opened: selectorOpened,
|
|
@@ -7723,7 +7725,7 @@ function DataInput({
|
|
|
7723
7725
|
editorDocument,
|
|
7724
7726
|
currentBlockId
|
|
7725
7727
|
},
|
|
7726
|
-
/* @__PURE__ */ React96.createElement(
|
|
7728
|
+
/* @__PURE__ */ React96.createElement(Tooltip7, { label: "Insert reference to another block's property", position: "left" }, /* @__PURE__ */ React96.createElement(
|
|
7727
7729
|
ActionIcon7,
|
|
7728
7730
|
{
|
|
7729
7731
|
variant: containsReferences ? "light" : "subtle",
|
|
@@ -8137,7 +8139,7 @@ var ApiRequestTemplateView = ({ editor, block }) => {
|
|
|
8137
8139
|
|
|
8138
8140
|
// src/mantine/blocks/apiRequest/flow/FlowView.tsx
|
|
8139
8141
|
import React101, { useState as useState26 } from "react";
|
|
8140
|
-
import { Group as Group30, Stack as Stack74, Text as Text48, ActionIcon as ActionIcon10, Tooltip as
|
|
8142
|
+
import { Group as Group30, Stack as Stack74, Text as Text48, ActionIcon as ActionIcon10, Tooltip as Tooltip8, Button as Button21, Badge as Badge13, Collapse as Collapse3, Code as Code2, Loader as Loader6, Alert as Alert11 } from "@mantine/core";
|
|
8141
8143
|
import { IconSend, IconChevronDown as IconChevronDown3, IconChevronUp as IconChevronUp2, IconAlertTriangle } from "@tabler/icons-react";
|
|
8142
8144
|
var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
|
|
8143
8145
|
const disabled = isDisabled?.isDisabled === "disable";
|
|
@@ -8290,7 +8292,7 @@ var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
|
|
|
8290
8292
|
}
|
|
8291
8293
|
},
|
|
8292
8294
|
endpoint || "No endpoint configured"
|
|
8293
|
-
), block.props.description && /* @__PURE__ */ React101.createElement(Text48, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React101.createElement(Group30, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React101.createElement(
|
|
8295
|
+
), block.props.description && /* @__PURE__ */ React101.createElement(Text48, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React101.createElement(Group30, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React101.createElement(Tooltip8, { label: isDisabled.message, position: "left", withArrow: true }, executeButton) : executeButton, /* @__PURE__ */ React101.createElement(ActionIcon10, { variant: "subtle", onClick: () => setShowDetails(!showDetails), disabled: headers.length === 0 && body.length === 0 && !response }, showDetails ? /* @__PURE__ */ React101.createElement(IconChevronUp2, { size: 16 }) : /* @__PURE__ */ React101.createElement(IconChevronDown3, { size: 16 })))), /* @__PURE__ */ React101.createElement(Collapse3, { in: showDetails }, /* @__PURE__ */ React101.createElement(Stack74, { gap: "md" }, validationWarnings.length > 0 && /* @__PURE__ */ React101.createElement(Alert11, { icon: /* @__PURE__ */ React101.createElement(IconAlertTriangle, { size: 16 }), title: "Schema Validation Warnings", color: "yellow" }, /* @__PURE__ */ React101.createElement(Stack74, { gap: "xs" }, /* @__PURE__ */ React101.createElement(Text48, { size: "xs" }, "The API response does not match the defined schema:"), validationWarnings.map((warning, index) => /* @__PURE__ */ React101.createElement(Text48, { key: index, size: "xs", c: "dimmed" }, "\u2022 ", warning)))), headers.length > 0 && /* @__PURE__ */ React101.createElement(Stack74, { gap: "xs" }, /* @__PURE__ */ React101.createElement(Text48, { size: "xs", fw: 600, c: "dimmed" }, "Headers:"), /* @__PURE__ */ React101.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
|
|
8294
8296
|
headers.reduce(
|
|
8295
8297
|
(acc, h) => {
|
|
8296
8298
|
if (h.key && h.value) acc[h.key] = h.value;
|
|
@@ -9275,7 +9277,7 @@ var NotifyTemplateView = ({ editor, block }) => {
|
|
|
9275
9277
|
|
|
9276
9278
|
// src/mantine/blocks/notify/flow/FlowView.tsx
|
|
9277
9279
|
import React114, { useState as useState30 } from "react";
|
|
9278
|
-
import { Group as Group37, Stack as Stack83, Text as Text57, ActionIcon as ActionIcon13, Tooltip as
|
|
9280
|
+
import { Group as Group37, Stack as Stack83, Text as Text57, ActionIcon as ActionIcon13, Tooltip as Tooltip9, Button as Button27, Badge as Badge15, Collapse as Collapse4, Alert as Alert12, Loader as Loader7, Code as Code3 } from "@mantine/core";
|
|
9279
9281
|
import { IconSend as IconSend2, IconChevronDown as IconChevronDown4, IconChevronUp as IconChevronUp3, IconCheck, IconX as IconX3 } from "@tabler/icons-react";
|
|
9280
9282
|
var NotifyFlowView = ({ editor, block, isDisabled }) => {
|
|
9281
9283
|
const disabled = isDisabled?.isDisabled === "disable";
|
|
@@ -9402,7 +9404,7 @@ var NotifyFlowView = ({ editor, block, isDisabled }) => {
|
|
|
9402
9404
|
},
|
|
9403
9405
|
isLoading ? "Sending..." : status === "sent" ? "Sent" : "Send"
|
|
9404
9406
|
);
|
|
9405
|
-
return /* @__PURE__ */ React114.createElement(BaseContainer, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, getIcon("bell", block.props.icon), /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React114.createElement(Badge15, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React114.createElement(Text57, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification"), status !== "idle" && /* @__PURE__ */ React114.createElement(Badge15, { size: "xs", variant: "dot", color: getStatusColor2(status) }, status)), /* @__PURE__ */ React114.createElement(Text57, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, to.length > 0 ? `To: ${to.slice(0, 2).join(", ")}${to.length > 2 ? ` +${to.length - 2} more` : ""}` : "No recipients"), block.props.description && /* @__PURE__ */ React114.createElement(Text57, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React114.createElement(
|
|
9407
|
+
return /* @__PURE__ */ React114.createElement(BaseContainer, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, getIcon("bell", block.props.icon), /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React114.createElement(Badge15, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React114.createElement(Text57, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification"), status !== "idle" && /* @__PURE__ */ React114.createElement(Badge15, { size: "xs", variant: "dot", color: getStatusColor2(status) }, status)), /* @__PURE__ */ React114.createElement(Text57, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, to.length > 0 ? `To: ${to.slice(0, 2).join(", ")}${to.length > 2 ? ` +${to.length - 2} more` : ""}` : "No recipients"), block.props.description && /* @__PURE__ */ React114.createElement(Text57, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React114.createElement(Tooltip9, { label: isDisabled.message, position: "left", withArrow: true }, sendButton) : sendButton, /* @__PURE__ */ React114.createElement(ActionIcon13, { variant: "subtle", onClick: () => setShowDetails(!showDetails) }, showDetails ? /* @__PURE__ */ React114.createElement(IconChevronUp3, { size: 16 }) : /* @__PURE__ */ React114.createElement(IconChevronDown4, { size: 16 })))), status === "failed" && block.props.errorMessage && /* @__PURE__ */ React114.createElement(Alert12, { color: "red", icon: /* @__PURE__ */ React114.createElement(IconX3, { size: 16 }), title: "Failed to send", styles: { message: { fontSize: "12px" } } }, block.props.errorMessage), status === "sent" && block.props.messageId && /* @__PURE__ */ React114.createElement(Alert12, { color: "green", icon: /* @__PURE__ */ React114.createElement(IconCheck, { size: 16 }), title: "Sent successfully", styles: { message: { fontSize: "12px" } } }, "Message ID: ", block.props.messageId, block.props.sentAt && /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement("br", null), "Sent at: ", new Date(block.props.sentAt).toLocaleString())), /* @__PURE__ */ React114.createElement(Collapse4, { in: showDetails }, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, channel === "email" && /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs" }, /* @__PURE__ */ React114.createElement(Text57, { size: "xs", fw: 600, c: "dimmed" }, "Recipients:"), /* @__PURE__ */ React114.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
|
|
9406
9408
|
{
|
|
9407
9409
|
to: to.filter((e) => e.trim() !== ""),
|
|
9408
9410
|
...cc.length > 0 && { cc: cc.filter((e) => e.trim() !== "") },
|
|
@@ -9827,7 +9829,7 @@ import { IconSettings as IconSettings3, IconRefresh as IconRefresh2, IconAlertCi
|
|
|
9827
9829
|
|
|
9828
9830
|
// src/mantine/blocks/claim/flow/ClaimCollectionsList.tsx
|
|
9829
9831
|
import React122, { useMemo as useMemo23 } from "react";
|
|
9830
|
-
import { Stack as Stack87, Text as Text61, ActionIcon as ActionIcon15, Tooltip as
|
|
9832
|
+
import { Stack as Stack87, Text as Text61, ActionIcon as ActionIcon15, Tooltip as Tooltip10, Loader as Loader10, Center as Center4 } from "@mantine/core";
|
|
9831
9833
|
|
|
9832
9834
|
// src/mantine/hooks/useUserRoles.ts
|
|
9833
9835
|
import { useState as useState35, useEffect as useEffect24, useMemo as useMemo21, useRef as useRef5 } from "react";
|
|
@@ -10391,7 +10393,7 @@ var CollectionItem = ({ collection, deedId, adminAddress, userRole, onRefresh })
|
|
|
10391
10393
|
openClaimsPanel();
|
|
10392
10394
|
}
|
|
10393
10395
|
};
|
|
10394
|
-
return /* @__PURE__ */ React122.createElement("div", { style: { opacity: canAccessClaims ? 1 : 0.5 } }, /* @__PURE__ */ React122.createElement(ListItemContainer, null, /* @__PURE__ */ React122.createElement(Stack87, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React122.createElement(Text61, { size: "sm", fw: 500, c: canAccessClaims ? void 0 : "dimmed" }, collectionName), collection.description && /* @__PURE__ */ React122.createElement(Text61, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React122.createElement(
|
|
10396
|
+
return /* @__PURE__ */ React122.createElement("div", { style: { opacity: canAccessClaims ? 1 : 0.5 } }, /* @__PURE__ */ React122.createElement(ListItemContainer, null, /* @__PURE__ */ React122.createElement(Stack87, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React122.createElement(Text61, { size: "sm", fw: 500, c: canAccessClaims ? void 0 : "dimmed" }, collectionName), collection.description && /* @__PURE__ */ React122.createElement(Text61, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React122.createElement(Tooltip10, { label: "You need to apply to be a service agent first", disabled: canAccessClaims, position: "left", withArrow: true }, /* @__PURE__ */ React122.createElement(ActionIcon15, { variant: "subtle", size: "lg", onClick: handleClick, disabled: !canAccessClaims, style: { cursor: canAccessClaims ? "pointer" : "not-allowed" } }, /* @__PURE__ */ React122.createElement(IconArrowRight2, { size: 20 })))));
|
|
10395
10397
|
};
|
|
10396
10398
|
var ClaimCollectionsList = ({ collections, deedId, adminAddress, userAddress, onRefresh }) => {
|
|
10397
10399
|
const { userRoles, loading: loadingRoles } = useUserRoles(collections, userAddress, adminAddress, deedId);
|
|
@@ -11506,7 +11508,7 @@ import { IconSettings as IconSettings5, IconRefresh as IconRefresh5, IconAlertCi
|
|
|
11506
11508
|
|
|
11507
11509
|
// src/mantine/blocks/evaluator/flow/ClaimCollectionsList.tsx
|
|
11508
11510
|
import React145, { useMemo as useMemo37, useEffect as useEffect34, useRef as useRef6 } from "react";
|
|
11509
|
-
import { Stack as Stack99, Text as Text73, ActionIcon as ActionIcon21, Tooltip as
|
|
11511
|
+
import { Stack as Stack99, Text as Text73, ActionIcon as ActionIcon21, Tooltip as Tooltip11, Loader as Loader18, Center as Center9 } from "@mantine/core";
|
|
11510
11512
|
|
|
11511
11513
|
// src/mantine/blocks/evaluator/flow/ClaimsList.tsx
|
|
11512
11514
|
import React144, { useState as useState45, useEffect as useEffect33, useCallback as useCallback31, useMemo as useMemo36 } from "react";
|
|
@@ -12003,7 +12005,7 @@ var CollectionItem3 = ({ collection, deedId, adminAddress, userRole, onRefresh }
|
|
|
12003
12005
|
openClaimsPanel();
|
|
12004
12006
|
}
|
|
12005
12007
|
};
|
|
12006
|
-
return /* @__PURE__ */ React145.createElement("div", { style: { opacity: canEvaluateClaims ? 1 : 0.5 } }, /* @__PURE__ */ React145.createElement(ListItemContainer, null, /* @__PURE__ */ React145.createElement(Stack99, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React145.createElement(Text73, { size: "sm", fw: 500, c: canEvaluateClaims ? void 0 : "dimmed" }, getCollectionName2(collection)), collection.description && /* @__PURE__ */ React145.createElement(Text73, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React145.createElement(
|
|
12008
|
+
return /* @__PURE__ */ React145.createElement("div", { style: { opacity: canEvaluateClaims ? 1 : 0.5 } }, /* @__PURE__ */ React145.createElement(ListItemContainer, null, /* @__PURE__ */ React145.createElement(Stack99, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React145.createElement(Text73, { size: "sm", fw: 500, c: canEvaluateClaims ? void 0 : "dimmed" }, getCollectionName2(collection)), collection.description && /* @__PURE__ */ React145.createElement(Text73, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React145.createElement(Tooltip11, { label: "You need to be an evaluator agent to review claims", disabled: canEvaluateClaims, position: "left", withArrow: true }, /* @__PURE__ */ React145.createElement(ActionIcon21, { variant: "subtle", size: "lg", onClick: handleClick, disabled: !canEvaluateClaims, style: { cursor: canEvaluateClaims ? "pointer" : "not-allowed" } }, /* @__PURE__ */ React145.createElement(IconArrowRight6, { size: 20 })))));
|
|
12007
12009
|
};
|
|
12008
12010
|
var ClaimCollectionsList3 = ({ collections, deedId, adminAddress, userAddress, onRefresh }) => {
|
|
12009
12011
|
const { userRoles, loading: loadingRoles } = useUserRoles(collections, userAddress, adminAddress, deedId);
|
|
@@ -13841,4 +13843,4 @@ export {
|
|
|
13841
13843
|
ixoGraphQLClient,
|
|
13842
13844
|
getEntity
|
|
13843
13845
|
};
|
|
13844
|
-
//# sourceMappingURL=chunk-
|
|
13846
|
+
//# sourceMappingURL=chunk-CXOTHTXE.mjs.map
|