@ixo/editor 3.0.0-beta.17 → 3.0.0-beta.19
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/{capabilityValidation-D42n_q1t.d.ts → capabilityValidation-B3NRVwYZ.d.ts} +1 -1
- package/dist/{chunk-MB36TYBB.mjs → chunk-3RYZSIC2.mjs} +40 -1
- package/dist/chunk-3RYZSIC2.mjs.map +1 -0
- package/dist/{chunk-5KCGR3WU.mjs → chunk-KM36AH4Z.mjs} +894 -454
- package/dist/chunk-KM36AH4Z.mjs.map +1 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/{graphql-client-Cvgm6N3K.d.ts → graphql-client-b82luVYe.d.ts} +1 -1
- package/dist/{index-C5pBDzcw.d.ts → index-CnqA4qDa.d.ts} +30 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/mantine/index.d.ts +4 -4
- package/dist/mantine/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-5KCGR3WU.mjs.map +0 -1
- package/dist/chunk-MB36TYBB.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as FlowNode, F as FlowNodeAuthzExtension, p as FlowNodeRuntimeState, J as IxoEditorType, S as SignedCapability, B as CreateRootDelegationParams, t as StoredDelegation, G as CreateDelegationParams, H as CreateInvocationParams, w as InvocationResult, x as ExecutionWithInvocationResult, s as UcanCapability, y as DelegationChainValidationResult, z as FindProofsResult, M as MigrationReport, U as UcanDelegationStore, l as InvocationStore, E as EvaluationStatus, C as Capability, a as CapabilityValidationResult } from './index-
|
|
1
|
+
import { r as FlowNode, F as FlowNodeAuthzExtension, p as FlowNodeRuntimeState, J as IxoEditorType, S as SignedCapability, B as CreateRootDelegationParams, t as StoredDelegation, G as CreateDelegationParams, H as CreateInvocationParams, w as InvocationResult, x as ExecutionWithInvocationResult, s as UcanCapability, y as DelegationChainValidationResult, z as FindProofsResult, M as MigrationReport, U as UcanDelegationStore, l as InvocationStore, E as EvaluationStatus, C as Capability, a as CapabilityValidationResult } from './index-CnqA4qDa.mjs';
|
|
2
2
|
import { Delegation } from '@ixo/ucan';
|
|
3
3
|
import { Doc, Map } from 'yjs';
|
|
4
4
|
|
|
@@ -1419,6 +1419,45 @@ registerAction({
|
|
|
1419
1419
|
}
|
|
1420
1420
|
});
|
|
1421
1421
|
|
|
1422
|
+
// src/core/lib/actionRegistry/actions/payment.ts
|
|
1423
|
+
registerAction({
|
|
1424
|
+
type: "payment",
|
|
1425
|
+
sideEffect: true,
|
|
1426
|
+
defaultRequiresConfirmation: true,
|
|
1427
|
+
requiredCapability: "flow/block/execute",
|
|
1428
|
+
outputSchema: [
|
|
1429
|
+
{ path: "transactionId", displayName: "Transaction ID", type: "string", description: "Payment transaction identifier from the provider" },
|
|
1430
|
+
{ path: "status", displayName: "Status", type: "string", description: "Payment status (proposed, submitted, pending, completed, failed)" },
|
|
1431
|
+
{ path: "proposal", displayName: "Proposal", type: "object", description: "Payment proposal object for review before execution" },
|
|
1432
|
+
{ path: "summary", displayName: "Summary", type: "object", description: "Human-readable payment summary" }
|
|
1433
|
+
],
|
|
1434
|
+
run: async (inputs, ctx) => {
|
|
1435
|
+
const config = inputs.paymentConfig;
|
|
1436
|
+
if (!config || typeof config === "string" && !config.trim()) {
|
|
1437
|
+
throw new Error("paymentConfig is required");
|
|
1438
|
+
}
|
|
1439
|
+
if (!ctx.handlers?.askCompanion) {
|
|
1440
|
+
throw new Error("askCompanion handler is not available");
|
|
1441
|
+
}
|
|
1442
|
+
const parsed = typeof config === "string" ? JSON.parse(config) : config;
|
|
1443
|
+
const configJson = JSON.stringify(parsed, null, 2);
|
|
1444
|
+
await ctx.handlers.askCompanion(
|
|
1445
|
+
[
|
|
1446
|
+
"Execute payment action with this configuration.",
|
|
1447
|
+
"IMPORTANT: First read the flow context and settings \u2014 the flow may contain parameters required by the skill. Also review all blocks in the flow to understand the basic workflow before executing.",
|
|
1448
|
+
`Payment configuration JSON:
|
|
1449
|
+
${configJson}`
|
|
1450
|
+
].join("\n")
|
|
1451
|
+
);
|
|
1452
|
+
return {
|
|
1453
|
+
output: {
|
|
1454
|
+
status: "requested",
|
|
1455
|
+
paymentConfig: parsed
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
|
|
1422
1461
|
// src/core/lib/ucanDelegationStore.ts
|
|
1423
1462
|
var ROOT_DELEGATION_KEY = "__root__";
|
|
1424
1463
|
var MIGRATION_VERSION_KEY = "__version__";
|
|
@@ -2978,4 +3017,4 @@ export {
|
|
|
2978
3017
|
createUcanService,
|
|
2979
3018
|
SimpleUCANManager
|
|
2980
3019
|
};
|
|
2981
|
-
//# sourceMappingURL=chunk-
|
|
3020
|
+
//# sourceMappingURL=chunk-3RYZSIC2.mjs.map
|