@ixo/editor 2.1.1 → 2.3.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,
|
|
@@ -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
|
};
|
|
@@ -12387,44 +12389,6 @@ var getExtraSlashMenuItems = (editor) => {
|
|
|
12387
12389
|
group: "Basics",
|
|
12388
12390
|
subtext: "Make HTTP requests and handle responses"
|
|
12389
12391
|
},
|
|
12390
|
-
{
|
|
12391
|
-
title: "Notification",
|
|
12392
|
-
onItemClick: () => {
|
|
12393
|
-
editor.insertBlocks(
|
|
12394
|
-
[
|
|
12395
|
-
{
|
|
12396
|
-
type: "notify",
|
|
12397
|
-
props: {
|
|
12398
|
-
title: "",
|
|
12399
|
-
description: "",
|
|
12400
|
-
icon: "bell",
|
|
12401
|
-
channel: "email",
|
|
12402
|
-
to: "[]",
|
|
12403
|
-
cc: "[]",
|
|
12404
|
-
bcc: "[]",
|
|
12405
|
-
subject: "",
|
|
12406
|
-
body: "",
|
|
12407
|
-
bodyType: "text",
|
|
12408
|
-
from: "",
|
|
12409
|
-
replyTo: "",
|
|
12410
|
-
templateId: "",
|
|
12411
|
-
templateVariables: "{}",
|
|
12412
|
-
status: "idle",
|
|
12413
|
-
messageId: "",
|
|
12414
|
-
sentAt: "",
|
|
12415
|
-
errorMessage: "",
|
|
12416
|
-
conditions: ""
|
|
12417
|
-
}
|
|
12418
|
-
}
|
|
12419
|
-
],
|
|
12420
|
-
editor.getTextCursorPosition().block,
|
|
12421
|
-
"after"
|
|
12422
|
-
);
|
|
12423
|
-
},
|
|
12424
|
-
aliases: ["notify", "notification", "email", "alert", "message", "bird"],
|
|
12425
|
-
group: "Basics",
|
|
12426
|
-
subtext: "Send notifications via Email, SMS, or WhatsApp"
|
|
12427
|
-
},
|
|
12428
12392
|
{
|
|
12429
12393
|
title: "Claim",
|
|
12430
12394
|
onItemClick: () => {
|
|
@@ -13436,7 +13400,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
|
|
|
13436
13400
|
paddingBottom: "70px",
|
|
13437
13401
|
// Space for logo area (increased for 120px logo)
|
|
13438
13402
|
cursor: isRepositioning ? "ns-resize" : "default",
|
|
13439
|
-
backgroundColor: "
|
|
13403
|
+
backgroundColor: "transparent"
|
|
13440
13404
|
},
|
|
13441
13405
|
onMouseEnter: () => editable && setIsHovering(true),
|
|
13442
13406
|
onMouseLeave: () => {
|
|
@@ -13879,4 +13843,4 @@ export {
|
|
|
13879
13843
|
ixoGraphQLClient,
|
|
13880
13844
|
getEntity
|
|
13881
13845
|
};
|
|
13882
|
-
//# sourceMappingURL=chunk-
|
|
13846
|
+
//# sourceMappingURL=chunk-RJMX6Q2F.mjs.map
|