@ixo/editor 6.11.0 → 6.13.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-X6UITQBG.js → chunk-ESPPJONO.js} +6 -2
- package/dist/chunk-ESPPJONO.js.map +1 -0
- package/dist/{chunk-56BFOMU6.js → chunk-ID2Q6WO4.js} +2 -2
- package/dist/{chunk-Q64NK5GA.js → chunk-LMX55KEO.js} +26 -9
- package/dist/chunk-LMX55KEO.js.map +1 -0
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +2 -2
- package/dist/{graphql-client-qoCnxfVJ.d.ts → graphql-client-j-P2Llxg.d.ts} +1 -1
- package/dist/{index-DBIxJFRG.d.ts → index-BC4ycOwH.d.ts} +12 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.js +2 -2
- package/dist/{store-Us2PE0q8.d.ts → store-D5rKaUtZ.d.ts} +2 -1
- package/package.json +1 -1
- package/dist/chunk-Q64NK5GA.js.map +0 -1
- package/dist/chunk-X6UITQBG.js.map +0 -1
- /package/dist/{chunk-56BFOMU6.js.map → chunk-ID2Q6WO4.js.map} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
replaceBlockInFragment,
|
|
11
11
|
swapBlocksInFragment,
|
|
12
12
|
writeCompiledBlocksToFragment
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ESPPJONO.js";
|
|
14
14
|
|
|
15
15
|
// src/core/lib/flowCompiler/authoring.ts
|
|
16
16
|
import * as Y from "yjs";
|
|
@@ -257,4 +257,4 @@ export {
|
|
|
257
257
|
resetStepRuntime,
|
|
258
258
|
setFormAnswers
|
|
259
259
|
};
|
|
260
|
-
//# sourceMappingURL=chunk-
|
|
260
|
+
//# sourceMappingURL=chunk-ID2Q6WO4.js.map
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
verifyCompletion,
|
|
75
75
|
warnOnce,
|
|
76
76
|
writeRunRecordAndReconcile
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-ESPPJONO.js";
|
|
78
78
|
|
|
79
79
|
// src/mantine/hooks/usePanel.ts
|
|
80
80
|
import { useCallback, useMemo, useEffect, useRef } from "react";
|
|
@@ -5806,8 +5806,23 @@ function buildSurveyTheme() {
|
|
|
5806
5806
|
"--sjs-special-yellow": "rgba(255, 152, 20, 1)",
|
|
5807
5807
|
"--sjs-special-yellow-light": "rgba(255, 152, 20, 0.1)",
|
|
5808
5808
|
"--sjs-special-yellow-forecolor": "var(--mantine-color-body)",
|
|
5809
|
-
|
|
5810
|
-
"--sjs-font-
|
|
5809
|
+
// ── Typography (follow Mantine at every SurveyJS layer) ──
|
|
5810
|
+
"--sjs-font-family": "var(--mantine-font-family)",
|
|
5811
|
+
"--sjs-font-editorfont-family": "var(--mantine-font-family)",
|
|
5812
|
+
"--sjs-font-questiontitle-family": "var(--mantine-font-family)",
|
|
5813
|
+
"--sjs-font-questiondescription-family": "var(--mantine-font-family)",
|
|
5814
|
+
"--sjs-font-pagetitle-family": "var(--mantine-font-family)",
|
|
5815
|
+
"--sjs-font-pagedescription-family": "var(--mantine-font-family)",
|
|
5816
|
+
"--sjs-font-surveytitle-family": "var(--mantine-font-family)",
|
|
5817
|
+
"--sjs-font-surveydescription-family": "var(--mantine-font-family)",
|
|
5818
|
+
"--sjs-font-size": "var(--mantine-font-size-md)",
|
|
5819
|
+
"--sjs-font-editorfont-size": "var(--mantine-font-size-md)",
|
|
5820
|
+
"--sjs-font-questiontitle-size": "var(--mantine-font-size-md)",
|
|
5821
|
+
"--sjs-font-questiondescription-size": "var(--mantine-font-size-sm)",
|
|
5822
|
+
"--sjs-font-pagetitle-size": "var(--mantine-h4-font-size)",
|
|
5823
|
+
"--sjs-font-pagedescription-size": "var(--mantine-font-size-sm)",
|
|
5824
|
+
"--sjs-font-surveytitle-size": "var(--mantine-h4-font-size)",
|
|
5825
|
+
"--sjs-font-surveydescription-size": "var(--mantine-font-size-sm)"
|
|
5811
5826
|
},
|
|
5812
5827
|
themeName: "ixoUnified",
|
|
5813
5828
|
colorPalette: "light",
|
|
@@ -30163,12 +30178,13 @@ var buildPodOptions = (groups) => {
|
|
|
30163
30178
|
label: (labelCounts.get(label) ?? 0) > 1 ? `${label} (${shortPodAddress(group.coreAddress)})` : label
|
|
30164
30179
|
}));
|
|
30165
30180
|
};
|
|
30166
|
-
var ActAsGroupSection = ({ value, onChange, isDisabled, actionLabel }) => {
|
|
30181
|
+
var ActAsGroupSection = ({ value, onChange, isDisabled, actionLabel, authzFilter }) => {
|
|
30167
30182
|
const handlers = useBlocknoteHandlers();
|
|
30168
30183
|
const handlersRef = useRef35(handlers);
|
|
30169
30184
|
handlersRef.current = handlers;
|
|
30170
30185
|
const [groups, setGroups] = useState155([]);
|
|
30171
30186
|
const [loading, setLoading] = useState155(false);
|
|
30187
|
+
const authzFilterKey = JSON.stringify(authzFilter ?? null);
|
|
30172
30188
|
useEffect103(() => {
|
|
30173
30189
|
let cancelled = false;
|
|
30174
30190
|
const load = async () => {
|
|
@@ -30176,7 +30192,8 @@ var ActAsGroupSection = ({ value, onChange, isDisabled, actionLabel }) => {
|
|
|
30176
30192
|
if (!h?.getDAOGroups) return;
|
|
30177
30193
|
setLoading(true);
|
|
30178
30194
|
try {
|
|
30179
|
-
const
|
|
30195
|
+
const filter = authzFilterKey === "null" ? void 0 : JSON.parse(authzFilterKey);
|
|
30196
|
+
const res = await h.getDAOGroups(filter);
|
|
30180
30197
|
if (!cancelled) setGroups(res || []);
|
|
30181
30198
|
} catch (error) {
|
|
30182
30199
|
console.warn("[act-as-group] getDAOGroups failed", error);
|
|
@@ -30188,7 +30205,7 @@ var ActAsGroupSection = ({ value, onChange, isDisabled, actionLabel }) => {
|
|
|
30188
30205
|
return () => {
|
|
30189
30206
|
cancelled = true;
|
|
30190
30207
|
};
|
|
30191
|
-
}, []);
|
|
30208
|
+
}, [authzFilterKey]);
|
|
30192
30209
|
const podOptions = useMemo109(() => buildPodOptions(groups), [groups]);
|
|
30193
30210
|
const available = groups.length > 0 && typeof handlers?.createGroupExecutionProposal === "function";
|
|
30194
30211
|
if (!available) return null;
|
|
@@ -32069,7 +32086,7 @@ var ClaimFlowDetail = ({
|
|
|
32069
32086
|
defaultValue: `By ${truncateAddress3(disputeDetails.evaluatorDid)}`
|
|
32070
32087
|
}) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */ React312.createElement(BasePrimaryButton, { onClick: amendAndResubmit, disabled: isDisabled || submitting || !isServiceAgentAuthorized || !selectedClaimData }, t("actionTypes.claim.flow.disputed.amendAndResubmit", { defaultValue: "Amend & Resubmit" }))) : typeof handlers.getClaimDisputeDetails !== "function" ? /* @__PURE__ */ React312.createElement(Text193, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.unavailable", { defaultValue: "Dispute details unavailable in this environment." })) : /* @__PURE__ */ React312.createElement(Text193, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.noRecord", { defaultValue: "No dispute record found on-chain for this claim." }))), loadingClaimDetail ? /* @__PURE__ */ React312.createElement(Group110, { gap: "xs" }, /* @__PURE__ */ React312.createElement(Loader57, { size: "xs" }), /* @__PURE__ */ React312.createElement(Text193, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.loadingSubmission", { defaultValue: "Loading submission\u2026" }))) : detailSurveyModel ? /* @__PURE__ */ React312.createElement(StableSurvey, { model: detailSurveyModel }) : /* @__PURE__ */ React312.createElement(Text193, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.noSubmissionData", { defaultValue: "No submission data available." })), error && /* @__PURE__ */ React312.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error));
|
|
32071
32088
|
}
|
|
32072
|
-
return /* @__PURE__ */ React312.createElement(Stack205, { gap: "md" }, /* @__PURE__ */ React312.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React312.createElement(ActAsGroupSection, { value: actAs, onChange: setActAs, isDisabled, actionLabel: "submit this claim" }), !deedDid || !collectionId ? /* @__PURE__ */ React312.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
32089
|
+
return /* @__PURE__ */ React312.createElement(Stack205, { gap: "md" }, /* @__PURE__ */ React312.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React312.createElement(ActAsGroupSection, { value: actAs, onChange: setActAs, isDisabled, actionLabel: "submit this claim", authzFilter: collectionId ? { requiresAuthz: "submitClaim", collectionId } : void 0 }), !deedDid || !collectionId ? /* @__PURE__ */ React312.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
32073
32090
|
defaultValue: "Configure {{did}} and {{claimCollection}} in template mode before running this action.",
|
|
32074
32091
|
did: "DID",
|
|
32075
32092
|
claimCollection: "claim collection"
|
|
@@ -35312,7 +35329,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
35312
35329
|
{ value: "rejected", label: t("actionTypes.evaluateClaim.flow.filter.rejected", { defaultValue: "Rejected" }) },
|
|
35313
35330
|
{ value: "disputed", label: t("actionTypes.evaluateClaim.flow.filter.disputed", { defaultValue: "Disputed" }) }
|
|
35314
35331
|
];
|
|
35315
|
-
return /* @__PURE__ */ React321.createElement(Stack214, { gap: "md" }, /* @__PURE__ */ React321.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React321.createElement(ActAsGroupSection, { value: actAs, onChange: setActAs, isDisabled, actionLabel: "evaluate this claim" }), !deedDid || !collectionId ? /* @__PURE__ */ React321.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
35332
|
+
return /* @__PURE__ */ React321.createElement(Stack214, { gap: "md" }, /* @__PURE__ */ React321.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React321.createElement(ActAsGroupSection, { value: actAs, onChange: setActAs, isDisabled, actionLabel: "evaluate this claim", authzFilter: collectionId ? { requiresAuthz: "evaluateClaim", collectionId } : void 0 }), !deedDid || !collectionId ? /* @__PURE__ */ React321.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
35316
35333
|
defaultValue: "Configure {{did}} and {{claimCollection}} in template mode before running this action.",
|
|
35317
35334
|
did: "DID",
|
|
35318
35335
|
claimCollection: "claim collection"
|
|
@@ -51479,4 +51496,4 @@ export {
|
|
|
51479
51496
|
ixoGraphQLClient,
|
|
51480
51497
|
getEntity
|
|
51481
51498
|
};
|
|
51482
|
-
//# sourceMappingURL=chunk-
|
|
51499
|
+
//# sourceMappingURL=chunk-LMX55KEO.js.map
|