@ixo/editor 5.5.0 → 5.6.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.
|
@@ -26665,7 +26665,7 @@ var EvaluateBidConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
26665
26665
|
|
|
26666
26666
|
// src/mantine/blocks/action/actionTypes/evaluateBid/EvaluateBidFlowDetail.tsx
|
|
26667
26667
|
import React263, { useCallback as useCallback92, useEffect as useEffect93, useMemo as useMemo98, useState as useState115 } from "react";
|
|
26668
|
-
import { ActionIcon as ActionIcon39, Alert as Alert48, Badge as Badge49, Box as Box53, Button as Button52, Divider as Divider21, Group as Group101, Loader as Loader45, Stack as Stack180, Text as Text158, UnstyledButton as UnstyledButton4 } from "@mantine/core";
|
|
26668
|
+
import { ActionIcon as ActionIcon39, Alert as Alert48, Badge as Badge49, Box as Box53, Button as Button52, Divider as Divider21, Group as Group101, JsonInput, Loader as Loader45, Stack as Stack180, Text as Text158, UnstyledButton as UnstyledButton4 } from "@mantine/core";
|
|
26669
26669
|
import { IconArrowLeft as IconArrowLeft7, IconCheck as IconCheck20, IconFilter } from "@tabler/icons-react";
|
|
26670
26670
|
|
|
26671
26671
|
// src/mantine/components/CollapsibleSection.tsx
|
|
@@ -27048,7 +27048,27 @@ var EvaluateBidFlowDetail = ({
|
|
|
27048
27048
|
}
|
|
27049
27049
|
},
|
|
27050
27050
|
selectedBidProfile?.avatarUrl ? null : selectedAvatarLabel
|
|
27051
|
-
), /* @__PURE__ */ React263.createElement(Stack180, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React263.createElement(Text158, { fw: 500, size: "md", truncate: true }, selectedDisplayName), /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed", truncate: true }, truncateAddress2(selectedBid.address))), /* @__PURE__ */ React263.createElement(Stack180, { gap: 0, align: "flex-end", style: { flexShrink: 0 } }, /* @__PURE__ */ React263.createElement(Text158, { fw: 500, size: "md", c: bidStatus.color === "green" ? "green" : bidStatus.color === "red" ? "red" : void 0 }, bidStatus.color === "green" && /* @__PURE__ */ React263.createElement(IconCheck20, { size: 14, style: { verticalAlign: "middle", marginRight: 4 } }), bidStatus.label), /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, getTimeAgo(selectedBid.created || "")))), /* @__PURE__ */ React263.createElement(CollapsibleSection, { title: "Details" }, /* @__PURE__ */ React263.createElement(Stack180, { gap: "xs" }, /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Bid ID"), /* @__PURE__ */ React263.createElement(Text158, { size: "xs", truncate: true }, selectedBid.id)), /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Collection"), /* @__PURE__ */ React263.createElement(Text158, { size: "xs" }, selectedBid.collection || collectionId)), /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Role"), /* @__PURE__ */ React263.createElement(Badge49, { size: "xs", variant: "light", color: getRoleColor2(selectedBid.role) }, getRoleLabel2(selectedBid.role))), /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Address"), /* @__PURE__ */ React263.createElement(Text158, { size: "xs" }, selectedBid.address)))), /* @__PURE__ */ React263.createElement(CollapsibleSection, { title: "Inputs" },
|
|
27051
|
+
), /* @__PURE__ */ React263.createElement(Stack180, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React263.createElement(Text158, { fw: 500, size: "md", truncate: true }, selectedDisplayName), /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed", truncate: true }, truncateAddress2(selectedBid.address))), /* @__PURE__ */ React263.createElement(Stack180, { gap: 0, align: "flex-end", style: { flexShrink: 0 } }, /* @__PURE__ */ React263.createElement(Text158, { fw: 500, size: "md", c: bidStatus.color === "green" ? "green" : bidStatus.color === "red" ? "red" : void 0 }, bidStatus.color === "green" && /* @__PURE__ */ React263.createElement(IconCheck20, { size: 14, style: { verticalAlign: "middle", marginRight: 4 } }), bidStatus.label), /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, getTimeAgo(selectedBid.created || "")))), /* @__PURE__ */ React263.createElement(CollapsibleSection, { title: "Details" }, /* @__PURE__ */ React263.createElement(Stack180, { gap: "xs" }, /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Bid ID"), /* @__PURE__ */ React263.createElement(Text158, { size: "xs", truncate: true }, selectedBid.id)), /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Collection"), /* @__PURE__ */ React263.createElement(Text158, { size: "xs" }, selectedBid.collection || collectionId)), /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Role"), /* @__PURE__ */ React263.createElement(Badge49, { size: "xs", variant: "light", color: getRoleColor2(selectedBid.role) }, getRoleLabel2(selectedBid.role))), /* @__PURE__ */ React263.createElement(Group101, { justify: "space-between" }, /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "Address"), /* @__PURE__ */ React263.createElement(Text158, { size: "xs" }, selectedBid.address)))), /* @__PURE__ */ React263.createElement(CollapsibleSection, { title: "Inputs" }, bidData && typeof bidData === "object" ? /* @__PURE__ */ React263.createElement(
|
|
27052
|
+
JsonInput,
|
|
27053
|
+
{
|
|
27054
|
+
value: JSON.stringify(bidData, null, 2),
|
|
27055
|
+
readOnly: true,
|
|
27056
|
+
autosize: true,
|
|
27057
|
+
minRows: 6,
|
|
27058
|
+
maxRows: 20,
|
|
27059
|
+
radius: "md",
|
|
27060
|
+
styles: {
|
|
27061
|
+
input: {
|
|
27062
|
+
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",
|
|
27063
|
+
fontSize: 12,
|
|
27064
|
+
lineHeight: 1.5,
|
|
27065
|
+
background: "var(--mantine-color-neutralColor-3)",
|
|
27066
|
+
border: "1px solid var(--mantine-color-neutralColor-5)",
|
|
27067
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
27068
|
+
}
|
|
27069
|
+
}
|
|
27070
|
+
}
|
|
27071
|
+
) : /* @__PURE__ */ React263.createElement(Text158, { size: "xs", c: "dimmed" }, "No input data available.")), /* @__PURE__ */ React263.createElement(
|
|
27052
27072
|
BaseSelect,
|
|
27053
27073
|
{
|
|
27054
27074
|
label: "Decision",
|
|
@@ -41284,7 +41304,7 @@ function useMatrixProvider({ matrixClient, roomId, yDoc }) {
|
|
|
41284
41304
|
updateEventType: "matrix-crdt.doc_update",
|
|
41285
41305
|
snapshotEventType: "matrix-crdt.doc_snapshot"
|
|
41286
41306
|
},
|
|
41287
|
-
enableExperimentalWebrtcSync:
|
|
41307
|
+
enableExperimentalWebrtcSync: true,
|
|
41288
41308
|
enableAwareness: true,
|
|
41289
41309
|
reader: { snapshotInterval: 10 },
|
|
41290
41310
|
writer: { flushInterval: 300, retryIfForbiddenInterval: 3e4 }
|
|
@@ -41984,7 +42004,6 @@ async function mirrorIconToRoomAvatar(matrixClient, roomId, iconValue) {
|
|
|
41984
42004
|
// src/mantine/hooks/useCollaborativeIxoEditor.ts
|
|
41985
42005
|
function useCreateCollaborativeIxoEditor(options) {
|
|
41986
42006
|
const yDoc = useCollaborativeYDoc(options);
|
|
41987
|
-
window.__yDoc = yDoc;
|
|
41988
42007
|
const {
|
|
41989
42008
|
theme = "light",
|
|
41990
42009
|
uploadFile,
|
|
@@ -42102,13 +42121,16 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
42102
42121
|
}),
|
|
42103
42122
|
[theme, editable, sideMenu, slashMenu, formattingToolbar, linkToolbar, filePanel, tableHandles]
|
|
42104
42123
|
);
|
|
42105
|
-
const editor = useCreateBlockNote2(
|
|
42106
|
-
|
|
42107
|
-
|
|
42108
|
-
|
|
42109
|
-
|
|
42110
|
-
|
|
42111
|
-
|
|
42124
|
+
const editor = useCreateBlockNote2(
|
|
42125
|
+
{
|
|
42126
|
+
schema,
|
|
42127
|
+
initialContent,
|
|
42128
|
+
uploadFile: defaultUploadFile,
|
|
42129
|
+
collaboration: collaborationConfig,
|
|
42130
|
+
pasteHandler: ixoPasteHandler
|
|
42131
|
+
},
|
|
42132
|
+
[matrixProvider]
|
|
42133
|
+
);
|
|
42112
42134
|
const titleText = useMemo151(() => yDoc.getText("title"), [yDoc]);
|
|
42113
42135
|
let ixoEditor;
|
|
42114
42136
|
if (editor) {
|
|
@@ -44888,4 +44910,4 @@ export {
|
|
|
44888
44910
|
getExtraSlashMenuItems,
|
|
44889
44911
|
useCreateIxoEditor
|
|
44890
44912
|
};
|
|
44891
|
-
//# sourceMappingURL=chunk-
|
|
44913
|
+
//# sourceMappingURL=chunk-CUDEZXQH.mjs.map
|