@ixo/editor 5.10.1 → 5.12.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.
- package/dist/chunk-7ZKV7F6Z.mjs +824 -0
- package/dist/chunk-7ZKV7F6Z.mjs.map +1 -0
- package/dist/{chunk-DQCYLHDD.mjs → chunk-GCR6VY7O.mjs} +5 -1
- package/dist/{chunk-DQCYLHDD.mjs.map → chunk-GCR6VY7O.mjs.map} +1 -1
- package/dist/{chunk-JBVGVTIA.mjs → chunk-WYOHC4AF.mjs} +236 -202
- package/dist/{chunk-JBVGVTIA.mjs.map → chunk-WYOHC4AF.mjs.map} +1 -1
- package/dist/core/index.d.ts +15 -5
- package/dist/core/index.mjs +57 -3
- package/dist/core/index.mjs.map +1 -1
- package/dist/{graphql-client-BWqRGWY6.d.ts → graphql-client-DP4rq5no.d.ts} +1 -1
- package/dist/{index-DKKQa1q-.d.ts → index-C0ikjICf.d.ts} +11 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +39 -4
- package/dist/index.mjs.map +1 -1
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.mjs +2 -2
- package/dist/{decompile-BKY8P5Q_.d.ts → store-BT916StR.d.ts} +228 -3
- package/package.json +1 -1
- package/dist/chunk-UKZ5T7V4.mjs +0 -63
- package/dist/chunk-UKZ5T7V4.mjs.map +0 -1
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
tempDomainCreatorSurvey,
|
|
40
40
|
transformSurveyToCredentialSubject,
|
|
41
41
|
writeRunRecordAndReconcile
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GCR6VY7O.mjs";
|
|
43
43
|
|
|
44
44
|
// src/mantine/hooks/useCreateIxoEditor.ts
|
|
45
45
|
import { useCreateBlockNote } from "@blocknote/react";
|
|
@@ -31149,7 +31149,7 @@ var DomainCardPreviewConfig = ({ inputs, onInputsChange }) => {
|
|
|
31149
31149
|
};
|
|
31150
31150
|
|
|
31151
31151
|
// src/mantine/blocks/action/actionTypes/domainCardPreview/DomainCardPreviewFlowDetail.tsx
|
|
31152
|
-
import React279, { useCallback as useCallback106, useMemo as useMemo109 } from "react";
|
|
31152
|
+
import React279, { useCallback as useCallback106, useMemo as useMemo109, useState as useState130 } from "react";
|
|
31153
31153
|
import { Alert as Alert56, Badge as Badge52, Box as Box61, Button as Button59, Code as Code11, Group as Group110, Loader as Loader56, ScrollArea as ScrollArea9, Stack as Stack196, Text as Text174 } from "@mantine/core";
|
|
31154
31154
|
import { IconAlertCircle as IconAlertCircle22, IconCheck as IconCheck24, IconSparkles as IconSparkles6 } from "@tabler/icons-react";
|
|
31155
31155
|
var JsonViewer2 = ({ data }) => /* @__PURE__ */ React279.createElement(ScrollArea9.Autosize, { mah: 360, offsetScrollbars: true }, /* @__PURE__ */ React279.createElement(Stack196, { gap: "md" }, data.name && /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600 }, "Name"), /* @__PURE__ */ React279.createElement(Text174, { size: "lg", fw: 600 }, data.name)), data.summary && /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600 }, "Summary"), /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, data.summary)), data.description && /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600 }, "Description"), /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, data.description)), data.entity_type && data.entity_type.length > 0 && /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600 }, "Type"), /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, data.entity_type.join(", "))), data.keywords && data.keywords.length > 0 && /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600 }, "Keywords"), /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, data.keywords.join(", "))), data.faq && data.faq.length > 0 && /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600, mb: "xs" }, "FAQ"), /* @__PURE__ */ React279.createElement(Stack196, { gap: "sm" }, data.faq.map((item, index) => /* @__PURE__ */ React279.createElement(Box61, { key: index, p: "sm", style: { borderRadius: 8, backgroundColor: "var(--mantine-color-dark-6)" } }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm", fw: 500, mb: 4 }, item.question), /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed" }, item.answer))))), /* @__PURE__ */ React279.createElement(Box61, null, /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed", tt: "uppercase", fw: 600, mb: "xs" }, "Raw Data"), /* @__PURE__ */ React279.createElement(Code11, { block: true, style: { fontSize: 11, maxHeight: 200, overflow: "auto" } }, JSON.stringify(data, null, 2)))));
|
|
@@ -31174,6 +31174,9 @@ function coerce(value, fallback) {
|
|
|
31174
31174
|
}
|
|
31175
31175
|
var DomainCardPreviewFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled }) => {
|
|
31176
31176
|
const { domainCardRenderer } = useBlocknoteContext();
|
|
31177
|
+
const handlers = useBlocknoteHandlers();
|
|
31178
|
+
const [isAskingCompanion, setIsAskingCompanion] = useState130(false);
|
|
31179
|
+
const [companionError, setCompanionError] = useState130(null);
|
|
31177
31180
|
const parsed = useMemo109(() => parseDomainCardPreviewInputs(inputs), [inputs]);
|
|
31178
31181
|
const editorDocument = editor?.document || [];
|
|
31179
31182
|
const resolveOpts = useMemo109(() => ({ yRuntime: editor?._yRuntime }), [editor?._yRuntime]);
|
|
@@ -31196,6 +31199,23 @@ var DomainCardPreviewFlowDetail = ({ inputs, editor, block, runtime, updateRunti
|
|
|
31196
31199
|
}, [runtime.output?.status, domainPreviewData, domainCardData]);
|
|
31197
31200
|
const hasPreview = Boolean(domainPreviewData && (domainPreviewData.name || domainPreviewData.summary || domainPreviewData.description));
|
|
31198
31201
|
const badge = STATUS_BADGE[status];
|
|
31202
|
+
const handleAskCompanion = useCallback106(async () => {
|
|
31203
|
+
if (isDisabled || isAskingCompanion) return;
|
|
31204
|
+
if (typeof handlers?.askCompanion !== "function") {
|
|
31205
|
+
setCompanionError("Companion is not available.");
|
|
31206
|
+
return;
|
|
31207
|
+
}
|
|
31208
|
+
setIsAskingCompanion(true);
|
|
31209
|
+
setCompanionError(null);
|
|
31210
|
+
try {
|
|
31211
|
+
await handlers.askCompanion("Help me generate a domain card and ask me the relevant questions needed to set it up.");
|
|
31212
|
+
} catch (err) {
|
|
31213
|
+
const message = err instanceof Error ? err.message : "Failed to ask companion";
|
|
31214
|
+
setCompanionError(message);
|
|
31215
|
+
} finally {
|
|
31216
|
+
setIsAskingCompanion(false);
|
|
31217
|
+
}
|
|
31218
|
+
}, [handlers, isAskingCompanion, isDisabled]);
|
|
31199
31219
|
const handleApprove = useCallback106(() => {
|
|
31200
31220
|
if (isDisabled) return;
|
|
31201
31221
|
if (!domainCardData) return;
|
|
@@ -31210,7 +31230,17 @@ var DomainCardPreviewFlowDetail = ({ inputs, editor, block, runtime, updateRunti
|
|
|
31210
31230
|
updateRuntime({ state: "completed", executedAt: approvedAt, output });
|
|
31211
31231
|
writeRunRecordAndReconcile(editor, block.id, output, [{ name: "approved", payload: { domainCardData, approvedAt } }], "");
|
|
31212
31232
|
}, [isDisabled, domainCardData, domainPreviewData, runtime.output, updateRuntime, editor, block.id]);
|
|
31213
|
-
return /* @__PURE__ */ React279.createElement(Stack196, { gap: "md" }, /* @__PURE__ */ React279.createElement(Stack196, { gap: 2 }, /* @__PURE__ */ React279.createElement(Group110, { gap: "xs", align: "center" }, /* @__PURE__ */ React279.createElement(Text174, { fw: 600 }, block?.props?.title || "Preview Domain Card"), /* @__PURE__ */ React279.createElement(Badge52, { size: "xs", variant: "filled", color: badge.color }, badge.text)), /* @__PURE__ */ React279.createElement(Text174, { size: "sm", c: "dimmed" }, block?.props?.description || "Review the oracle-enriched domain card before signing.")), status === "loading" && /* @__PURE__ */ React279.createElement(Stack196, { align: "center", py: "lg", gap: "md" }, /* @__PURE__ */ React279.createElement(Loader56, { size: "lg", color: "blue" }), /* @__PURE__ */ React279.createElement(Stack196, { align: "center", gap: "xs" }, /* @__PURE__ */ React279.createElement(IconSparkles6, { size: 22, color: "var(--mantine-color-blue-5)" }), /* @__PURE__ */ React279.createElement(Text174, { size: "sm", c: "dimmed", ta: "center" }, loadingMessage))), status === "error" && /* @__PURE__ */ React279.createElement(Alert56, { icon: /* @__PURE__ */ React279.createElement(IconAlertCircle22, { size: 16 }), title: "Preview error", color: "red", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Stack196, { gap: "xs" }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, errorMessage), /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed" }, "Ask the oracle agent to regenerate, or rebuild the card upstream."))), (status === "ready" || status === "approved") && hasPreview && domainPreviewData && /* @__PURE__ */ React279.createElement(Box61, { p: "md", style: { backgroundColor: "var(--mantine-color-dark-6)", borderRadius: 8 } }, domainCardRenderer ? domainCardRenderer(domainPreviewData) : /* @__PURE__ */ React279.createElement(JsonViewer2, { data: domainPreviewData })), (status === "ready" || status === "approved") && !hasPreview && domainCardData && /* @__PURE__ */ React279.createElement(Alert56, { color: "yellow", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, "No human-facing preview was published by the oracle. You can still approve the underlying card, but consider asking the oracle agent to publish", " ", /* @__PURE__ */ React279.createElement("code", null, "domainPreviewData"), ".")), status === "pending" && /* @__PURE__ */ React279.createElement(
|
|
31233
|
+
return /* @__PURE__ */ React279.createElement(Stack196, { gap: "md" }, /* @__PURE__ */ React279.createElement(Stack196, { gap: 2 }, /* @__PURE__ */ React279.createElement(Group110, { gap: "xs", align: "center" }, /* @__PURE__ */ React279.createElement(Text174, { fw: 600 }, block?.props?.title || "Preview Domain Card"), /* @__PURE__ */ React279.createElement(Badge52, { size: "xs", variant: "filled", color: badge.color }, badge.text)), /* @__PURE__ */ React279.createElement(Text174, { size: "sm", c: "dimmed" }, block?.props?.description || "Review the oracle-enriched domain card before signing.")), status === "loading" && /* @__PURE__ */ React279.createElement(Stack196, { align: "center", py: "lg", gap: "md" }, /* @__PURE__ */ React279.createElement(Loader56, { size: "lg", color: "blue" }), /* @__PURE__ */ React279.createElement(Stack196, { align: "center", gap: "xs" }, /* @__PURE__ */ React279.createElement(IconSparkles6, { size: 22, color: "var(--mantine-color-blue-5)" }), /* @__PURE__ */ React279.createElement(Text174, { size: "sm", c: "dimmed", ta: "center" }, loadingMessage))), status === "error" && /* @__PURE__ */ React279.createElement(Alert56, { icon: /* @__PURE__ */ React279.createElement(IconAlertCircle22, { size: 16 }), title: "Preview error", color: "red", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Stack196, { gap: "xs" }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, errorMessage), /* @__PURE__ */ React279.createElement(Text174, { size: "xs", c: "dimmed" }, "Ask the oracle agent to regenerate, or rebuild the card upstream."))), (status === "ready" || status === "approved") && hasPreview && domainPreviewData && /* @__PURE__ */ React279.createElement(Box61, { p: "md", style: { backgroundColor: "var(--mantine-color-dark-6)", borderRadius: 8 } }, domainCardRenderer ? domainCardRenderer(domainPreviewData) : /* @__PURE__ */ React279.createElement(JsonViewer2, { data: domainPreviewData })), (status === "ready" || status === "approved") && !hasPreview && domainCardData && /* @__PURE__ */ React279.createElement(Alert56, { color: "yellow", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, "No human-facing preview was published by the oracle. You can still approve the underlying card, but consider asking the oracle agent to publish", " ", /* @__PURE__ */ React279.createElement("code", null, "domainPreviewData"), ".")), status === "pending" && /* @__PURE__ */ React279.createElement(Stack196, { gap: "sm" }, /* @__PURE__ */ React279.createElement(Alert56, { color: "gray", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, "No preview yet. Ask companion to generate a domain card and gather the setup details.")), /* @__PURE__ */ React279.createElement(
|
|
31234
|
+
Button59,
|
|
31235
|
+
{
|
|
31236
|
+
leftSection: isAskingCompanion ? /* @__PURE__ */ React279.createElement(Loader56, { size: 14 }) : /* @__PURE__ */ React279.createElement(IconSparkles6, { size: 16 }),
|
|
31237
|
+
onClick: handleAskCompanion,
|
|
31238
|
+
disabled: isDisabled || isAskingCompanion,
|
|
31239
|
+
variant: "light",
|
|
31240
|
+
fullWidth: true
|
|
31241
|
+
},
|
|
31242
|
+
isAskingCompanion ? "Asking companion..." : "Ask Companion to Generate Domain Card"
|
|
31243
|
+
), companionError && /* @__PURE__ */ React279.createElement(Alert56, { icon: /* @__PURE__ */ React279.createElement(IconAlertCircle22, { size: 16 }), color: "red", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, companionError))), status === "ready" && domainCardData && /* @__PURE__ */ React279.createElement(Button59, { color: "teal", leftSection: /* @__PURE__ */ React279.createElement(IconCheck24, { size: 16 }), onClick: handleApprove, disabled: isDisabled, fullWidth: true }, "Approve Domain Card"), status === "approved" && /* @__PURE__ */ React279.createElement(Alert56, { icon: /* @__PURE__ */ React279.createElement(IconCheck24, { size: 16 }), color: "green", variant: "light", styles: actionAlertStyles }, /* @__PURE__ */ React279.createElement(Text174, { size: "sm" }, "Domain card approved. Ready to sign and create the domain.")), runtime.error?.message && /* @__PURE__ */ React279.createElement(Alert56, { color: "red", styles: actionAlertStyles }, runtime.error.message));
|
|
31214
31244
|
};
|
|
31215
31245
|
|
|
31216
31246
|
// src/mantine/blocks/action/actionTypes/domainCardPreview/index.ts
|
|
@@ -31220,7 +31250,7 @@ registerActionTypeUI("qi/domain.card-preview", {
|
|
|
31220
31250
|
});
|
|
31221
31251
|
|
|
31222
31252
|
// src/mantine/blocks/action/actionTypes/oracle/OracleConfig.tsx
|
|
31223
|
-
import React280, { useCallback as useCallback107, useEffect as useEffect107, useState as
|
|
31253
|
+
import React280, { useCallback as useCallback107, useEffect as useEffect107, useState as useState131 } from "react";
|
|
31224
31254
|
import { Stack as Stack197 } from "@mantine/core";
|
|
31225
31255
|
|
|
31226
31256
|
// src/mantine/blocks/action/actionTypes/oracle/types.ts
|
|
@@ -31242,7 +31272,7 @@ function serializeOracleInputs(inputs) {
|
|
|
31242
31272
|
|
|
31243
31273
|
// src/mantine/blocks/action/actionTypes/oracle/OracleConfig.tsx
|
|
31244
31274
|
var OracleConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
31245
|
-
const [local, setLocal] =
|
|
31275
|
+
const [local, setLocal] = useState131(() => parseOracleInputs(inputs));
|
|
31246
31276
|
useEffect107(() => {
|
|
31247
31277
|
setLocal(parseOracleInputs(inputs));
|
|
31248
31278
|
}, [inputs]);
|
|
@@ -31270,7 +31300,7 @@ var OracleConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
31270
31300
|
};
|
|
31271
31301
|
|
|
31272
31302
|
// src/mantine/blocks/action/actionTypes/oracle/OracleFlowDetail.tsx
|
|
31273
|
-
import React281, { useCallback as useCallback108, useMemo as useMemo110, useState as
|
|
31303
|
+
import React281, { useCallback as useCallback108, useMemo as useMemo110, useState as useState132 } from "react";
|
|
31274
31304
|
import { Alert as Alert57, Button as Button60, Stack as Stack198 } from "@mantine/core";
|
|
31275
31305
|
import { IconCheck as IconCheck25, IconAlertCircle as IconAlertCircle23, IconSparkles as IconSparkles7 } from "@tabler/icons-react";
|
|
31276
31306
|
var OracleFlowDetail = ({ inputs, editor, runtime, updateRuntime, isDisabled }) => {
|
|
@@ -31279,8 +31309,8 @@ var OracleFlowDetail = ({ inputs, editor, runtime, updateRuntime, isDisabled })
|
|
|
31279
31309
|
const editorDocument = editor?.document || [];
|
|
31280
31310
|
const resolveOpts = useMemo110(() => ({ yRuntime: editor?._yRuntime }), [editor?._yRuntime]);
|
|
31281
31311
|
const resolvedPrompt = resolveReferences(parsed.prompt, editorDocument, resolveOpts).trim();
|
|
31282
|
-
const [isLoading, setIsLoading] =
|
|
31283
|
-
const [error, setError] =
|
|
31312
|
+
const [isLoading, setIsLoading] = useState132(false);
|
|
31313
|
+
const [error, setError] = useState132(null);
|
|
31284
31314
|
const isCompleted = runtime.state === "completed";
|
|
31285
31315
|
const handleExecute = useCallback108(async () => {
|
|
31286
31316
|
if (isDisabled || isLoading || isCompleted) return;
|
|
@@ -31323,7 +31353,7 @@ registerActionTypeUI("oracle", {
|
|
|
31323
31353
|
});
|
|
31324
31354
|
|
|
31325
31355
|
// src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptConfig.tsx
|
|
31326
|
-
import React282, { useCallback as useCallback109, useEffect as useEffect108, useState as
|
|
31356
|
+
import React282, { useCallback as useCallback109, useEffect as useEffect108, useState as useState133 } from "react";
|
|
31327
31357
|
import { Stack as Stack199 } from "@mantine/core";
|
|
31328
31358
|
|
|
31329
31359
|
// src/mantine/blocks/action/actionTypes/oraclePrompt/types.ts
|
|
@@ -31343,7 +31373,7 @@ function serializeOraclePromptInputs(inputs) {
|
|
|
31343
31373
|
|
|
31344
31374
|
// src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptConfig.tsx
|
|
31345
31375
|
var OraclePromptConfig = ({ inputs, onInputsChange }) => {
|
|
31346
|
-
const [localPrompt, setLocalPrompt] =
|
|
31376
|
+
const [localPrompt, setLocalPrompt] = useState133(() => parseOraclePromptInputs(inputs).prompt);
|
|
31347
31377
|
useEffect108(() => {
|
|
31348
31378
|
setLocalPrompt(parseOraclePromptInputs(inputs).prompt);
|
|
31349
31379
|
}, [inputs]);
|
|
@@ -31368,7 +31398,7 @@ var OraclePromptConfig = ({ inputs, onInputsChange }) => {
|
|
|
31368
31398
|
};
|
|
31369
31399
|
|
|
31370
31400
|
// src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptFlowDetail.tsx
|
|
31371
|
-
import React283, { useCallback as useCallback110, useMemo as useMemo111, useState as
|
|
31401
|
+
import React283, { useCallback as useCallback110, useMemo as useMemo111, useState as useState134 } from "react";
|
|
31372
31402
|
import { Alert as Alert58, Loader as Loader57, Stack as Stack200, Text as Text175 } from "@mantine/core";
|
|
31373
31403
|
import { IconSend as IconSend6 } from "@tabler/icons-react";
|
|
31374
31404
|
function parsePrimarySkill(rawSkill) {
|
|
@@ -31412,8 +31442,8 @@ var OraclePromptFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, i
|
|
|
31412
31442
|
const editorDocument = editor?.document || [];
|
|
31413
31443
|
const resolveOpts = useMemo111(() => ({ yRuntime: editor?._yRuntime }), [editor?._yRuntime]);
|
|
31414
31444
|
const resolvedPrompt = useMemo111(() => resolveReferences(parsed.prompt || "", editorDocument, resolveOpts).trim(), [parsed.prompt, editorDocument, resolveOpts]);
|
|
31415
|
-
const [submitting, setSubmitting] =
|
|
31416
|
-
const [error, setError] =
|
|
31445
|
+
const [submitting, setSubmitting] = useState134(false);
|
|
31446
|
+
const [error, setError] = useState134(null);
|
|
31417
31447
|
const handleExecute = useCallback110(async () => {
|
|
31418
31448
|
if (isDisabled || submitting || !resolvedPrompt) return;
|
|
31419
31449
|
if (typeof handlers?.askCompanion !== "function") {
|
|
@@ -31454,7 +31484,7 @@ registerActionTypeUI("oracle.prompt", {
|
|
|
31454
31484
|
});
|
|
31455
31485
|
|
|
31456
31486
|
// src/mantine/blocks/action/actionTypes/formSubmit/FormSubmitConfig.tsx
|
|
31457
|
-
import React284, { useCallback as useCallback111, useEffect as useEffect109, useState as
|
|
31487
|
+
import React284, { useCallback as useCallback111, useEffect as useEffect109, useState as useState135 } from "react";
|
|
31458
31488
|
import { Stack as Stack201, Text as Text176 } from "@mantine/core";
|
|
31459
31489
|
|
|
31460
31490
|
// src/mantine/blocks/action/actionTypes/formSubmit/types.ts
|
|
@@ -31489,8 +31519,8 @@ function isValidSchemaJson(value) {
|
|
|
31489
31519
|
}
|
|
31490
31520
|
}
|
|
31491
31521
|
var FormSubmitConfig = ({ inputs, onInputsChange }) => {
|
|
31492
|
-
const [localSchema, setLocalSchema] =
|
|
31493
|
-
const [error, setError] =
|
|
31522
|
+
const [localSchema, setLocalSchema] = useState135(() => parseFormSubmitActionInputs(inputs).surveySchema);
|
|
31523
|
+
const [error, setError] = useState135(null);
|
|
31494
31524
|
useEffect109(() => {
|
|
31495
31525
|
setLocalSchema(parseFormSubmitActionInputs(inputs).surveySchema);
|
|
31496
31526
|
setError(null);
|
|
@@ -31526,7 +31556,7 @@ var FormSubmitConfig = ({ inputs, onInputsChange }) => {
|
|
|
31526
31556
|
};
|
|
31527
31557
|
|
|
31528
31558
|
// src/mantine/blocks/action/actionTypes/formSubmit/FormSubmitFlowDetail.tsx
|
|
31529
|
-
import React285, { useCallback as useCallback112, useEffect as useEffect110, useMemo as useMemo112, useState as
|
|
31559
|
+
import React285, { useCallback as useCallback112, useEffect as useEffect110, useMemo as useMemo112, useState as useState136 } from "react";
|
|
31530
31560
|
import { Alert as Alert59, Loader as Loader58, Stack as Stack202, Text as Text177 } from "@mantine/core";
|
|
31531
31561
|
import { SurveyModel as SurveyModel12 } from "@ixo/surveys";
|
|
31532
31562
|
function parsePrimarySkill2(rawSkill) {
|
|
@@ -31598,8 +31628,8 @@ var FormSubmitFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
|
|
|
31598
31628
|
const editorDocument = editor?.document || [];
|
|
31599
31629
|
const resolveOpts = useMemo112(() => ({ yRuntime: editor?._yRuntime }), [editor?._yRuntime]);
|
|
31600
31630
|
const resolvedSchemaString = useMemo112(() => resolveReferences(parsed.surveySchema || "", editorDocument, resolveOpts).trim(), [parsed.surveySchema, editorDocument, resolveOpts]);
|
|
31601
|
-
const [submitting, setSubmitting] =
|
|
31602
|
-
const [error, setError] =
|
|
31631
|
+
const [submitting, setSubmitting] = useState136(false);
|
|
31632
|
+
const [error, setError] = useState136(null);
|
|
31603
31633
|
const parsedSchema = useMemo112(() => {
|
|
31604
31634
|
if (!resolvedSchemaString) return null;
|
|
31605
31635
|
try {
|
|
@@ -31735,7 +31765,7 @@ registerActionTypeUI("qi/human.form.submit", {
|
|
|
31735
31765
|
});
|
|
31736
31766
|
|
|
31737
31767
|
// src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreConfig.tsx
|
|
31738
|
-
import React286, { useCallback as useCallback113, useEffect as useEffect111, useState as
|
|
31768
|
+
import React286, { useCallback as useCallback113, useEffect as useEffect111, useState as useState137 } from "react";
|
|
31739
31769
|
import { Stack as Stack203, Text as Text178 } from "@mantine/core";
|
|
31740
31770
|
|
|
31741
31771
|
// src/mantine/blocks/action/actionTypes/credentialStore/types.ts
|
|
@@ -31767,7 +31797,7 @@ function serializeCredentialStoreInputs(inputs) {
|
|
|
31767
31797
|
|
|
31768
31798
|
// src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreConfig.tsx
|
|
31769
31799
|
var CredentialStoreConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
31770
|
-
const [local, setLocal] =
|
|
31800
|
+
const [local, setLocal] = useState137(() => parseCredentialStoreInputs(inputs));
|
|
31771
31801
|
useEffect111(() => {
|
|
31772
31802
|
setLocal(parseCredentialStoreInputs(inputs));
|
|
31773
31803
|
}, [inputs]);
|
|
@@ -31811,7 +31841,7 @@ var CredentialStoreConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
31811
31841
|
};
|
|
31812
31842
|
|
|
31813
31843
|
// src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreFlowDetail.tsx
|
|
31814
|
-
import React287, { useCallback as useCallback114, useMemo as useMemo113, useState as
|
|
31844
|
+
import React287, { useCallback as useCallback114, useMemo as useMemo113, useState as useState138 } from "react";
|
|
31815
31845
|
import { Alert as Alert60, Button as Button61, Code as Code12, Loader as Loader59, Stack as Stack204, Text as Text179 } from "@mantine/core";
|
|
31816
31846
|
import { IconShieldCheck as IconShieldCheck15 } from "@tabler/icons-react";
|
|
31817
31847
|
function safeParse(value) {
|
|
@@ -31868,8 +31898,8 @@ var CredentialStoreFlowDetail = ({ inputs, editor, block, runtime, updateRuntime
|
|
|
31868
31898
|
);
|
|
31869
31899
|
const resolvedCredential = useMemo113(() => resolveReferences(parsed.credential || "", editorDocument, resolveOpts).trim(), [parsed.credential, editorDocument, resolveOpts]);
|
|
31870
31900
|
const resolvedRoomId = useMemo113(() => resolveReferences(parsed.roomId || "", editorDocument, resolveOpts).trim(), [parsed.roomId, editorDocument, resolveOpts]);
|
|
31871
|
-
const [submitting, setSubmitting] =
|
|
31872
|
-
const [error, setError] =
|
|
31901
|
+
const [submitting, setSubmitting] = useState138(false);
|
|
31902
|
+
const [error, setError] = useState138(null);
|
|
31873
31903
|
const hasCredential = !!resolvedCredential;
|
|
31874
31904
|
const hasKey = !!resolvedCredentialKey;
|
|
31875
31905
|
const isCompleted = runtime.state === "completed";
|
|
@@ -31972,7 +32002,7 @@ registerActionTypeUI("qi/credential.store", {
|
|
|
31972
32002
|
});
|
|
31973
32003
|
|
|
31974
32004
|
// src/mantine/blocks/action/actionTypes/payment/PaymentConfig.tsx
|
|
31975
|
-
import React288, { useCallback as useCallback115, useEffect as useEffect112, useState as
|
|
32005
|
+
import React288, { useCallback as useCallback115, useEffect as useEffect112, useState as useState139 } from "react";
|
|
31976
32006
|
import { Stack as Stack205, Text as Text180 } from "@mantine/core";
|
|
31977
32007
|
|
|
31978
32008
|
// src/mantine/blocks/action/actionTypes/payment/types.ts
|
|
@@ -32006,8 +32036,8 @@ function isValidPaymentConfig(value) {
|
|
|
32006
32036
|
|
|
32007
32037
|
// src/mantine/blocks/action/actionTypes/payment/PaymentConfig.tsx
|
|
32008
32038
|
var PaymentConfig = ({ inputs, onInputsChange }) => {
|
|
32009
|
-
const [localConfig, setLocalConfig] =
|
|
32010
|
-
const [error, setError] =
|
|
32039
|
+
const [localConfig, setLocalConfig] = useState139(() => parsePaymentInputs(inputs).paymentConfig);
|
|
32040
|
+
const [error, setError] = useState139(null);
|
|
32011
32041
|
useEffect112(() => {
|
|
32012
32042
|
setLocalConfig(parsePaymentInputs(inputs).paymentConfig);
|
|
32013
32043
|
setError(null);
|
|
@@ -32043,7 +32073,7 @@ var PaymentConfig = ({ inputs, onInputsChange }) => {
|
|
|
32043
32073
|
};
|
|
32044
32074
|
|
|
32045
32075
|
// src/mantine/blocks/action/actionTypes/payment/PaymentFlowDetail.tsx
|
|
32046
|
-
import React289, { useCallback as useCallback116, useMemo as useMemo114, useState as
|
|
32076
|
+
import React289, { useCallback as useCallback116, useMemo as useMemo114, useState as useState140 } from "react";
|
|
32047
32077
|
import { Alert as Alert61, Button as Button62, Code as Code13, Divider as Divider25, Group as Group111, Loader as Loader60, Stack as Stack206, Text as Text181 } from "@mantine/core";
|
|
32048
32078
|
import { IconAlertTriangle as IconAlertTriangle6, IconCash as IconCash2, IconSearch as IconSearch8, IconSend as IconSend7 } from "@tabler/icons-react";
|
|
32049
32079
|
function parsePrimarySkill3(rawSkill) {
|
|
@@ -32139,8 +32169,8 @@ var PaymentFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisa
|
|
|
32139
32169
|
}
|
|
32140
32170
|
}, [handlers]);
|
|
32141
32171
|
const parsed = useMemo114(() => parsePaymentInputs(inputs), [inputs]);
|
|
32142
|
-
const [submitting, setSubmitting] =
|
|
32143
|
-
const [error, setError] =
|
|
32172
|
+
const [submitting, setSubmitting] = useState140(false);
|
|
32173
|
+
const [error, setError] = useState140(null);
|
|
32144
32174
|
const paymentStatus = block.props.paymentStatus || "";
|
|
32145
32175
|
const transactionId = block.props.transactionId || "";
|
|
32146
32176
|
const paymentError = block.props.paymentError || "";
|
|
@@ -32363,7 +32393,7 @@ registerActionTypeUI("qi/payment.execute", {
|
|
|
32363
32393
|
});
|
|
32364
32394
|
|
|
32365
32395
|
// src/mantine/blocks/action/actionTypes/matrixDm/MatrixDmConfig.tsx
|
|
32366
|
-
import React290, { useCallback as useCallback117, useEffect as useEffect113, useMemo as useMemo115, useState as
|
|
32396
|
+
import React290, { useCallback as useCallback117, useEffect as useEffect113, useMemo as useMemo115, useState as useState141 } from "react";
|
|
32367
32397
|
import { Flex as Flex35, Stack as Stack207, Text as Text182 } from "@mantine/core";
|
|
32368
32398
|
|
|
32369
32399
|
// src/mantine/blocks/action/actionTypes/matrixDm/types.ts
|
|
@@ -32388,9 +32418,9 @@ function serializeMatrixDmInputs(inputs) {
|
|
|
32388
32418
|
// src/mantine/blocks/action/actionTypes/matrixDm/MatrixDmConfig.tsx
|
|
32389
32419
|
var MatrixDmConfig = ({ inputs, onInputsChange, editor }) => {
|
|
32390
32420
|
const handlers = useBlocknoteHandlers();
|
|
32391
|
-
const [local, setLocal] =
|
|
32392
|
-
const [roomMembers, setRoomMembers] =
|
|
32393
|
-
const [searchValue, setSearchValue] =
|
|
32421
|
+
const [local, setLocal] = useState141(() => parseMatrixDmInputs(inputs));
|
|
32422
|
+
const [roomMembers, setRoomMembers] = useState141([]);
|
|
32423
|
+
const [searchValue, setSearchValue] = useState141("");
|
|
32394
32424
|
const roomId = editor?.getRoomId?.() || null;
|
|
32395
32425
|
const mx = editor?.getMatrixClient?.() || null;
|
|
32396
32426
|
useEffect113(() => {
|
|
@@ -32470,10 +32500,10 @@ registerActionTypeUI("qi/matrix.dm", {
|
|
|
32470
32500
|
});
|
|
32471
32501
|
|
|
32472
32502
|
// src/mantine/blocks/action/actionTypes/calendar/eventCreate/CalendarEventCreateConfig.tsx
|
|
32473
|
-
import React291, { useCallback as useCallback118, useEffect as useEffect114, useState as
|
|
32503
|
+
import React291, { useCallback as useCallback118, useEffect as useEffect114, useState as useState142 } from "react";
|
|
32474
32504
|
import { Divider as Divider26, Stack as Stack208, Text as Text183 } from "@mantine/core";
|
|
32475
32505
|
var CalendarEventCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
32476
|
-
const [local, setLocal] =
|
|
32506
|
+
const [local, setLocal] = useState142(() => parseCalendarEventCreateInputs(inputs));
|
|
32477
32507
|
useEffect114(() => {
|
|
32478
32508
|
setLocal(parseCalendarEventCreateInputs(inputs));
|
|
32479
32509
|
}, [inputs]);
|
|
@@ -32591,7 +32621,7 @@ var CalendarEventCreateConfig = ({ inputs, onInputsChange, editor, blockId }) =>
|
|
|
32591
32621
|
};
|
|
32592
32622
|
|
|
32593
32623
|
// src/mantine/blocks/action/actionTypes/calendar/eventCreate/CalendarEventCreateFlowDetail.tsx
|
|
32594
|
-
import React292, { useCallback as useCallback119, useEffect as useEffect115, useMemo as useMemo116, useState as
|
|
32624
|
+
import React292, { useCallback as useCallback119, useEffect as useEffect115, useMemo as useMemo116, useState as useState143 } from "react";
|
|
32595
32625
|
import { Alert as Alert62, Anchor as Anchor2, Stack as Stack209, Text as Text184 } from "@mantine/core";
|
|
32596
32626
|
var CalendarEventCreateFlowDetail = ({
|
|
32597
32627
|
inputs,
|
|
@@ -32633,7 +32663,7 @@ var CalendarEventCreateFlowDetail = ({
|
|
|
32633
32663
|
},
|
|
32634
32664
|
[parsed, editorDocument, resolveOpts]
|
|
32635
32665
|
);
|
|
32636
|
-
const [local, setLocal] =
|
|
32666
|
+
const [local, setLocal] = useState143(() => ({
|
|
32637
32667
|
summary: resolve("summary"),
|
|
32638
32668
|
start_datetime: resolve("start_datetime"),
|
|
32639
32669
|
end_datetime: resolve("end_datetime"),
|
|
@@ -32669,7 +32699,7 @@ var CalendarEventCreateFlowDetail = ({
|
|
|
32669
32699
|
useEffect115(() => {
|
|
32670
32700
|
registerRuntimeInputs?.(local);
|
|
32671
32701
|
}, [registerRuntimeInputs, local]);
|
|
32672
|
-
const [error, setError] =
|
|
32702
|
+
const [error, setError] = useState143(null);
|
|
32673
32703
|
const execute = useCallback119(async () => {
|
|
32674
32704
|
const actionDef = getAction("qi/calendar.event.create");
|
|
32675
32705
|
if (!actionDef) {
|
|
@@ -32830,7 +32860,7 @@ registerActionTypeUI("qi/calendar.event.create", {
|
|
|
32830
32860
|
});
|
|
32831
32861
|
|
|
32832
32862
|
// src/mantine/blocks/action/actionTypes/calendar/eventUpdate/CalendarEventUpdateConfig.tsx
|
|
32833
|
-
import React293, { useCallback as useCallback120, useEffect as useEffect116, useState as
|
|
32863
|
+
import React293, { useCallback as useCallback120, useEffect as useEffect116, useState as useState144 } from "react";
|
|
32834
32864
|
import { Divider as Divider27, Stack as Stack210, Text as Text185 } from "@mantine/core";
|
|
32835
32865
|
|
|
32836
32866
|
// src/core/lib/actionRegistry/actions/calendar/eventUpdate.types.ts
|
|
@@ -32875,7 +32905,7 @@ function serializeCalendarEventUpdateInputs(inputs) {
|
|
|
32875
32905
|
|
|
32876
32906
|
// src/mantine/blocks/action/actionTypes/calendar/eventUpdate/CalendarEventUpdateConfig.tsx
|
|
32877
32907
|
var CalendarEventUpdateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
32878
|
-
const [local, setLocal] =
|
|
32908
|
+
const [local, setLocal] = useState144(() => parseCalendarEventUpdateInputs(inputs));
|
|
32879
32909
|
useEffect116(() => {
|
|
32880
32910
|
setLocal(parseCalendarEventUpdateInputs(inputs));
|
|
32881
32911
|
}, [inputs]);
|
|
@@ -32970,7 +33000,7 @@ var CalendarEventUpdateConfig = ({ inputs, onInputsChange, editor, blockId }) =>
|
|
|
32970
33000
|
};
|
|
32971
33001
|
|
|
32972
33002
|
// src/mantine/blocks/action/actionTypes/calendar/eventUpdate/CalendarEventUpdateFlowDetail.tsx
|
|
32973
|
-
import React294, { useCallback as useCallback121, useEffect as useEffect117, useMemo as useMemo117, useState as
|
|
33003
|
+
import React294, { useCallback as useCallback121, useEffect as useEffect117, useMemo as useMemo117, useState as useState145 } from "react";
|
|
32974
33004
|
import { Alert as Alert63, Anchor as Anchor3, Stack as Stack211, Text as Text186 } from "@mantine/core";
|
|
32975
33005
|
var CalendarEventUpdateFlowDetail = ({
|
|
32976
33006
|
inputs,
|
|
@@ -33012,7 +33042,7 @@ var CalendarEventUpdateFlowDetail = ({
|
|
|
33012
33042
|
},
|
|
33013
33043
|
[parsed, editorDocument, resolveOpts]
|
|
33014
33044
|
);
|
|
33015
|
-
const [local, setLocal] =
|
|
33045
|
+
const [local, setLocal] = useState145(() => ({
|
|
33016
33046
|
event_id: resolve("event_id"),
|
|
33017
33047
|
summary: resolve("summary"),
|
|
33018
33048
|
start_datetime: resolve("start_datetime"),
|
|
@@ -33050,7 +33080,7 @@ var CalendarEventUpdateFlowDetail = ({
|
|
|
33050
33080
|
useEffect117(() => {
|
|
33051
33081
|
registerRuntimeInputs?.(local);
|
|
33052
33082
|
}, [registerRuntimeInputs, local]);
|
|
33053
|
-
const [error, setError] =
|
|
33083
|
+
const [error, setError] = useState145(null);
|
|
33054
33084
|
const execute = useCallback121(async () => {
|
|
33055
33085
|
const actionDef = getAction("qi/calendar.event.update");
|
|
33056
33086
|
if (!actionDef) {
|
|
@@ -33191,7 +33221,7 @@ registerActionTypeUI("qi/calendar.event.update", {
|
|
|
33191
33221
|
});
|
|
33192
33222
|
|
|
33193
33223
|
// src/mantine/blocks/action/actionTypes/calendar/eventList/CalendarEventListConfig.tsx
|
|
33194
|
-
import React295, { useCallback as useCallback122, useEffect as useEffect118, useState as
|
|
33224
|
+
import React295, { useCallback as useCallback122, useEffect as useEffect118, useState as useState146 } from "react";
|
|
33195
33225
|
import { Divider as Divider28, Group as Group112, Stack as Stack212, Switch as Switch7, Text as Text187 } from "@mantine/core";
|
|
33196
33226
|
|
|
33197
33227
|
// src/core/lib/actionRegistry/actions/calendar/eventList.types.ts
|
|
@@ -33232,7 +33262,7 @@ function serializeCalendarEventListInputs(inputs) {
|
|
|
33232
33262
|
|
|
33233
33263
|
// src/mantine/blocks/action/actionTypes/calendar/eventList/CalendarEventListConfig.tsx
|
|
33234
33264
|
var CalendarEventListConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
33235
|
-
const [local, setLocal] =
|
|
33265
|
+
const [local, setLocal] = useState146(() => parseCalendarEventListInputs(inputs));
|
|
33236
33266
|
useEffect118(() => {
|
|
33237
33267
|
setLocal(parseCalendarEventListInputs(inputs));
|
|
33238
33268
|
}, [inputs]);
|
|
@@ -33310,7 +33340,7 @@ var CalendarEventListConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
33310
33340
|
};
|
|
33311
33341
|
|
|
33312
33342
|
// src/mantine/blocks/action/actionTypes/calendar/eventList/CalendarEventListFlowDetail.tsx
|
|
33313
|
-
import React296, { useCallback as useCallback123, useMemo as useMemo118, useState as
|
|
33343
|
+
import React296, { useCallback as useCallback123, useMemo as useMemo118, useState as useState147 } from "react";
|
|
33314
33344
|
import { Alert as Alert64, Badge as Badge53, Button as Button63, Loader as Loader61, Stack as Stack213 } from "@mantine/core";
|
|
33315
33345
|
import { IconRefresh as IconRefresh8 } from "@tabler/icons-react";
|
|
33316
33346
|
var CalendarEventListFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled }) => {
|
|
@@ -33346,8 +33376,8 @@ var CalendarEventListFlowDetail = ({ inputs, editor, block, runtime, updateRunti
|
|
|
33346
33376
|
const connection = parsed.connection;
|
|
33347
33377
|
const hasConnection = !!connection?.connectedAccountId;
|
|
33348
33378
|
const entityMismatch = hasConnection && entityDid && connection.entityDid && connection.entityDid !== entityDid;
|
|
33349
|
-
const [loading, setLoading] =
|
|
33350
|
-
const [error, setError] =
|
|
33379
|
+
const [loading, setLoading] = useState147(false);
|
|
33380
|
+
const [error, setError] = useState147(null);
|
|
33351
33381
|
const execute = useCallback123(async () => {
|
|
33352
33382
|
const actionDef = getAction("qi/calendar.event.list");
|
|
33353
33383
|
if (!actionDef) {
|
|
@@ -33454,7 +33484,7 @@ registerActionTypeUI("qi/calendar.event.list", {
|
|
|
33454
33484
|
});
|
|
33455
33485
|
|
|
33456
33486
|
// src/mantine/blocks/action/actionTypes/xero/contactCreate/XeroContactCreateConfig.tsx
|
|
33457
|
-
import React297, { useCallback as useCallback124, useEffect as useEffect119, useState as
|
|
33487
|
+
import React297, { useCallback as useCallback124, useEffect as useEffect119, useState as useState148 } from "react";
|
|
33458
33488
|
import { Divider as Divider29, Group as Group113, Stack as Stack214, Switch as Switch8, Text as Text188 } from "@mantine/core";
|
|
33459
33489
|
|
|
33460
33490
|
// src/core/lib/actionRegistry/actions/xero/contactCreate.types.ts
|
|
@@ -33507,7 +33537,7 @@ function serializeXeroContactCreateInputs(inputs) {
|
|
|
33507
33537
|
|
|
33508
33538
|
// src/mantine/blocks/action/actionTypes/xero/contactCreate/XeroContactCreateConfig.tsx
|
|
33509
33539
|
var XeroContactCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
33510
|
-
const [local, setLocal] =
|
|
33540
|
+
const [local, setLocal] = useState148(() => parseXeroContactCreateInputs(inputs));
|
|
33511
33541
|
useEffect119(() => {
|
|
33512
33542
|
setLocal(parseXeroContactCreateInputs(inputs));
|
|
33513
33543
|
}, [inputs]);
|
|
@@ -33573,7 +33603,7 @@ var XeroContactCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
33573
33603
|
};
|
|
33574
33604
|
|
|
33575
33605
|
// src/mantine/blocks/action/actionTypes/xero/contactCreate/XeroContactCreateFlowDetail.tsx
|
|
33576
|
-
import React298, { useCallback as useCallback125, useEffect as useEffect120, useMemo as useMemo119, useState as
|
|
33606
|
+
import React298, { useCallback as useCallback125, useEffect as useEffect120, useMemo as useMemo119, useState as useState149 } from "react";
|
|
33577
33607
|
import { Alert as Alert65, Stack as Stack215, Text as Text189 } from "@mantine/core";
|
|
33578
33608
|
var XeroContactCreateFlowDetail = ({
|
|
33579
33609
|
inputs,
|
|
@@ -33615,7 +33645,7 @@ var XeroContactCreateFlowDetail = ({
|
|
|
33615
33645
|
},
|
|
33616
33646
|
[parsed, editorDocument, resolveOpts]
|
|
33617
33647
|
);
|
|
33618
|
-
const [local, setLocal] =
|
|
33648
|
+
const [local, setLocal] = useState149(() => ({
|
|
33619
33649
|
Name: resolve("Name"),
|
|
33620
33650
|
EmailAddress: resolve("EmailAddress"),
|
|
33621
33651
|
FirstName: resolve("FirstName"),
|
|
@@ -33647,7 +33677,7 @@ var XeroContactCreateFlowDetail = ({
|
|
|
33647
33677
|
useEffect120(() => {
|
|
33648
33678
|
registerRuntimeInputs?.(local);
|
|
33649
33679
|
}, [registerRuntimeInputs, local]);
|
|
33650
|
-
const [error, setError] =
|
|
33680
|
+
const [error, setError] = useState149(null);
|
|
33651
33681
|
const execute = useCallback125(async () => {
|
|
33652
33682
|
const actionDef = getAction("qi/xero.contact.create");
|
|
33653
33683
|
if (!actionDef) {
|
|
@@ -33770,7 +33800,7 @@ registerActionTypeUI("qi/xero.contact.create", {
|
|
|
33770
33800
|
});
|
|
33771
33801
|
|
|
33772
33802
|
// src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroInvoiceCreateConfig.tsx
|
|
33773
|
-
import React300, { useCallback as useCallback127, useEffect as useEffect121, useState as
|
|
33803
|
+
import React300, { useCallback as useCallback127, useEffect as useEffect121, useState as useState150 } from "react";
|
|
33774
33804
|
import { Divider as Divider31, Group as Group115, Stack as Stack217, Text as Text191 } from "@mantine/core";
|
|
33775
33805
|
|
|
33776
33806
|
// src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroLineItemsEditor.tsx
|
|
@@ -34022,7 +34052,7 @@ function IterativeMapEditor({
|
|
|
34022
34052
|
|
|
34023
34053
|
// src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroInvoiceCreateConfig.tsx
|
|
34024
34054
|
var XeroInvoiceCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
34025
|
-
const [local, setLocal] =
|
|
34055
|
+
const [local, setLocal] = useState150(() => parseXeroInvoiceCreateInputs(inputs));
|
|
34026
34056
|
useEffect121(() => {
|
|
34027
34057
|
setLocal(parseXeroInvoiceCreateInputs(inputs));
|
|
34028
34058
|
}, [inputs]);
|
|
@@ -34130,7 +34160,7 @@ var XeroInvoiceCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
34130
34160
|
};
|
|
34131
34161
|
|
|
34132
34162
|
// src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroInvoiceCreateFlowDetail.tsx
|
|
34133
|
-
import React301, { useCallback as useCallback128, useEffect as useEffect122, useMemo as useMemo121, useState as
|
|
34163
|
+
import React301, { useCallback as useCallback128, useEffect as useEffect122, useMemo as useMemo121, useState as useState151 } from "react";
|
|
34134
34164
|
import { Alert as Alert67, Badge as Badge54, Stack as Stack218, Text as Text192 } from "@mantine/core";
|
|
34135
34165
|
function resolveIterativeSource(source, editorDocument, opts) {
|
|
34136
34166
|
const refs = parseReferences(source || "");
|
|
@@ -34203,7 +34233,7 @@ var XeroInvoiceCreateFlowDetail = ({
|
|
|
34203
34233
|
},
|
|
34204
34234
|
[parsed, editor, resolveOpts]
|
|
34205
34235
|
);
|
|
34206
|
-
const [local, setLocal] =
|
|
34236
|
+
const [local, setLocal] = useState151(() => ({
|
|
34207
34237
|
ContactID: seedFromTemplate("ContactID"),
|
|
34208
34238
|
ContactName: seedFromTemplate("ContactName"),
|
|
34209
34239
|
Date: seedFromTemplate("Date"),
|
|
@@ -34251,7 +34281,7 @@ var XeroInvoiceCreateFlowDetail = ({
|
|
|
34251
34281
|
useEffect122(() => {
|
|
34252
34282
|
registerRuntimeInputs?.(local);
|
|
34253
34283
|
}, [registerRuntimeInputs, local]);
|
|
34254
|
-
const [error, setError] =
|
|
34284
|
+
const [error, setError] = useState151(null);
|
|
34255
34285
|
const execute = useCallback128(async () => {
|
|
34256
34286
|
const actionDef = getAction("qi/xero.invoice.create");
|
|
34257
34287
|
if (!actionDef) {
|
|
@@ -34389,7 +34419,7 @@ registerActionTypeUI("qi/xero.invoice.create", {
|
|
|
34389
34419
|
});
|
|
34390
34420
|
|
|
34391
34421
|
// src/mantine/blocks/action/actionTypes/xero/invoiceList/XeroInvoiceListConfig.tsx
|
|
34392
|
-
import React302, { useCallback as useCallback129, useEffect as useEffect123, useState as
|
|
34422
|
+
import React302, { useCallback as useCallback129, useEffect as useEffect123, useState as useState152 } from "react";
|
|
34393
34423
|
import { Divider as Divider32, Group as Group116, Stack as Stack219, Switch as Switch9, Text as Text193 } from "@mantine/core";
|
|
34394
34424
|
|
|
34395
34425
|
// src/core/lib/actionRegistry/actions/xero/invoiceList.types.ts
|
|
@@ -34432,7 +34462,7 @@ function serializeXeroInvoiceListInputs(inputs) {
|
|
|
34432
34462
|
|
|
34433
34463
|
// src/mantine/blocks/action/actionTypes/xero/invoiceList/XeroInvoiceListConfig.tsx
|
|
34434
34464
|
var XeroInvoiceListConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
34435
|
-
const [local, setLocal] =
|
|
34465
|
+
const [local, setLocal] = useState152(() => parseXeroInvoiceListInputs(inputs));
|
|
34436
34466
|
useEffect123(() => {
|
|
34437
34467
|
setLocal(parseXeroInvoiceListInputs(inputs));
|
|
34438
34468
|
}, [inputs]);
|
|
@@ -34509,7 +34539,7 @@ var XeroInvoiceListConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
34509
34539
|
};
|
|
34510
34540
|
|
|
34511
34541
|
// src/mantine/blocks/action/actionTypes/xero/invoiceList/XeroInvoiceListFlowDetail.tsx
|
|
34512
|
-
import React303, { useCallback as useCallback130, useMemo as useMemo122, useState as
|
|
34542
|
+
import React303, { useCallback as useCallback130, useMemo as useMemo122, useState as useState153 } from "react";
|
|
34513
34543
|
import { Alert as Alert68, Badge as Badge55, Button as Button65, Loader as Loader62, Stack as Stack220 } from "@mantine/core";
|
|
34514
34544
|
import { IconRefresh as IconRefresh9 } from "@tabler/icons-react";
|
|
34515
34545
|
var XeroInvoiceListFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled }) => {
|
|
@@ -34545,8 +34575,8 @@ var XeroInvoiceListFlowDetail = ({ inputs, editor, block, runtime, updateRuntime
|
|
|
34545
34575
|
const connection = parsed.connection;
|
|
34546
34576
|
const hasConnection = !!connection?.connectedAccountId;
|
|
34547
34577
|
const entityMismatch = hasConnection && entityDid && connection.entityDid && connection.entityDid !== entityDid;
|
|
34548
|
-
const [loading, setLoading] =
|
|
34549
|
-
const [error, setError] =
|
|
34578
|
+
const [loading, setLoading] = useState153(false);
|
|
34579
|
+
const [error, setError] = useState153(null);
|
|
34550
34580
|
const execute = useCallback130(async () => {
|
|
34551
34581
|
const actionDef = getAction("qi/xero.invoice.list");
|
|
34552
34582
|
if (!actionDef) {
|
|
@@ -34655,10 +34685,10 @@ registerActionTypeUI("qi/xero.invoice.list", {
|
|
|
34655
34685
|
});
|
|
34656
34686
|
|
|
34657
34687
|
// src/mantine/blocks/action/actionTypes/xero/paymentCreate/XeroPaymentCreateConfig.tsx
|
|
34658
|
-
import React304, { useCallback as useCallback131, useEffect as useEffect124, useState as
|
|
34688
|
+
import React304, { useCallback as useCallback131, useEffect as useEffect124, useState as useState154 } from "react";
|
|
34659
34689
|
import { Divider as Divider33, Group as Group117, Stack as Stack221, Text as Text194 } from "@mantine/core";
|
|
34660
34690
|
var XeroPaymentCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
34661
|
-
const [local, setLocal] =
|
|
34691
|
+
const [local, setLocal] = useState154(() => parseXeroPaymentCreateInputs(inputs));
|
|
34662
34692
|
useEffect124(() => {
|
|
34663
34693
|
setLocal(parseXeroPaymentCreateInputs(inputs));
|
|
34664
34694
|
}, [inputs]);
|
|
@@ -34750,7 +34780,7 @@ var XeroPaymentCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
34750
34780
|
};
|
|
34751
34781
|
|
|
34752
34782
|
// src/mantine/blocks/action/actionTypes/xero/paymentCreate/XeroPaymentCreateFlowDetail.tsx
|
|
34753
|
-
import React305, { useCallback as useCallback132, useEffect as useEffect125, useMemo as useMemo123, useState as
|
|
34783
|
+
import React305, { useCallback as useCallback132, useEffect as useEffect125, useMemo as useMemo123, useState as useState155 } from "react";
|
|
34754
34784
|
import { Alert as Alert69, Stack as Stack222, Text as Text195 } from "@mantine/core";
|
|
34755
34785
|
var XeroPaymentCreateFlowDetail = ({
|
|
34756
34786
|
inputs,
|
|
@@ -34793,7 +34823,7 @@ var XeroPaymentCreateFlowDetail = ({
|
|
|
34793
34823
|
},
|
|
34794
34824
|
[parsed, editor, resolveOpts]
|
|
34795
34825
|
);
|
|
34796
|
-
const [local, setLocal] =
|
|
34826
|
+
const [local, setLocal] = useState155(() => ({
|
|
34797
34827
|
InvoiceID: seedFromTemplate("InvoiceID"),
|
|
34798
34828
|
AccountID: seedFromTemplate("AccountID"),
|
|
34799
34829
|
Amount: seedFromTemplate("Amount"),
|
|
@@ -34835,7 +34865,7 @@ var XeroPaymentCreateFlowDetail = ({
|
|
|
34835
34865
|
useEffect125(() => {
|
|
34836
34866
|
registerRuntimeInputs?.(local);
|
|
34837
34867
|
}, [registerRuntimeInputs, local]);
|
|
34838
|
-
const [error, setError] =
|
|
34868
|
+
const [error, setError] = useState155(null);
|
|
34839
34869
|
const execute = useCallback132(async () => {
|
|
34840
34870
|
const actionDef = getAction("qi/xero.payment.create");
|
|
34841
34871
|
if (!actionDef) {
|
|
@@ -35089,7 +35119,7 @@ registerActionTypeUI("qi/wallet.generate", {
|
|
|
35089
35119
|
});
|
|
35090
35120
|
|
|
35091
35121
|
// src/mantine/blocks/action/actionTypes/walletFund/WalletFundConfig.tsx
|
|
35092
|
-
import React308, { useCallback as useCallback134, useEffect as useEffect126, useState as
|
|
35122
|
+
import React308, { useCallback as useCallback134, useEffect as useEffect126, useState as useState156 } from "react";
|
|
35093
35123
|
import { Stack as Stack225, Text as Text198, NumberInput as NumberInput5 } from "@mantine/core";
|
|
35094
35124
|
|
|
35095
35125
|
// src/mantine/blocks/action/actionTypes/walletFund/types.ts
|
|
@@ -35114,7 +35144,7 @@ function serializeWalletFundInputs(inputs) {
|
|
|
35114
35144
|
|
|
35115
35145
|
// src/mantine/blocks/action/actionTypes/walletFund/WalletFundConfig.tsx
|
|
35116
35146
|
var WalletFundConfig = ({ inputs, onInputsChange }) => {
|
|
35117
|
-
const [local, setLocal] =
|
|
35147
|
+
const [local, setLocal] = useState156(() => parseWalletFundInputs(inputs));
|
|
35118
35148
|
useEffect126(() => {
|
|
35119
35149
|
setLocal(parseWalletFundInputs(inputs));
|
|
35120
35150
|
}, [inputs]);
|
|
@@ -35377,7 +35407,7 @@ registerActionTypeUI("qi/wallet.generateAndFund", {
|
|
|
35377
35407
|
});
|
|
35378
35408
|
|
|
35379
35409
|
// src/mantine/blocks/action/actionTypes/iidCreate/IidCreateConfig.tsx
|
|
35380
|
-
import React312, { useCallback as useCallback137, useEffect as useEffect128, useState as
|
|
35410
|
+
import React312, { useCallback as useCallback137, useEffect as useEffect128, useState as useState157 } from "react";
|
|
35381
35411
|
import { Stack as Stack229, Text as Text202 } from "@mantine/core";
|
|
35382
35412
|
|
|
35383
35413
|
// src/mantine/blocks/action/actionTypes/iidCreate/types.ts
|
|
@@ -35405,7 +35435,7 @@ function serializeIidCreateInputs(inputs) {
|
|
|
35405
35435
|
|
|
35406
35436
|
// src/mantine/blocks/action/actionTypes/iidCreate/IidCreateConfig.tsx
|
|
35407
35437
|
var IidCreateConfig = ({ inputs, onInputsChange }) => {
|
|
35408
|
-
const [local, setLocal] =
|
|
35438
|
+
const [local, setLocal] = useState157(() => parseIidCreateInputs(inputs));
|
|
35409
35439
|
useEffect128(() => {
|
|
35410
35440
|
setLocal(parseIidCreateInputs(inputs));
|
|
35411
35441
|
}, [inputs]);
|
|
@@ -35624,7 +35654,7 @@ registerActionTypeUI("qi/iid.create", {
|
|
|
35624
35654
|
});
|
|
35625
35655
|
|
|
35626
35656
|
// src/mantine/blocks/action/actionTypes/matrixRegister/MatrixRegisterConfig.tsx
|
|
35627
|
-
import React314, { useCallback as useCallback139, useEffect as useEffect129, useState as
|
|
35657
|
+
import React314, { useCallback as useCallback139, useEffect as useEffect129, useState as useState158 } from "react";
|
|
35628
35658
|
import { Stack as Stack231, Text as Text204 } from "@mantine/core";
|
|
35629
35659
|
|
|
35630
35660
|
// src/mantine/blocks/action/actionTypes/matrixRegister/types.ts
|
|
@@ -35656,7 +35686,7 @@ function serializeMatrixRegisterInputs(inputs) {
|
|
|
35656
35686
|
|
|
35657
35687
|
// src/mantine/blocks/action/actionTypes/matrixRegister/MatrixRegisterConfig.tsx
|
|
35658
35688
|
var MatrixRegisterConfig = ({ inputs, onInputsChange }) => {
|
|
35659
|
-
const [local, setLocal] =
|
|
35689
|
+
const [local, setLocal] = useState158(() => parseMatrixRegisterInputs(inputs));
|
|
35660
35690
|
useEffect129(() => {
|
|
35661
35691
|
setLocal(parseMatrixRegisterInputs(inputs));
|
|
35662
35692
|
}, [inputs]);
|
|
@@ -35835,7 +35865,7 @@ registerActionTypeUI("qi/matrix.register", {
|
|
|
35835
35865
|
});
|
|
35836
35866
|
|
|
35837
35867
|
// src/mantine/blocks/action/actionTypes/identityCreate/IdentityCreateConfig.tsx
|
|
35838
|
-
import React316, { useCallback as useCallback141, useEffect as useEffect130, useState as
|
|
35868
|
+
import React316, { useCallback as useCallback141, useEffect as useEffect130, useState as useState159 } from "react";
|
|
35839
35869
|
import { Stack as Stack233, Text as Text206 } from "@mantine/core";
|
|
35840
35870
|
|
|
35841
35871
|
// src/mantine/blocks/action/actionTypes/identityCreate/types.ts
|
|
@@ -35866,7 +35896,7 @@ function serializeIdentityCreateInputs(inputs) {
|
|
|
35866
35896
|
|
|
35867
35897
|
// src/mantine/blocks/action/actionTypes/identityCreate/IdentityCreateConfig.tsx
|
|
35868
35898
|
var IdentityCreateConfig = ({ inputs, onInputsChange }) => {
|
|
35869
|
-
const [local, setLocal] =
|
|
35899
|
+
const [local, setLocal] = useState159(() => parseIdentityCreateInputs(inputs));
|
|
35870
35900
|
useEffect130(() => {
|
|
35871
35901
|
setLocal(parseIdentityCreateInputs(inputs));
|
|
35872
35902
|
}, [inputs]);
|
|
@@ -36121,7 +36151,7 @@ registerActionTypeUI("qi/identity.create", {
|
|
|
36121
36151
|
});
|
|
36122
36152
|
|
|
36123
36153
|
// src/mantine/blocks/action/actionTypes/entityCreateOracle/EntityCreateOracleConfig.tsx
|
|
36124
|
-
import React318, { useCallback as useCallback143, useEffect as useEffect131, useState as
|
|
36154
|
+
import React318, { useCallback as useCallback143, useEffect as useEffect131, useState as useState160 } from "react";
|
|
36125
36155
|
import { Divider as Divider34, Stack as Stack235, Text as Text208 } from "@mantine/core";
|
|
36126
36156
|
|
|
36127
36157
|
// src/mantine/blocks/action/actionTypes/entityCreateOracle/types.ts
|
|
@@ -36185,7 +36215,7 @@ function serializeEntityCreateOracleInputs(inputs) {
|
|
|
36185
36215
|
|
|
36186
36216
|
// src/mantine/blocks/action/actionTypes/entityCreateOracle/EntityCreateOracleConfig.tsx
|
|
36187
36217
|
var EntityCreateOracleConfig = ({ inputs, onInputsChange }) => {
|
|
36188
|
-
const [local, setLocal] =
|
|
36218
|
+
const [local, setLocal] = useState160(() => parseEntityCreateOracleInputs(inputs));
|
|
36189
36219
|
useEffect131(() => {
|
|
36190
36220
|
setLocal(parseEntityCreateOracleInputs(inputs));
|
|
36191
36221
|
}, [inputs]);
|
|
@@ -36486,7 +36516,7 @@ registerActionTypeUI("qi/entity.createOracle", {
|
|
|
36486
36516
|
});
|
|
36487
36517
|
|
|
36488
36518
|
// src/mantine/blocks/action/actionTypes/sandboxProvision/SandboxProvisionConfig.tsx
|
|
36489
|
-
import React320, { useCallback as useCallback145, useEffect as useEffect132, useState as
|
|
36519
|
+
import React320, { useCallback as useCallback145, useEffect as useEffect132, useState as useState161 } from "react";
|
|
36490
36520
|
import { Stack as Stack237, Text as Text210 } from "@mantine/core";
|
|
36491
36521
|
|
|
36492
36522
|
// src/mantine/blocks/action/actionTypes/sandboxProvision/types.ts
|
|
@@ -36510,7 +36540,7 @@ function serializeSandboxProvisionInputs(inputs) {
|
|
|
36510
36540
|
|
|
36511
36541
|
// src/mantine/blocks/action/actionTypes/sandboxProvision/SandboxProvisionConfig.tsx
|
|
36512
36542
|
var SandboxProvisionConfig = ({ inputs, onInputsChange }) => {
|
|
36513
|
-
const [local, setLocal] =
|
|
36543
|
+
const [local, setLocal] = useState161(() => parseSandboxProvisionInputs(inputs));
|
|
36514
36544
|
useEffect132(() => {
|
|
36515
36545
|
setLocal(parseSandboxProvisionInputs(inputs));
|
|
36516
36546
|
}, [inputs]);
|
|
@@ -36658,7 +36688,7 @@ registerActionTypeUI("qi/sandbox.provision", {
|
|
|
36658
36688
|
});
|
|
36659
36689
|
|
|
36660
36690
|
// src/mantine/blocks/action/actionTypes/oracleContract/OracleContractConfig.tsx
|
|
36661
|
-
import React322, { useCallback as useCallback147, useEffect as useEffect133, useState as
|
|
36691
|
+
import React322, { useCallback as useCallback147, useEffect as useEffect133, useState as useState162 } from "react";
|
|
36662
36692
|
import { Stack as Stack239, Text as Text212 } from "@mantine/core";
|
|
36663
36693
|
|
|
36664
36694
|
// src/mantine/blocks/action/actionTypes/oracleContract/types.ts
|
|
@@ -36680,7 +36710,7 @@ function serializeOracleContractInputs(inputs) {
|
|
|
36680
36710
|
|
|
36681
36711
|
// src/mantine/blocks/action/actionTypes/oracleContract/OracleContractConfig.tsx
|
|
36682
36712
|
var OracleContractConfig = ({ inputs, onInputsChange }) => {
|
|
36683
|
-
const [local, setLocal] =
|
|
36713
|
+
const [local, setLocal] = useState162(() => parseOracleContractInputs(inputs));
|
|
36684
36714
|
useEffect133(() => {
|
|
36685
36715
|
setLocal(parseOracleContractInputs(inputs));
|
|
36686
36716
|
}, [inputs]);
|
|
@@ -36818,7 +36848,7 @@ registerActionTypeUI("qi/oracle.contract", {
|
|
|
36818
36848
|
});
|
|
36819
36849
|
|
|
36820
36850
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsConfig.tsx
|
|
36821
|
-
import React324, { useCallback as useCallback149, useEffect as useEffect134, useState as
|
|
36851
|
+
import React324, { useCallback as useCallback149, useEffect as useEffect134, useState as useState163 } from "react";
|
|
36822
36852
|
import { Divider as Divider35, Stack as Stack241, Text as Text214 } from "@mantine/core";
|
|
36823
36853
|
|
|
36824
36854
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/types.ts
|
|
@@ -36866,7 +36896,7 @@ function serializeOracleStoreSecretsInputs(inputs) {
|
|
|
36866
36896
|
|
|
36867
36897
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsConfig.tsx
|
|
36868
36898
|
var OracleStoreSecretsConfig = ({ inputs, onInputsChange }) => {
|
|
36869
|
-
const [local, setLocal] =
|
|
36899
|
+
const [local, setLocal] = useState163(() => parseOracleStoreSecretsInputs(inputs));
|
|
36870
36900
|
useEffect134(() => {
|
|
36871
36901
|
setLocal(parseOracleStoreSecretsInputs(inputs));
|
|
36872
36902
|
}, [inputs]);
|
|
@@ -37002,7 +37032,7 @@ var OracleStoreSecretsConfig = ({ inputs, onInputsChange }) => {
|
|
|
37002
37032
|
};
|
|
37003
37033
|
|
|
37004
37034
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsFlowDetail.tsx
|
|
37005
|
-
import React325, { useCallback as useCallback150, useEffect as useEffect135, useMemo as useMemo133, useRef as useRef33, useState as
|
|
37035
|
+
import React325, { useCallback as useCallback150, useEffect as useEffect135, useMemo as useMemo133, useRef as useRef33, useState as useState164 } from "react";
|
|
37006
37036
|
import { Alert as Alert79, Button as Button74, Collapse as Collapse11, Divider as Divider36, Group as Group127, Loader as Loader72, Stack as Stack242, Text as Text215 } from "@mantine/core";
|
|
37007
37037
|
import { IconAlertCircle as IconAlertCircle33, IconCheck as IconCheck35, IconChevronDown as IconChevronDown11, IconChevronUp as IconChevronUp5, IconLock as IconLock2 } from "@tabler/icons-react";
|
|
37008
37038
|
var EXPECTED_SECRETS = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
|
|
@@ -37072,13 +37102,13 @@ var OracleStoreSecretsFlowDetail = ({ inputs, editor, block, runtime, updateRunt
|
|
|
37072
37102
|
const errorMessage = runtime.error?.message || null;
|
|
37073
37103
|
const openRouterJwe = runtime.userInputs?.openRouterApiKey || "";
|
|
37074
37104
|
const hasOpenRouter = !!openRouterJwe;
|
|
37075
|
-
const [openRouterDraft, setOpenRouterDraft] =
|
|
37076
|
-
const [isEditingOpenRouter, setIsEditingOpenRouter] =
|
|
37077
|
-
const [isLoadingIdempotency, setIsLoadingIdempotency] =
|
|
37078
|
-
const [isEncryptingOpenRouter, setIsEncryptingOpenRouter] =
|
|
37079
|
-
const [showAdditional, setShowAdditional] =
|
|
37080
|
-
const [networkConstants, setNetworkConstants] =
|
|
37081
|
-
const [isLoadingConstants, setIsLoadingConstants] =
|
|
37105
|
+
const [openRouterDraft, setOpenRouterDraft] = useState164("");
|
|
37106
|
+
const [isEditingOpenRouter, setIsEditingOpenRouter] = useState164(!hasOpenRouter);
|
|
37107
|
+
const [isLoadingIdempotency, setIsLoadingIdempotency] = useState164(false);
|
|
37108
|
+
const [isEncryptingOpenRouter, setIsEncryptingOpenRouter] = useState164(false);
|
|
37109
|
+
const [showAdditional, setShowAdditional] = useState164(false);
|
|
37110
|
+
const [networkConstants, setNetworkConstants] = useState164(null);
|
|
37111
|
+
const [isLoadingConstants, setIsLoadingConstants] = useState164(false);
|
|
37082
37112
|
const constantsFetchRef = useRef33(false);
|
|
37083
37113
|
const handleSaveOpenRouter = useCallback150(async () => {
|
|
37084
37114
|
if (!openRouterDraft) return;
|
|
@@ -37283,7 +37313,7 @@ registerActionTypeUI("qi/oracle.storeSecrets", {
|
|
|
37283
37313
|
});
|
|
37284
37314
|
|
|
37285
37315
|
// src/mantine/blocks/action/actionTypes/oracleStoreConfig/OracleStoreConfigConfig.tsx
|
|
37286
|
-
import React326, { useCallback as useCallback151, useEffect as useEffect136, useState as
|
|
37316
|
+
import React326, { useCallback as useCallback151, useEffect as useEffect136, useState as useState165 } from "react";
|
|
37287
37317
|
import { Divider as Divider37, Stack as Stack243, Text as Text216 } from "@mantine/core";
|
|
37288
37318
|
|
|
37289
37319
|
// src/mantine/blocks/action/actionTypes/oracleStoreConfig/types.ts
|
|
@@ -37353,7 +37383,7 @@ function serializeOracleStoreConfigInputs(inputs) {
|
|
|
37353
37383
|
|
|
37354
37384
|
// src/mantine/blocks/action/actionTypes/oracleStoreConfig/OracleStoreConfigConfig.tsx
|
|
37355
37385
|
var OracleStoreConfigConfig = ({ inputs, onInputsChange }) => {
|
|
37356
|
-
const [local, setLocal] =
|
|
37386
|
+
const [local, setLocal] = useState165(() => parseOracleStoreConfigInputs(inputs));
|
|
37357
37387
|
useEffect136(() => {
|
|
37358
37388
|
setLocal(parseOracleStoreConfigInputs(inputs));
|
|
37359
37389
|
}, [inputs]);
|
|
@@ -37617,7 +37647,7 @@ registerActionTypeUI("qi/oracle.storeConfig", {
|
|
|
37617
37647
|
});
|
|
37618
37648
|
|
|
37619
37649
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigConfig.tsx
|
|
37620
|
-
import React328, { useCallback as useCallback153, useEffect as useEffect137, useState as
|
|
37650
|
+
import React328, { useCallback as useCallback153, useEffect as useEffect137, useState as useState166 } from "react";
|
|
37621
37651
|
import { Divider as Divider38, Stack as Stack245, Text as Text218 } from "@mantine/core";
|
|
37622
37652
|
|
|
37623
37653
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/types.ts
|
|
@@ -37692,7 +37722,7 @@ function serializeOracleStoreSecretsAndConfigInputs(inputs) {
|
|
|
37692
37722
|
|
|
37693
37723
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigConfig.tsx
|
|
37694
37724
|
var OracleStoreSecretsAndConfigConfig = ({ inputs, onInputsChange }) => {
|
|
37695
|
-
const [local, setLocal] =
|
|
37725
|
+
const [local, setLocal] = useState166(() => parseOracleStoreSecretsAndConfigInputs(inputs));
|
|
37696
37726
|
useEffect137(() => {
|
|
37697
37727
|
setLocal(parseOracleStoreSecretsAndConfigInputs(inputs));
|
|
37698
37728
|
}, [inputs]);
|
|
@@ -37876,7 +37906,7 @@ var OracleStoreSecretsAndConfigConfig = ({ inputs, onInputsChange }) => {
|
|
|
37876
37906
|
};
|
|
37877
37907
|
|
|
37878
37908
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigFlowDetail.tsx
|
|
37879
|
-
import React329, { useCallback as useCallback154, useEffect as useEffect138, useMemo as useMemo135, useRef as useRef34, useState as
|
|
37909
|
+
import React329, { useCallback as useCallback154, useEffect as useEffect138, useMemo as useMemo135, useRef as useRef34, useState as useState167 } from "react";
|
|
37880
37910
|
import { Alert as Alert81, Button as Button76, Collapse as Collapse12, Divider as Divider39, Group as Group129, Loader as Loader74, Stack as Stack246, Text as Text219 } from "@mantine/core";
|
|
37881
37911
|
import { IconAlertCircle as IconAlertCircle35, IconCheck as IconCheck37, IconChevronDown as IconChevronDown12, IconChevronUp as IconChevronUp6, IconLock as IconLock3 } from "@tabler/icons-react";
|
|
37882
37912
|
var EXPECTED_SECRETS2 = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
|
|
@@ -37965,13 +37995,13 @@ var OracleStoreSecretsAndConfigFlowDetail = ({ inputs, editor, block, runtime, u
|
|
|
37965
37995
|
const errorMessage = runtime.error?.message || null;
|
|
37966
37996
|
const openRouterJwe = runtime.userInputs?.openRouterApiKey || "";
|
|
37967
37997
|
const hasOpenRouter = !!openRouterJwe;
|
|
37968
|
-
const [openRouterDraft, setOpenRouterDraft] =
|
|
37969
|
-
const [isEditingOpenRouter, setIsEditingOpenRouter] =
|
|
37970
|
-
const [isLoadingIdempotency, setIsLoadingIdempotency] =
|
|
37971
|
-
const [isEncryptingOpenRouter, setIsEncryptingOpenRouter] =
|
|
37972
|
-
const [showAdditional, setShowAdditional] =
|
|
37973
|
-
const [networkConstants, setNetworkConstants] =
|
|
37974
|
-
const [isLoadingConstants, setIsLoadingConstants] =
|
|
37998
|
+
const [openRouterDraft, setOpenRouterDraft] = useState167("");
|
|
37999
|
+
const [isEditingOpenRouter, setIsEditingOpenRouter] = useState167(!hasOpenRouter);
|
|
38000
|
+
const [isLoadingIdempotency, setIsLoadingIdempotency] = useState167(false);
|
|
38001
|
+
const [isEncryptingOpenRouter, setIsEncryptingOpenRouter] = useState167(false);
|
|
38002
|
+
const [showAdditional, setShowAdditional] = useState167(false);
|
|
38003
|
+
const [networkConstants, setNetworkConstants] = useState167(null);
|
|
38004
|
+
const [isLoadingConstants, setIsLoadingConstants] = useState167(false);
|
|
37975
38005
|
const constantsFetchRef = useRef34(false);
|
|
37976
38006
|
const handleSaveOpenRouter = useCallback154(async () => {
|
|
37977
38007
|
if (!openRouterDraft) return;
|
|
@@ -38163,7 +38193,7 @@ registerActionTypeUI("qi/oracle.storeSecretsAndConfig", {
|
|
|
38163
38193
|
});
|
|
38164
38194
|
|
|
38165
38195
|
// src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleConfig.tsx
|
|
38166
|
-
import React330, { useCallback as useCallback155, useEffect as useEffect139, useState as
|
|
38196
|
+
import React330, { useCallback as useCallback155, useEffect as useEffect139, useState as useState168 } from "react";
|
|
38167
38197
|
import { Divider as Divider40, Stack as Stack247, Text as Text220 } from "@mantine/core";
|
|
38168
38198
|
|
|
38169
38199
|
// src/mantine/blocks/action/actionTypes/oracleConfigureOracle/types.ts
|
|
@@ -38239,7 +38269,7 @@ function serializeOracleConfigureOracleInputs(inputs) {
|
|
|
38239
38269
|
|
|
38240
38270
|
// src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleConfig.tsx
|
|
38241
38271
|
var OracleConfigureOracleConfig = ({ inputs, onInputsChange }) => {
|
|
38242
|
-
const [local, setLocal] =
|
|
38272
|
+
const [local, setLocal] = useState168(() => parseOracleConfigureOracleInputs(inputs));
|
|
38243
38273
|
useEffect139(() => {
|
|
38244
38274
|
setLocal(parseOracleConfigureOracleInputs(inputs));
|
|
38245
38275
|
}, [inputs]);
|
|
@@ -38423,7 +38453,7 @@ var OracleConfigureOracleConfig = ({ inputs, onInputsChange }) => {
|
|
|
38423
38453
|
};
|
|
38424
38454
|
|
|
38425
38455
|
// src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleFlowDetail.tsx
|
|
38426
|
-
import React331, { useCallback as useCallback156, useEffect as useEffect140, useMemo as useMemo136, useRef as useRef35, useState as
|
|
38456
|
+
import React331, { useCallback as useCallback156, useEffect as useEffect140, useMemo as useMemo136, useRef as useRef35, useState as useState169 } from "react";
|
|
38427
38457
|
import { Alert as Alert82, Button as Button77, Collapse as Collapse13, Divider as Divider41, Group as Group130, Loader as Loader75, Stack as Stack248, Text as Text221 } from "@mantine/core";
|
|
38428
38458
|
import { IconAlertCircle as IconAlertCircle36, IconCheck as IconCheck38, IconChevronDown as IconChevronDown13, IconChevronUp as IconChevronUp7, IconLock as IconLock4 } from "@tabler/icons-react";
|
|
38429
38459
|
var EXPECTED_SECRETS3 = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
|
|
@@ -38532,13 +38562,13 @@ var OracleConfigureOracleFlowDetail = ({ inputs, editor, block, runtime, updateR
|
|
|
38532
38562
|
const errorMessage = runtime.error?.message || null;
|
|
38533
38563
|
const openRouterJwe = runtime.userInputs?.openRouterApiKey || "";
|
|
38534
38564
|
const hasOpenRouter = !!openRouterJwe;
|
|
38535
|
-
const [openRouterDraft, setOpenRouterDraft] =
|
|
38536
|
-
const [isEditingOpenRouter, setIsEditingOpenRouter] =
|
|
38537
|
-
const [isLoadingIdempotency, setIsLoadingIdempotency] =
|
|
38538
|
-
const [isEncryptingOpenRouter, setIsEncryptingOpenRouter] =
|
|
38539
|
-
const [showAdditional, setShowAdditional] =
|
|
38540
|
-
const [networkConstants, setNetworkConstants] =
|
|
38541
|
-
const [isLoadingConstants, setIsLoadingConstants] =
|
|
38565
|
+
const [openRouterDraft, setOpenRouterDraft] = useState169("");
|
|
38566
|
+
const [isEditingOpenRouter, setIsEditingOpenRouter] = useState169(!hasOpenRouter);
|
|
38567
|
+
const [isLoadingIdempotency, setIsLoadingIdempotency] = useState169(false);
|
|
38568
|
+
const [isEncryptingOpenRouter, setIsEncryptingOpenRouter] = useState169(false);
|
|
38569
|
+
const [showAdditional, setShowAdditional] = useState169(false);
|
|
38570
|
+
const [networkConstants, setNetworkConstants] = useState169(null);
|
|
38571
|
+
const [isLoadingConstants, setIsLoadingConstants] = useState169(false);
|
|
38542
38572
|
const constantsFetchRef = useRef35(false);
|
|
38543
38573
|
const handleSaveOpenRouter = useCallback156(async () => {
|
|
38544
38574
|
if (!openRouterDraft) return;
|
|
@@ -39471,13 +39501,13 @@ import React342, { useCallback as useCallback161 } from "react";
|
|
|
39471
39501
|
import { IconSettings as IconSettings19 } from "@tabler/icons-react";
|
|
39472
39502
|
|
|
39473
39503
|
// src/mantine/blocks/location/template/GeneralTab.tsx
|
|
39474
|
-
import React341, { useEffect as useEffect142, useRef as useRef36, useState as
|
|
39504
|
+
import React341, { useEffect as useEffect142, useRef as useRef36, useState as useState172 } from "react";
|
|
39475
39505
|
import { Box as Box63, Divider as Divider42, Stack as Stack255, Text as Text228 } from "@mantine/core";
|
|
39476
39506
|
|
|
39477
39507
|
// src/core/hooks/useUnlMap.ts
|
|
39478
|
-
import { useEffect as useEffect141, useState as
|
|
39508
|
+
import { useEffect as useEffect141, useState as useState170 } from "react";
|
|
39479
39509
|
function useUnlMap() {
|
|
39480
|
-
const [status, setStatus] =
|
|
39510
|
+
const [status, setStatus] = useState170("loading");
|
|
39481
39511
|
useEffect141(() => {
|
|
39482
39512
|
if (typeof window === "undefined") {
|
|
39483
39513
|
return;
|
|
@@ -39533,7 +39563,7 @@ function useUnlMap() {
|
|
|
39533
39563
|
}
|
|
39534
39564
|
|
|
39535
39565
|
// src/mantine/blocks/location/components/TileSelector.tsx
|
|
39536
|
-
import React340, { useState as
|
|
39566
|
+
import React340, { useState as useState171, useCallback as useCallback160 } from "react";
|
|
39537
39567
|
import { ActionIcon as ActionIcon44, Group as Group134, Tooltip as Tooltip28 } from "@mantine/core";
|
|
39538
39568
|
import { IconMap, IconMoon, IconSatellite, IconMountain } from "@tabler/icons-react";
|
|
39539
39569
|
var TILE_LAYERS = {
|
|
@@ -39586,7 +39616,7 @@ function ensureLayer(map, config) {
|
|
|
39586
39616
|
);
|
|
39587
39617
|
}
|
|
39588
39618
|
var TileSelector = ({ mapRef }) => {
|
|
39589
|
-
const [active, setActive] =
|
|
39619
|
+
const [active, setActive] = useState171("map");
|
|
39590
39620
|
const switchTo = useCallback160(
|
|
39591
39621
|
(type) => {
|
|
39592
39622
|
const map = mapRef.current;
|
|
@@ -39643,9 +39673,9 @@ var DEFAULT_CENTER = [0, 20];
|
|
|
39643
39673
|
var DEFAULT_ZOOM = 2;
|
|
39644
39674
|
var PLACED_ZOOM = 14;
|
|
39645
39675
|
var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, onDescriptionChange, onCoordinatesChange }) => {
|
|
39646
|
-
const [localTitle, setLocalTitle] =
|
|
39647
|
-
const [localDescription, setLocalDescription] =
|
|
39648
|
-
const [mapError, setMapError] =
|
|
39676
|
+
const [localTitle, setLocalTitle] = useState172(title);
|
|
39677
|
+
const [localDescription, setLocalDescription] = useState172(description);
|
|
39678
|
+
const [mapError, setMapError] = useState172(null);
|
|
39649
39679
|
const { status, UnlSdk } = useUnlMap();
|
|
39650
39680
|
const { mapConfig } = useBlocknoteContext();
|
|
39651
39681
|
const markerRef = useRef36(null);
|
|
@@ -39784,10 +39814,10 @@ var TemplateConfig17 = ({ editor, block }) => {
|
|
|
39784
39814
|
};
|
|
39785
39815
|
|
|
39786
39816
|
// src/mantine/blocks/location/components/LocationMap.tsx
|
|
39787
|
-
import React343, { useEffect as useEffect143, useRef as useRef37, useState as
|
|
39817
|
+
import React343, { useEffect as useEffect143, useRef as useRef37, useState as useState173 } from "react";
|
|
39788
39818
|
import { Box as Box64, Flex as Flex36, Loader as Loader79, Text as Text229 } from "@mantine/core";
|
|
39789
39819
|
var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker = true, showTilesControl = false }) => {
|
|
39790
|
-
const [mapError, setMapError] =
|
|
39820
|
+
const [mapError, setMapError] = useState173(null);
|
|
39791
39821
|
const { mapConfig } = useBlocknoteContext();
|
|
39792
39822
|
const wrapperRef = useRef37(null);
|
|
39793
39823
|
const containerRef = useRef37(null);
|
|
@@ -39965,7 +39995,7 @@ import React350, { useCallback as useCallback162 } from "react";
|
|
|
39965
39995
|
import { IconSettings as IconSettings20 } from "@tabler/icons-react";
|
|
39966
39996
|
|
|
39967
39997
|
// src/mantine/blocks/embed/template/GeneralTab.tsx
|
|
39968
|
-
import React349, { useEffect as useEffect144, useState as
|
|
39998
|
+
import React349, { useEffect as useEffect144, useState as useState174 } from "react";
|
|
39969
39999
|
import { Stack as Stack258, Switch as Switch10, Text as Text232 } from "@mantine/core";
|
|
39970
40000
|
var GeneralTab18 = ({
|
|
39971
40001
|
url,
|
|
@@ -39981,8 +40011,8 @@ var GeneralTab18 = ({
|
|
|
39981
40011
|
onHeightChange,
|
|
39982
40012
|
onAllowAuthChange
|
|
39983
40013
|
}) => {
|
|
39984
|
-
const [localUrl, setLocalUrl] =
|
|
39985
|
-
const [localHeight, setLocalHeight] =
|
|
40014
|
+
const [localUrl, setLocalUrl] = useState174(url);
|
|
40015
|
+
const [localHeight, setLocalHeight] = useState174(height);
|
|
39986
40016
|
const iconOptions = Object.keys(ICON_MAP).map((key) => ({
|
|
39987
40017
|
value: key,
|
|
39988
40018
|
label: key.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ")
|
|
@@ -40209,7 +40239,7 @@ import React357 from "react";
|
|
|
40209
40239
|
import { createReactBlockSpec as createReactBlockSpec23 } from "@blocknote/react";
|
|
40210
40240
|
|
|
40211
40241
|
// src/mantine/blocks/secrets/SecretsBlock.tsx
|
|
40212
|
-
import React356, { useCallback as useCallback164, useMemo as useMemo144, useState as
|
|
40242
|
+
import React356, { useCallback as useCallback164, useMemo as useMemo144, useState as useState175 } from "react";
|
|
40213
40243
|
import { Anchor as Anchor5, ActionIcon as ActionIcon45, Button as Button81, Collapse as Collapse14, CopyButton as CopyButton3, Group as Group139, Paper as Paper20, Stack as Stack261, Text as Text235, Tooltip as Tooltip29 } from "@mantine/core";
|
|
40214
40244
|
import { IconCheck as IconCheck42, IconCopy as IconCopy3, IconDownload as IconDownload5, IconEye, IconEyeOff, IconKey as IconKey2 } from "@tabler/icons-react";
|
|
40215
40245
|
var SENSITIVE_KEYS = /* @__PURE__ */ new Set(["mnemonic", "matrixPassword", "matrixRecoveryPhrase", "matrixAccessToken", "pin", "openRouterApiKeyJwe", "authToken"]);
|
|
@@ -40308,7 +40338,7 @@ function flattenForDownload(outputs) {
|
|
|
40308
40338
|
return result;
|
|
40309
40339
|
}
|
|
40310
40340
|
function MaskedValue({ value, isSensitive }) {
|
|
40311
|
-
const [visible, setVisible] =
|
|
40341
|
+
const [visible, setVisible] = useState175(false);
|
|
40312
40342
|
if (!isSensitive) {
|
|
40313
40343
|
return /* @__PURE__ */ React356.createElement(Text235, { size: "xs", ff: "monospace", style: { wordBreak: "break-all" } }, String(value));
|
|
40314
40344
|
}
|
|
@@ -40321,7 +40351,7 @@ function OutputEntry({ label, value, isSensitive }) {
|
|
|
40321
40351
|
}
|
|
40322
40352
|
function SecretsBlock({ editor, block }) {
|
|
40323
40353
|
const { docType } = useBlocknoteContext();
|
|
40324
|
-
const [showOutput, setShowOutput] =
|
|
40354
|
+
const [showOutput, setShowOutput] = useState175(false);
|
|
40325
40355
|
const outputs = useMemo144(() => collectOutputs(editor), [editor, showOutput]);
|
|
40326
40356
|
const editorDocument = editor?.document || [];
|
|
40327
40357
|
const resolveOpts = useMemo144(() => ({ yRuntime: editor?._yRuntime }), [editor?._yRuntime]);
|
|
@@ -40405,7 +40435,7 @@ var SkillsTemplateView = ({ editor: _editor, block }) => {
|
|
|
40405
40435
|
// src/mantine/blocks/skills/flow/SkillsFlowView.tsx
|
|
40406
40436
|
import { ActionIcon as ActionIcon46, Badge as Badge57, Button as Button82, Collapse as Collapse15, Group as Group141, Loader as Loader80, Paper as Paper21, Stack as Stack263, Text as Text237, Tooltip as Tooltip30 } from "@mantine/core";
|
|
40407
40437
|
import { IconBrain as IconBrain3, IconCheck as IconCheck43, IconPencil, IconPlus as IconPlus11, IconTrash as IconTrash11, IconX as IconX15 } from "@tabler/icons-react";
|
|
40408
|
-
import React361, { useCallback as useCallback165, useEffect as useEffect145, useMemo as useMemo146, useRef as useRef38, useState as
|
|
40438
|
+
import React361, { useCallback as useCallback165, useEffect as useEffect145, useMemo as useMemo146, useRef as useRef38, useState as useState176 } from "react";
|
|
40409
40439
|
function parseSkills2(raw) {
|
|
40410
40440
|
try {
|
|
40411
40441
|
const parsed = JSON.parse(raw || "[]");
|
|
@@ -40428,15 +40458,15 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
40428
40458
|
const isCompleted = runtime.state === "completed" && runtime.evaluationStatus === "approved";
|
|
40429
40459
|
const skills = useMemo146(() => parseSkills2(block.props.skills), [block.props.skills]);
|
|
40430
40460
|
const mcpServers = useMemo146(() => parseMcpServers(block.props.mcpServers), [block.props.mcpServers]);
|
|
40431
|
-
const [showAddMcp, setShowAddMcp] =
|
|
40432
|
-
const [mcpName, setMcpName] =
|
|
40433
|
-
const [mcpUrl, setMcpUrl] =
|
|
40434
|
-
const [mcpDescription, setMcpDescription] =
|
|
40435
|
-
const [editingMcpIndex, setEditingMcpIndex] =
|
|
40436
|
-
const [validationResults, setValidationResults] =
|
|
40437
|
-
const [validatingUrls, setValidatingUrls] =
|
|
40438
|
-
const [capsules, setCapsules] =
|
|
40439
|
-
const [loadingCapsules, setLoadingCapsules] =
|
|
40461
|
+
const [showAddMcp, setShowAddMcp] = useState176(false);
|
|
40462
|
+
const [mcpName, setMcpName] = useState176("");
|
|
40463
|
+
const [mcpUrl, setMcpUrl] = useState176("");
|
|
40464
|
+
const [mcpDescription, setMcpDescription] = useState176("");
|
|
40465
|
+
const [editingMcpIndex, setEditingMcpIndex] = useState176(null);
|
|
40466
|
+
const [validationResults, setValidationResults] = useState176({});
|
|
40467
|
+
const [validatingUrls, setValidatingUrls] = useState176({});
|
|
40468
|
+
const [capsules, setCapsules] = useState176([]);
|
|
40469
|
+
const [loadingCapsules, setLoadingCapsules] = useState176(false);
|
|
40440
40470
|
const capsulesFetchedRef = useRef38(false);
|
|
40441
40471
|
useEffect145(() => {
|
|
40442
40472
|
if (capsulesFetchedRef.current || !handlers.getSkills) return;
|
|
@@ -40444,7 +40474,7 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
40444
40474
|
setLoadingCapsules(true);
|
|
40445
40475
|
handlers.getSkills().then((r) => setCapsules(r.capsules || [])).catch((err) => console.error("[skills] Failed to fetch capsules:", err)).finally(() => setLoadingCapsules(false));
|
|
40446
40476
|
}, [handlers.getSkills]);
|
|
40447
|
-
const [network, setNetwork] =
|
|
40477
|
+
const [network, setNetwork] = useState176("");
|
|
40448
40478
|
const networkFetchedRef = useRef38(false);
|
|
40449
40479
|
useEffect145(() => {
|
|
40450
40480
|
if (networkFetchedRef.current || !handlers.getNetwork) return;
|
|
@@ -40557,8 +40587,8 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
40557
40587
|
const cur = getCurrentBlock();
|
|
40558
40588
|
editor.updateBlock(cur, { props: { ...cur.props, status: "pending" } });
|
|
40559
40589
|
}, [updateRuntime, getCurrentBlock, editor]);
|
|
40560
|
-
const [savingMcp, setSavingMcp] =
|
|
40561
|
-
const [mcpSaveError, setMcpSaveError] =
|
|
40590
|
+
const [savingMcp, setSavingMcp] = useState176(false);
|
|
40591
|
+
const [mcpSaveError, setMcpSaveError] = useState176(null);
|
|
40562
40592
|
const handleSaveMcp = useCallback165(async () => {
|
|
40563
40593
|
const url = mcpUrl.trim();
|
|
40564
40594
|
if (!mcpName.trim() || !url) return;
|
|
@@ -40982,7 +41012,7 @@ blockRegistry.register({
|
|
|
40982
41012
|
});
|
|
40983
41013
|
|
|
40984
41014
|
// src/mantine/blocks/hooks/useBlockDependencies.ts
|
|
40985
|
-
import { useMemo as useMemo147, useEffect as useEffect146, useState as
|
|
41015
|
+
import { useMemo as useMemo147, useEffect as useEffect146, useState as useState177, useCallback as useCallback166 } from "react";
|
|
40986
41016
|
|
|
40987
41017
|
// src/mantine/blocks/hooks/useDependsOn.ts
|
|
40988
41018
|
import { useMemo as useMemo148 } from "react";
|
|
@@ -41553,11 +41583,11 @@ import { useCreateBlockNote as useCreateBlockNote2 } from "@blocknote/react";
|
|
|
41553
41583
|
import { BlockNoteSchema as BlockNoteSchema2, defaultBlockSpecs as defaultBlockSpecs2, defaultInlineContentSpecs as defaultInlineContentSpecs2 } from "@blocknote/core";
|
|
41554
41584
|
|
|
41555
41585
|
// src/core/hooks/useMatrixProvider.ts
|
|
41556
|
-
import { useEffect as useEffect147, useState as
|
|
41586
|
+
import { useEffect as useEffect147, useState as useState178, useRef as useRef39, useCallback as useCallback167, useMemo as useMemo149 } from "react";
|
|
41557
41587
|
import { MatrixProvider } from "@ixo/matrix-crdt";
|
|
41558
41588
|
function useMatrixProvider({ matrixClient, roomId, yDoc }) {
|
|
41559
|
-
const [matrixProvider, setProvider] =
|
|
41560
|
-
const [status, setStatus] =
|
|
41589
|
+
const [matrixProvider, setProvider] = useState178(null);
|
|
41590
|
+
const [status, setStatus] = useState178("disconnected");
|
|
41561
41591
|
const isMountedRef = useRef39(true);
|
|
41562
41592
|
const providerRef = useRef39(null);
|
|
41563
41593
|
const retryTimeoutRef = useRef39(null);
|
|
@@ -41658,7 +41688,7 @@ function useCollaborativeYDoc(_options) {
|
|
|
41658
41688
|
}
|
|
41659
41689
|
|
|
41660
41690
|
// src/mantine/hooks/useCollaborativeIxoEditor.ts
|
|
41661
|
-
import { useMemo as useMemo151, useEffect as useEffect149, useState as
|
|
41691
|
+
import { useMemo as useMemo151, useEffect as useEffect149, useState as useState179, useRef as useRef41 } from "react";
|
|
41662
41692
|
|
|
41663
41693
|
// src/core/lib/matrixMetadata.ts
|
|
41664
41694
|
var COVER_IMAGE_EVENT_TYPE = "ixo.page.cover_image";
|
|
@@ -42338,6 +42368,8 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
42338
42368
|
const delegationsMap = useMemo151(() => yDoc.getMap("delegations"), [yDoc]);
|
|
42339
42369
|
const invocationsMap = useMemo151(() => yDoc.getMap("invocations"), [yDoc]);
|
|
42340
42370
|
const migrationMap = useMemo151(() => yDoc.getMap("migration"), [yDoc]);
|
|
42371
|
+
const agentOutboxMap = useMemo151(() => yDoc.getMap("agentOutbox"), [yDoc]);
|
|
42372
|
+
const agentLeasesMap = useMemo151(() => yDoc.getMap("agentLeases"), [yDoc]);
|
|
42341
42373
|
const ucanDelegationStore = useMemo151(() => {
|
|
42342
42374
|
const store = createUcanDelegationStore(delegationsMap);
|
|
42343
42375
|
const originalSet = store.set;
|
|
@@ -42382,7 +42414,7 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
42382
42414
|
}),
|
|
42383
42415
|
[theme, editable, sideMenu, slashMenu, formattingToolbar, linkToolbar, filePanel, tableHandles]
|
|
42384
42416
|
);
|
|
42385
|
-
const [providerReady, setProviderReady] =
|
|
42417
|
+
const [providerReady, setProviderReady] = useState179(false);
|
|
42386
42418
|
useEffect149(() => {
|
|
42387
42419
|
if (matrixProvider && !providerReady) setProviderReady(true);
|
|
42388
42420
|
}, [matrixProvider, providerReady]);
|
|
@@ -42464,6 +42496,8 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
42464
42496
|
ixoEditor._ucanDelegationStore = ucanDelegationStore;
|
|
42465
42497
|
ixoEditor._invocationStore = invocationStore;
|
|
42466
42498
|
ixoEditor._yMigration = migrationMap;
|
|
42499
|
+
ixoEditor._yAgentOutbox = agentOutboxMap;
|
|
42500
|
+
ixoEditor._yAgentLeases = agentLeasesMap;
|
|
42467
42501
|
ixoEditor.getUcanService = () => {
|
|
42468
42502
|
return null;
|
|
42469
42503
|
};
|
|
@@ -42620,7 +42654,7 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
42620
42654
|
titleText.insert(0, options.title);
|
|
42621
42655
|
}
|
|
42622
42656
|
}, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, memoizedUser.id]);
|
|
42623
|
-
const [connectedUsers, setConnectedUsers] =
|
|
42657
|
+
const [connectedUsers, setConnectedUsers] = useState179([]);
|
|
42624
42658
|
const activeBlockIdRef = useRef41(null);
|
|
42625
42659
|
const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
|
|
42626
42660
|
useEffect149(() => {
|
|
@@ -42737,7 +42771,7 @@ function sanitizeThemeForMantine7(theme) {
|
|
|
42737
42771
|
}
|
|
42738
42772
|
|
|
42739
42773
|
// src/mantine/components/CommandPalette.tsx
|
|
42740
|
-
import React364, { useEffect as useEffect150, useRef as useRef42, useState as
|
|
42774
|
+
import React364, { useEffect as useEffect150, useRef as useRef42, useState as useState180, useMemo as useMemo152, useCallback as useCallback169 } from "react";
|
|
42741
42775
|
import { Box as Box67, Text as Text238, Stack as Stack264 } from "@mantine/core";
|
|
42742
42776
|
var GROUP_ORDER = {
|
|
42743
42777
|
Headings: 0,
|
|
@@ -42768,7 +42802,7 @@ function translateGroupLabel(groupKey, t) {
|
|
|
42768
42802
|
}
|
|
42769
42803
|
function PaletteItem({ item, isSelected, onClick, id }) {
|
|
42770
42804
|
const ref = useRef42(null);
|
|
42771
|
-
const [hovered, setHovered] =
|
|
42805
|
+
const [hovered, setHovered] = useState180(false);
|
|
42772
42806
|
useEffect150(() => {
|
|
42773
42807
|
if (isSelected && ref.current) {
|
|
42774
42808
|
ref.current.scrollIntoView({ block: "nearest" });
|
|
@@ -42996,7 +43030,7 @@ function PanelContent({ theme: _theme }) {
|
|
|
42996
43030
|
}
|
|
42997
43031
|
|
|
42998
43032
|
// src/mantine/components/CoverImage.tsx
|
|
42999
|
-
import React370, { useState as
|
|
43033
|
+
import React370, { useState as useState184, useRef as useRef43, useEffect as useEffect153, useMemo as useMemo155 } from "react";
|
|
43000
43034
|
import { Box as Box72, Group as Group145 } from "@mantine/core";
|
|
43001
43035
|
import { IconMoodSmile, IconPhoto as IconPhoto6, IconSettings as IconSettings22, IconArrowsMove, IconTrash as IconTrash13, IconRefresh as IconRefresh10 } from "@tabler/icons-react";
|
|
43002
43036
|
|
|
@@ -43131,10 +43165,10 @@ function transformIconImage(sourceUrl, size = "default", customOptions) {
|
|
|
43131
43165
|
}
|
|
43132
43166
|
|
|
43133
43167
|
// src/mantine/components/Base/CoverImageButton.tsx
|
|
43134
|
-
import React366, { forwardRef, useState as
|
|
43168
|
+
import React366, { forwardRef, useState as useState181 } from "react";
|
|
43135
43169
|
import { UnstyledButton as UnstyledButton7, Group as Group142, Text as Text239 } from "@mantine/core";
|
|
43136
43170
|
var CoverImageButton = forwardRef(function CoverImageButton2({ isActive = false, onClick, icon: icon2, children, style }, ref) {
|
|
43137
|
-
const [hovered, setHovered] =
|
|
43171
|
+
const [hovered, setHovered] = useState181(false);
|
|
43138
43172
|
return /* @__PURE__ */ React366.createElement(
|
|
43139
43173
|
UnstyledButton7,
|
|
43140
43174
|
{
|
|
@@ -43176,7 +43210,7 @@ var CoverImageButton = forwardRef(function CoverImageButton2({ isActive = false,
|
|
|
43176
43210
|
});
|
|
43177
43211
|
|
|
43178
43212
|
// src/mantine/components/Base/BaseIconPicker.tsx
|
|
43179
|
-
import React367, { useState as
|
|
43213
|
+
import React367, { useState as useState182, useMemo as useMemo153, useEffect as useEffect151 } from "react";
|
|
43180
43214
|
import { TextInput as TextInput9, Tabs as Tabs4, Box as Box69, Stack as Stack265, UnstyledButton as UnstyledButton8, Text as Text240, Center as Center15, ScrollArea as ScrollArea10, Group as Group143, Popover as Popover6 } from "@mantine/core";
|
|
43181
43215
|
import * as TablerIcons2 from "@tabler/icons-react";
|
|
43182
43216
|
import { IconSearch as IconSearch9, IconX as IconX16, IconChevronLeft, IconChevronRight as IconChevronRight13 } from "@tabler/icons-react";
|
|
@@ -43209,9 +43243,9 @@ var localStorageService = {
|
|
|
43209
43243
|
var iconsKey = "editor_recent_icons";
|
|
43210
43244
|
var ICONS_PER_PAGE = 500;
|
|
43211
43245
|
function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove, children, currentIcon }) {
|
|
43212
|
-
const [searchQuery, setSearchQuery] =
|
|
43213
|
-
const [activeTab, setActiveTab] =
|
|
43214
|
-
const [currentPage, setCurrentPage] =
|
|
43246
|
+
const [searchQuery, setSearchQuery] = useState182("");
|
|
43247
|
+
const [activeTab, setActiveTab] = useState182("icons");
|
|
43248
|
+
const [currentPage, setCurrentPage] = useState182(1);
|
|
43215
43249
|
const allIcons = useMemo153(() => {
|
|
43216
43250
|
const iconEntries = Object.entries(TablerIcons2).filter(([name]) => name.startsWith("Icon") && name !== "IconProps");
|
|
43217
43251
|
return iconEntries;
|
|
@@ -43407,13 +43441,13 @@ function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
|
|
|
43407
43441
|
import { useDisclosure as useDisclosure8 } from "@mantine/hooks";
|
|
43408
43442
|
|
|
43409
43443
|
// src/mantine/components/FlowSettingsPanel.tsx
|
|
43410
|
-
import React369, { useState as
|
|
43444
|
+
import React369, { useState as useState183, useEffect as useEffect152, useCallback as useCallback170 } from "react";
|
|
43411
43445
|
import { Stack as Stack266, Group as Group144, Button as Button83, ActionIcon as ActionIcon47, Text as Text241, Box as Box71 } from "@mantine/core";
|
|
43412
43446
|
import { IconPlus as IconPlus12, IconTrash as IconTrash12 } from "@tabler/icons-react";
|
|
43413
43447
|
var SYSTEM_KEYS = /* @__PURE__ */ new Set(["@context", "_type", "schema_version", "doc_id", "title", "createdAt", "createdBy", "flowOwnerDid"]);
|
|
43414
43448
|
var FlowSettingsPanel = ({ editor }) => {
|
|
43415
43449
|
const { closePanel } = usePanelStore();
|
|
43416
|
-
const [rows, setRows] =
|
|
43450
|
+
const [rows, setRows] = useState183([]);
|
|
43417
43451
|
const loadSettings = useCallback170(() => {
|
|
43418
43452
|
const metadata = editor.getFlowMetadata?.();
|
|
43419
43453
|
if (!metadata) return;
|
|
@@ -43481,13 +43515,13 @@ var FlowSettingsPanel = ({ editor }) => {
|
|
|
43481
43515
|
// src/mantine/components/CoverImage.tsx
|
|
43482
43516
|
function CoverImage({ coverImageUrl, logoUrl }) {
|
|
43483
43517
|
const { editor, handlers, editable } = useBlocknoteContext();
|
|
43484
|
-
const [isHovering, setIsHovering] =
|
|
43485
|
-
const [isRepositioning, setIsRepositioning] =
|
|
43486
|
-
const [coverPosition, setCoverPosition] =
|
|
43518
|
+
const [isHovering, setIsHovering] = useState184(false);
|
|
43519
|
+
const [isRepositioning, setIsRepositioning] = useState184(false);
|
|
43520
|
+
const [coverPosition, setCoverPosition] = useState184(() => editor?.getPageMetadata?.()?.coverPosition ?? 50);
|
|
43487
43521
|
const coverFileInputRef = useRef43(null);
|
|
43488
43522
|
const logoFileInputRef = useRef43(null);
|
|
43489
43523
|
const [opened, { open, close }] = useDisclosure8(false);
|
|
43490
|
-
const [metadata, setMetadata] =
|
|
43524
|
+
const [metadata, setMetadata] = useState184(() => editor?.getPageMetadata?.() || null);
|
|
43491
43525
|
const settingsPanelContent = useMemo155(() => editor ? /* @__PURE__ */ React370.createElement(FlowSettingsPanel, { editor }) : null, [editor]);
|
|
43492
43526
|
const { open: openSettings } = usePanel("flow-settings-panel", settingsPanelContent);
|
|
43493
43527
|
useEffect153(() => {
|
|
@@ -43780,7 +43814,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
|
|
|
43780
43814
|
}
|
|
43781
43815
|
|
|
43782
43816
|
// src/mantine/components/PageTitle.tsx
|
|
43783
|
-
import React371, { useState as
|
|
43817
|
+
import React371, { useState as useState185, useEffect as useEffect154, useRef as useRef44, useCallback as useCallback171 } from "react";
|
|
43784
43818
|
import { Box as Box73 } from "@mantine/core";
|
|
43785
43819
|
var DEFAULT_TITLE = "New page";
|
|
43786
43820
|
function isUserTitle(name) {
|
|
@@ -43825,8 +43859,8 @@ function insertPlainTextAtSelection(root, text) {
|
|
|
43825
43859
|
}
|
|
43826
43860
|
function PageTitle({ editor, editable }) {
|
|
43827
43861
|
const t = useTranslate();
|
|
43828
|
-
const [title, setTitle] =
|
|
43829
|
-
const [hasIcon, setHasIcon] =
|
|
43862
|
+
const [title, setTitle] = useState185("");
|
|
43863
|
+
const [hasIcon, setHasIcon] = useState185(false);
|
|
43830
43864
|
const titleRef = useRef44(null);
|
|
43831
43865
|
const isComposing = useRef44(false);
|
|
43832
43866
|
useEffect154(() => {
|
|
@@ -43983,7 +44017,7 @@ if (typeof document !== "undefined") {
|
|
|
43983
44017
|
}
|
|
43984
44018
|
|
|
43985
44019
|
// src/mantine/components/ExternalDropZone.tsx
|
|
43986
|
-
import React372, { useCallback as useCallback172, useEffect as useEffect155, useRef as useRef45, useState as
|
|
44020
|
+
import React372, { useCallback as useCallback172, useEffect as useEffect155, useRef as useRef45, useState as useState186 } from "react";
|
|
43987
44021
|
import { Box as Box74 } from "@mantine/core";
|
|
43988
44022
|
var SCROLL_ZONE_SIZE = 80;
|
|
43989
44023
|
var SCROLL_SPEED = 12;
|
|
@@ -43997,9 +44031,9 @@ var ExternalDropZone = ({
|
|
|
43997
44031
|
children
|
|
43998
44032
|
}) => {
|
|
43999
44033
|
const containerRef = useRef45(null);
|
|
44000
|
-
const [isValidDrag, setIsValidDrag] =
|
|
44001
|
-
const [isHoveringInPlacementMode, setIsHoveringInPlacementMode] =
|
|
44002
|
-
const [indicatorStyle, setIndicatorStyle] =
|
|
44034
|
+
const [isValidDrag, setIsValidDrag] = useState186(false);
|
|
44035
|
+
const [isHoveringInPlacementMode, setIsHoveringInPlacementMode] = useState186(false);
|
|
44036
|
+
const [indicatorStyle, setIndicatorStyle] = useState186({});
|
|
44003
44037
|
const dropPositionRef = useRef45(null);
|
|
44004
44038
|
const scrollAnimationRef = useRef45(null);
|
|
44005
44039
|
const scrollDirectionRef = useRef45(null);
|
|
@@ -44608,7 +44642,7 @@ function DebugButton({ editor }) {
|
|
|
44608
44642
|
}
|
|
44609
44643
|
|
|
44610
44644
|
// src/mantine/components/PageHeader.tsx
|
|
44611
|
-
import React375, { useState as
|
|
44645
|
+
import React375, { useState as useState187, useRef as useRef46, useEffect as useEffect156 } from "react";
|
|
44612
44646
|
function PageHeader({
|
|
44613
44647
|
title = "New page",
|
|
44614
44648
|
icon: icon2,
|
|
@@ -44620,8 +44654,8 @@ function PageHeader({
|
|
|
44620
44654
|
isFavorited = false,
|
|
44621
44655
|
menuItems = []
|
|
44622
44656
|
}) {
|
|
44623
|
-
const [isMenuOpen, setIsMenuOpen] =
|
|
44624
|
-
const [isPrivacyOpen, setIsPrivacyOpen] =
|
|
44657
|
+
const [isMenuOpen, setIsMenuOpen] = useState187(false);
|
|
44658
|
+
const [isPrivacyOpen, setIsPrivacyOpen] = useState187(false);
|
|
44625
44659
|
const menuRef = useRef46(null);
|
|
44626
44660
|
const privacyRef = useRef46(null);
|
|
44627
44661
|
useEffect156(() => {
|
|
@@ -44822,15 +44856,15 @@ var styles = {
|
|
|
44822
44856
|
};
|
|
44823
44857
|
|
|
44824
44858
|
// src/mantine/components/EntitySigningSetup.tsx
|
|
44825
|
-
import React376, { useState as
|
|
44859
|
+
import React376, { useState as useState188 } from "react";
|
|
44826
44860
|
import { Modal as Modal4, Stack as Stack267, Text as Text242, TextInput as TextInput10, Button as Button84, Alert as Alert86, Group as Group146 } from "@mantine/core";
|
|
44827
44861
|
import { IconAlertCircle as IconAlertCircle40, IconCheck as IconCheck44, IconKey as IconKey4 } from "@tabler/icons-react";
|
|
44828
44862
|
var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) => {
|
|
44829
|
-
const [pin, setPin] =
|
|
44830
|
-
const [confirmPin, setConfirmPin] =
|
|
44831
|
-
const [loading, setLoading] =
|
|
44832
|
-
const [error, setError] =
|
|
44833
|
-
const [success, setSuccess] =
|
|
44863
|
+
const [pin, setPin] = useState188("");
|
|
44864
|
+
const [confirmPin, setConfirmPin] = useState188("");
|
|
44865
|
+
const [loading, setLoading] = useState188(false);
|
|
44866
|
+
const [error, setError] = useState188(null);
|
|
44867
|
+
const [success, setSuccess] = useState188(false);
|
|
44834
44868
|
const handleSetup = async () => {
|
|
44835
44869
|
if (pin.length < 4) {
|
|
44836
44870
|
setError("PIN must be at least 4 characters");
|
|
@@ -44894,13 +44928,13 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
|
|
|
44894
44928
|
};
|
|
44895
44929
|
|
|
44896
44930
|
// src/mantine/components/FlowPermissionsPanel.tsx
|
|
44897
|
-
import React377, { useState as
|
|
44931
|
+
import React377, { useState as useState189, useEffect as useEffect157, useMemo as useMemo157 } from "react";
|
|
44898
44932
|
import { Stack as Stack268, Text as Text243, Paper as Paper22, Group as Group147, Badge as Badge58, Button as Button85, ActionIcon as ActionIcon48, Loader as Loader81, Alert as Alert87, Divider as Divider43 } from "@mantine/core";
|
|
44899
44933
|
import { IconPlus as IconPlus13, IconTrash as IconTrash14, IconShieldCheck as IconShieldCheck16, IconUser as IconUser14, IconRobot as IconRobot4, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
|
|
44900
44934
|
var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
|
|
44901
|
-
const [delegations, setDelegations] =
|
|
44902
|
-
const [loading, setLoading] =
|
|
44903
|
-
const [revoking, setRevoking] =
|
|
44935
|
+
const [delegations, setDelegations] = useState189([]);
|
|
44936
|
+
const [loading, setLoading] = useState189(true);
|
|
44937
|
+
const [revoking, setRevoking] = useState189(null);
|
|
44904
44938
|
const rootDelegation = useMemo157(() => {
|
|
44905
44939
|
if (editor.getUcanService) {
|
|
44906
44940
|
return editor.getUcanService()?.getRootDelegation() || null;
|
|
@@ -44976,27 +45010,27 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
|
|
|
44976
45010
|
};
|
|
44977
45011
|
|
|
44978
45012
|
// src/mantine/components/GrantPermissionModal.tsx
|
|
44979
|
-
import React378, { useState as
|
|
45013
|
+
import React378, { useState as useState190, useCallback as useCallback173 } from "react";
|
|
44980
45014
|
import { Modal as Modal5, Stack as Stack269, Text as Text244, TextInput as TextInput11, Button as Button86, Group as Group148, Radio as Radio5, Checkbox as Checkbox14, Alert as Alert88, Paper as Paper23, Loader as Loader82, Badge as Badge59, ActionIcon as ActionIcon49, Divider as Divider44, NumberInput as NumberInput6 } from "@mantine/core";
|
|
44981
45015
|
import { IconSearch as IconSearch10, IconUser as IconUser15, IconRobot as IconRobot5, IconX as IconX17, IconShieldPlus as IconShieldPlus4 } from "@tabler/icons-react";
|
|
44982
45016
|
var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, searchUsers, getOracles, onGrant }) => {
|
|
44983
45017
|
const singleBlockMode = !!targetBlockId || blocks.length === 1;
|
|
44984
45018
|
const fixedBlockId = targetBlockId || (blocks.length === 1 ? blocks[0].id : null);
|
|
44985
45019
|
const fixedBlock = fixedBlockId ? blocks.find((b) => b.id === fixedBlockId) || blocks[0] : null;
|
|
44986
|
-
const [recipientType, setRecipientType] =
|
|
44987
|
-
const [searchQuery, setSearchQuery] =
|
|
44988
|
-
const [searchResults, setSearchResults] =
|
|
44989
|
-
const [searching, setSearching] =
|
|
44990
|
-
const [selectedRecipient, setSelectedRecipient] =
|
|
44991
|
-
const [manualDid, setManualDid] =
|
|
44992
|
-
const [scopeType, setScopeType] =
|
|
44993
|
-
const [selectedBlocks, setSelectedBlocks] =
|
|
44994
|
-
const [expirationEnabled, setExpirationEnabled] =
|
|
44995
|
-
const [expirationDays, setExpirationDays] =
|
|
44996
|
-
const [canDelegate, setCanDelegate] =
|
|
44997
|
-
const [pin, setPin] =
|
|
44998
|
-
const [loading, setLoading] =
|
|
44999
|
-
const [error, setError] =
|
|
45020
|
+
const [recipientType, setRecipientType] = useState190("user");
|
|
45021
|
+
const [searchQuery, setSearchQuery] = useState190("");
|
|
45022
|
+
const [searchResults, setSearchResults] = useState190([]);
|
|
45023
|
+
const [searching, setSearching] = useState190(false);
|
|
45024
|
+
const [selectedRecipient, setSelectedRecipient] = useState190(null);
|
|
45025
|
+
const [manualDid, setManualDid] = useState190("");
|
|
45026
|
+
const [scopeType, setScopeType] = useState190("full");
|
|
45027
|
+
const [selectedBlocks, setSelectedBlocks] = useState190([]);
|
|
45028
|
+
const [expirationEnabled, setExpirationEnabled] = useState190(false);
|
|
45029
|
+
const [expirationDays, setExpirationDays] = useState190(30);
|
|
45030
|
+
const [canDelegate, setCanDelegate] = useState190(false);
|
|
45031
|
+
const [pin, setPin] = useState190("");
|
|
45032
|
+
const [loading, setLoading] = useState190(false);
|
|
45033
|
+
const [error, setError] = useState190(null);
|
|
45000
45034
|
const handleSearch = useCallback173(async () => {
|
|
45001
45035
|
if (searchQuery.length < 2) return;
|
|
45002
45036
|
setSearching(true);
|
|
@@ -45256,4 +45290,4 @@ export {
|
|
|
45256
45290
|
getExtraSlashMenuItems,
|
|
45257
45291
|
useCreateIxoEditor
|
|
45258
45292
|
};
|
|
45259
|
-
//# sourceMappingURL=chunk-
|
|
45293
|
+
//# sourceMappingURL=chunk-WYOHC4AF.mjs.map
|