@ixo/editor 5.37.1 → 5.39.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-SBSTGR5L.mjs → chunk-JXTHVI23.js} +4 -4
- package/dist/{chunk-SBSTGR5L.mjs.map → chunk-JXTHVI23.js.map} +1 -1
- package/dist/{chunk-SY2F4ZUH.mjs → chunk-RDM56DB7.js} +1412 -943
- package/dist/chunk-RDM56DB7.js.map +1 -0
- package/dist/{chunk-OOPKMGYW.mjs → chunk-YWZJYSOP.js} +440 -8
- package/dist/chunk-YWZJYSOP.js.map +1 -0
- package/dist/{chunk-VU34HOXM.mjs → chunk-ZPMRM6DA.js} +1 -1
- package/dist/{cid-6O646X2I.mjs → cid-HDAVQ43S.js} +2 -2
- package/dist/core/index.d.ts +4 -4
- package/dist/core/{index.mjs → index.js} +4 -4
- package/dist/{graphql-client-7RPUfOZ7.d.ts → graphql-client-jOgmcMNg.d.ts} +1 -1
- package/dist/{index-1drTq85A.d.ts → index-B4Qe8xbv.d.ts} +49 -2
- package/dist/index.d.ts +3 -3
- package/dist/{index.mjs → index.js} +4 -4
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/{index.mjs → index.js} +3 -3
- package/dist/{store-ChkNN7b4.d.ts → store-B-2A-Tlv.d.ts} +20 -7
- package/package.json +21 -8
- package/dist/chunk-OOPKMGYW.mjs.map +0 -1
- package/dist/chunk-SY2F4ZUH.mjs.map +0 -1
- /package/dist/{chunk-VU34HOXM.mjs.map → chunk-ZPMRM6DA.js.map} +0 -0
- /package/dist/{cid-6O646X2I.mjs.map → cid-HDAVQ43S.js.map} +0 -0
- /package/dist/core/{index.mjs.map → index.js.map} +0 -0
- /package/dist/{index.mjs.map → index.js.map} +0 -0
- /package/dist/mantine/{index.mjs.map → index.js.map} +0 -0
package/dist/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a5 as ActionDefinition, a6 as ActionEventDefinition, a7 as OutputSchemaField, a8 as ActionServices, a9 as CompiledBlock, v as CompiledFlow, aa as CompiledEdge, Z as FlowAgentCommand, $ as FlowAgentContext, _ as FlowAgentCommandResult, a0 as FlowAgentExecutor, a2 as FlowAgentNodeSnapshot, ab as FlowAgentBlockerCause, a3 as FlowAgentPublicNodeState } from '../store-
|
|
2
|
-
export { am as AcquireFlowAgentLeaseParams, ad as ActionContext, ae as ActionResult, aA as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, aD as CompiledFlowNode, C as CompilerRegistry, az as ConditionRef, an as CreateAgentCommandParams, ao as EvaluateFlowAgentPolicyParams, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, ar as FlowAgentCommandBase, as as FlowAgentCommandStatus, at as FlowAgentCommandType, a1 as FlowAgentLease, au as FlowAgentLedgerEvent, av as FlowAgentLedgerEventType, aw as FlowAgentMaps, ap as FlowAgentOrchestratorOptions, ax as FlowAgentPolicyDecision, ay as FlowAgentRunPhase, x as FlowAgentService, aq as FlowAgentServiceOptions, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, aC as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, aB as TTLConstraint, aE as TriggerSpec, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, af as canMatches, G as cleanupExpiredFlowAgentLeases, ac as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, ag as computeAgentCommandId, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, ah as isCapabilityMatch, ai as isExternalMutation, aF as isRuntimeRef, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, aj as requiredCapabilityForCommand, ak as resourceMatches, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, al as updateAgentCommand, V as validateAgentCommand, W as validateFlowAgentLease } from '../store-
|
|
3
|
-
import { a4 as IxoEditorType, a5 as FlowNodeRuntimeState, f as UcanService, U as UcanDelegationStore, S as StoredDelegation, I as InvocationStore, a6 as FlowMetadata, a7 as FlowNode } from '../index-
|
|
4
|
-
export { af as ActionReadBackMetadata, a9 as ClaimCollectionURI, am as CreateDelegationParams, an as CreateInvocationParams, al as CreateRootDelegationParams, a8 as DID, D as DelegationChainValidationResult, k as DelegationGrant, aa as EvaluationStatus, aj as ExecutionWithInvocationResult, ak as FindProofsResult, ac as FlowNodeAuthzExtension, ag as FlowNodeBase, ah as InvocationRequest, ai as InvocationResult, ab as LinkedClaim, ad as NodeState, ae as ReadBackTerminalState, j as StoredInvocation, i as UcanCapability, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-
|
|
1
|
+
import { a5 as ActionDefinition, a6 as ActionEventDefinition, a7 as OutputSchemaField, a8 as ActionServices, a9 as CompiledBlock, v as CompiledFlow, aa as CompiledEdge, Z as FlowAgentCommand, $ as FlowAgentContext, _ as FlowAgentCommandResult, a0 as FlowAgentExecutor, a2 as FlowAgentNodeSnapshot, ab as FlowAgentBlockerCause, a3 as FlowAgentPublicNodeState } from '../store-B-2A-Tlv.js';
|
|
2
|
+
export { am as AcquireFlowAgentLeaseParams, ad as ActionContext, ae as ActionResult, aA as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, aD as CompiledFlowNode, C as CompilerRegistry, az as ConditionRef, an as CreateAgentCommandParams, ao as EvaluateFlowAgentPolicyParams, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, ar as FlowAgentCommandBase, as as FlowAgentCommandStatus, at as FlowAgentCommandType, a1 as FlowAgentLease, au as FlowAgentLedgerEvent, av as FlowAgentLedgerEventType, aw as FlowAgentMaps, ap as FlowAgentOrchestratorOptions, ax as FlowAgentPolicyDecision, ay as FlowAgentRunPhase, x as FlowAgentService, aq as FlowAgentServiceOptions, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, aC as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, aB as TTLConstraint, aE as TriggerSpec, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, af as canMatches, G as cleanupExpiredFlowAgentLeases, ac as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, ag as computeAgentCommandId, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, ah as isCapabilityMatch, ai as isExternalMutation, aF as isRuntimeRef, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, aj as requiredCapabilityForCommand, ak as resourceMatches, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, al as updateAgentCommand, V as validateAgentCommand, W as validateFlowAgentLease } from '../store-B-2A-Tlv.js';
|
|
3
|
+
import { a4 as IxoEditorType, a5 as FlowNodeRuntimeState, f as UcanService, U as UcanDelegationStore, S as StoredDelegation, I as InvocationStore, a6 as FlowMetadata, a7 as FlowNode } from '../index-B4Qe8xbv.js';
|
|
4
|
+
export { af as ActionReadBackMetadata, a9 as ClaimCollectionURI, am as CreateDelegationParams, an as CreateInvocationParams, al as CreateRootDelegationParams, a8 as DID, D as DelegationChainValidationResult, k as DelegationGrant, aa as EvaluationStatus, aj as ExecutionWithInvocationResult, ak as FindProofsResult, ac as FlowNodeAuthzExtension, ag as FlowNodeBase, ah as InvocationRequest, ai as InvocationResult, ab as LinkedClaim, ad as NodeState, ae as ReadBackTerminalState, j as StoredInvocation, i as UcanCapability, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-B4Qe8xbv.js';
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
6
|
import { Doc } from 'yjs';
|
|
7
7
|
import 'matrix-js-sdk';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
setFormAnswers,
|
|
9
9
|
swapFlowBlocks,
|
|
10
10
|
updateNodeRuntime
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-JXTHVI23.js";
|
|
12
12
|
import {
|
|
13
13
|
FlowAgentService,
|
|
14
14
|
RUN_RECORD_AUDIT_TYPE,
|
|
@@ -94,11 +94,11 @@ import {
|
|
|
94
94
|
validateFlowAgentLease,
|
|
95
95
|
writeCompiledBlocksToFragment,
|
|
96
96
|
writeRunRecordAndReconcile
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-YWZJYSOP.js";
|
|
98
98
|
import {
|
|
99
99
|
computeCID,
|
|
100
100
|
computeJsonCID
|
|
101
|
-
} from "../chunk-
|
|
101
|
+
} from "../chunk-ZPMRM6DA.js";
|
|
102
102
|
|
|
103
103
|
// src/core/templates/oracleInitFlow.ts
|
|
104
104
|
var oracleInitSurveySchema = {
|
|
@@ -578,4 +578,4 @@ export {
|
|
|
578
578
|
writeCompiledBlocksToFragment,
|
|
579
579
|
writeRunRecordAndReconcile
|
|
580
580
|
};
|
|
581
|
-
//# sourceMappingURL=index.
|
|
581
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
|
-
import { ao as IxoBlockProps, l as IxoEditorOptions, a4 as IxoEditorType, p as IxoCollaborativeEditorOptions, w as BlocknoteHandlers, y as BlockRequirements, av as UnlMapConfig, ar as DynamicListDataProvider, as as DynamicListPanelRenderer, at as DomainCardRenderer, a3 as Translate, k as DelegationGrant } from './index-
|
|
2
|
+
import { ao as IxoBlockProps, l as IxoEditorOptions, a4 as IxoEditorType, p as IxoCollaborativeEditorOptions, w as BlocknoteHandlers, y as BlockRequirements, av as UnlMapConfig, ar as DynamicListDataProvider, as as DynamicListPanelRenderer, at as DomainCardRenderer, a3 as Translate, k as DelegationGrant } from './index-B4Qe8xbv.js';
|
|
3
3
|
import { Text, Doc, Map, Array as Array$1 } from 'yjs';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import * as _tiptap_core from '@tiptap/core';
|
|
@@ -1427,7 +1427,7 @@ interface WorkspacePage {
|
|
|
1427
1427
|
* Toolkit keys recognised by the integrations layer. Kept as a string literal
|
|
1428
1428
|
* union so typos surface at compile time; extend as we add more toolkits.
|
|
1429
1429
|
*/
|
|
1430
|
-
type IntegrationToolkit = 'googlecalendar' | 'xero';
|
|
1430
|
+
type IntegrationToolkit = 'googlecalendar' | 'xero' | 'gmail' | 'outlook' | 'slack';
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Normalised connection status returned by the host app. Mirrors Composio's
|
|
1433
1433
|
* underlying states but the editor never sees or names Composio directly.
|
|
@@ -1451,6 +1451,20 @@ interface IntegrationExecuteResult {
|
|
|
1451
1451
|
error?: string;
|
|
1452
1452
|
code?: IntegrationErrorCode;
|
|
1453
1453
|
}
|
|
1454
|
+
/**
|
|
1455
|
+
* The author's current connection status for a toolkit. Returned by
|
|
1456
|
+
* `getIntegration`. Drives the connect/bind UI in template mode. Carries NO
|
|
1457
|
+
* input schema — schemas live in the editor (see IntegrationToolSchema).
|
|
1458
|
+
*/
|
|
1459
|
+
interface IntegrationManifest {
|
|
1460
|
+
toolkit: IntegrationToolkit;
|
|
1461
|
+
displayName: string;
|
|
1462
|
+
connection: {
|
|
1463
|
+
status: IntegrationConnectionStatus | 'NONE';
|
|
1464
|
+
connectedAccountId: string | null;
|
|
1465
|
+
label: string | null;
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1454
1468
|
interface IntegrationsHandlers {
|
|
1455
1469
|
/** Kick off OAuth — host returns the redirect URL to open in a popup and a pending ca_* id. */
|
|
1456
1470
|
startConnection: (args: {
|
|
@@ -1486,6 +1500,38 @@ interface IntegrationsHandlers {
|
|
|
1486
1500
|
connectedAccountId: string;
|
|
1487
1501
|
arguments: Record<string, unknown>;
|
|
1488
1502
|
}) => Promise<Record<string, unknown>>;
|
|
1503
|
+
/** Author's connection status for a toolkit (drives the connect/bind UI). */
|
|
1504
|
+
getIntegration?: (args: {
|
|
1505
|
+
toolkit: IntegrationToolkit;
|
|
1506
|
+
}) => Promise<IntegrationManifest>;
|
|
1507
|
+
/**
|
|
1508
|
+
* Bind a connected account to a template. The worker derives a deterministic,
|
|
1509
|
+
* template-scoped bindingId and stores the author's credential server-side.
|
|
1510
|
+
* Returns the opaque bindingId (safe to persist in the Y.Doc) + cached label.
|
|
1511
|
+
*/
|
|
1512
|
+
bindIntegration?: (args: {
|
|
1513
|
+
toolkit: IntegrationToolkit;
|
|
1514
|
+
connectedAccountId: string;
|
|
1515
|
+
templateId: string;
|
|
1516
|
+
}) => Promise<{
|
|
1517
|
+
bindingId: string;
|
|
1518
|
+
label: string | null;
|
|
1519
|
+
}>;
|
|
1520
|
+
/**
|
|
1521
|
+
* Execute a tool via a stored binding. The runner authenticates as themselves
|
|
1522
|
+
* (the host mints a short-lived invocation); the bindingId selects the
|
|
1523
|
+
* author's connected account on the worker. The editor never sees the
|
|
1524
|
+
* credential or the connectedAccountId.
|
|
1525
|
+
*/
|
|
1526
|
+
executeBinding?: (args: {
|
|
1527
|
+
bindingId: string;
|
|
1528
|
+
toolSlug: string;
|
|
1529
|
+
arguments: Record<string, unknown>;
|
|
1530
|
+
}) => Promise<IntegrationExecuteResult>;
|
|
1531
|
+
/** Revoke a binding (author only). Idempotent. */
|
|
1532
|
+
revokeBinding?: (args: {
|
|
1533
|
+
bindingId: string;
|
|
1534
|
+
}) => Promise<void>;
|
|
1489
1535
|
}
|
|
1490
1536
|
interface BlocknoteHandlers {
|
|
1491
1537
|
getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
|
|
@@ -1514,7 +1560,8 @@ interface BlocknoteHandlers {
|
|
|
1514
1560
|
getEntityDid: () => string | undefined;
|
|
1515
1561
|
getAdminAccountAddress: (deedDid: string) => Promise<string>;
|
|
1516
1562
|
getOnlyClaimCollections: (deedDid: string) => Promise<ClaimCollection[]>;
|
|
1517
|
-
|
|
1563
|
+
/** May return the transaction hash as proof of the vote landing on-chain. */
|
|
1564
|
+
vote: ({ proposalId, rationale, vote, proposalContractAddress }: VoteParams) => Promise<string | void>;
|
|
1518
1565
|
createProposal: (params: CreateProposalParams) => Promise<string>;
|
|
1519
1566
|
getEntity: (did: string) => Promise<EntityResponse>;
|
|
1520
1567
|
getDomainCard: () => Promise<DomainCard>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from './graphql-client-
|
|
2
|
-
export { A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, Z as FlowAgentCommand, _ as FlowAgentCommandResult, $ as FlowAgentContext, a0 as FlowAgentExecutor, a1 as FlowAgentLease, a2 as FlowAgentNodeSnapshot, a3 as FlowAgentPublicNodeState, x as FlowAgentService, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, G as cleanupExpiredFlowAgentLeases, l as compileBaseUcanFlow, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, V as validateAgentCommand, W as validateFlowAgentLease } from './store-
|
|
3
|
-
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, w as BlocknoteHandlers, B as BlocknoteProvider, O as CosmosMsgForEmpty, D as DelegationChainValidationResult, k as DelegationGrant, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, S as StoredDelegation, j as StoredInvocation, M as Threshold, T as Timestamp, a3 as Translate, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, J as Uint128, G as User, V as ValidatorActionType, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers, t as useTranslate } from './index-
|
|
1
|
+
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from './graphql-client-jOgmcMNg.js';
|
|
2
|
+
export { A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, Z as FlowAgentCommand, _ as FlowAgentCommandResult, $ as FlowAgentContext, a0 as FlowAgentExecutor, a1 as FlowAgentLease, a2 as FlowAgentNodeSnapshot, a3 as FlowAgentPublicNodeState, x as FlowAgentService, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, G as cleanupExpiredFlowAgentLeases, l as compileBaseUcanFlow, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, V as validateAgentCommand, W as validateFlowAgentLease } from './store-B-2A-Tlv.js';
|
|
3
|
+
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, w as BlocknoteHandlers, B as BlocknoteProvider, O as CosmosMsgForEmpty, D as DelegationChainValidationResult, k as DelegationGrant, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, S as StoredDelegation, j as StoredInvocation, M as Threshold, T as Timestamp, a3 as Translate, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, J as Uint128, G as User, V as ValidatorActionType, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers, t as useTranslate } from './index-B4Qe8xbv.js';
|
|
4
4
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
5
5
|
export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
|
|
6
6
|
import 'yjs';
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
useCreateIxoEditor,
|
|
31
31
|
useTrackBlockFocus,
|
|
32
32
|
useTranslate
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-RDM56DB7.js";
|
|
34
|
+
import "./chunk-JXTHVI23.js";
|
|
35
35
|
import {
|
|
36
36
|
FlowAgentService,
|
|
37
37
|
acquireFlowAgentLease,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tickFlowAgent,
|
|
71
71
|
validateAgentCommand,
|
|
72
72
|
validateFlowAgentLease
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YWZJYSOP.js";
|
|
74
74
|
|
|
75
75
|
// src/index.ts
|
|
76
76
|
import { cloneDocument } from "@ixo/matrix-crdt";
|
|
@@ -145,4 +145,4 @@ export {
|
|
|
145
145
|
validateAgentCommand,
|
|
146
146
|
validateFlowAgentLease
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=index.
|
|
148
|
+
//# sourceMappingURL=index.js.map
|
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, Q as DropPosition, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, N as ExternalDropZone, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from '../graphql-client-
|
|
1
|
+
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, Q as DropPosition, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, N as ExternalDropZone, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from '../graphql-client-jOgmcMNg.js';
|
|
2
2
|
import React__default, { PropsWithChildren } from 'react';
|
|
3
|
-
import { ao as IxoBlockProps, a4 as IxoEditorType, w as BlocknoteHandlers, a5 as FlowNodeRuntimeState } from '../index-
|
|
4
|
-
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, B as BlocknoteProvider, O as CosmosMsgForEmpty, au as DomainCardData, at as DomainCardRenderer, aq as DynamicListData, ar as DynamicListDataProvider, as as DynamicListPanelRenderer, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, M as Threshold, T as Timestamp, J as Uint128, G as User, V as ValidatorActionType, ap as VisualizationRenderer, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers } from '../index-
|
|
3
|
+
import { ao as IxoBlockProps, a4 as IxoEditorType, w as BlocknoteHandlers, a5 as FlowNodeRuntimeState } from '../index-B4Qe8xbv.js';
|
|
4
|
+
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, B as BlocknoteProvider, O as CosmosMsgForEmpty, au as DomainCardData, at as DomainCardRenderer, aq as DynamicListData, ar as DynamicListDataProvider, as as DynamicListPanelRenderer, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, M as Threshold, T as Timestamp, J as Uint128, G as User, V as ValidatorActionType, ap as VisualizationRenderer, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers } from '../index-B4Qe8xbv.js';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
6
|
import { SurveyModel } from '@ixo/surveys';
|
|
7
7
|
import * as _blocknote_core from '@blocknote/core';
|
|
@@ -83,13 +83,13 @@ import {
|
|
|
83
83
|
usePanelStore,
|
|
84
84
|
useRegisterOpenSurvey,
|
|
85
85
|
useTrackBlockFocus
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-RDM56DB7.js";
|
|
87
87
|
import {
|
|
88
88
|
didToMatrixUserId,
|
|
89
89
|
findOrCreateDMRoom,
|
|
90
90
|
getHomeserver,
|
|
91
91
|
sendDirectMessage
|
|
92
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-YWZJYSOP.js";
|
|
93
93
|
|
|
94
94
|
// src/mantine/components/DebugButton.tsx
|
|
95
95
|
import React from "react";
|
|
@@ -538,4 +538,4 @@ export {
|
|
|
538
538
|
useRegisterOpenSurvey,
|
|
539
539
|
useTrackBlockFocus
|
|
540
540
|
};
|
|
541
|
-
//# sourceMappingURL=index.
|
|
541
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as FlowNode, ac as FlowNodeAuthzExtension, a5 as FlowNodeRuntimeState, a4 as IxoEditorType, f as UcanService, I as InvocationStore, aa as EvaluationStatus, i as UcanCapability, U as UcanDelegationStore, S as StoredDelegation } from './index-
|
|
1
|
+
import { a7 as FlowNode, ac as FlowNodeAuthzExtension, a5 as FlowNodeRuntimeState, a4 as IxoEditorType, f as UcanService, I as InvocationStore, aa as EvaluationStatus, i as UcanCapability, U as UcanDelegationStore, S as StoredDelegation } from './index-B4Qe8xbv.js';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { Doc, Map } from 'yjs';
|
|
4
4
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
@@ -488,6 +488,13 @@ interface CarbonRetireableBatch {
|
|
|
488
488
|
/** Human-readable entity name, for display. */
|
|
489
489
|
alsoKnownAs?: string;
|
|
490
490
|
}
|
|
491
|
+
/** Result of any integration tool execution (direct or via a binding). */
|
|
492
|
+
interface IntegrationExecuteOutcome {
|
|
493
|
+
successful: boolean;
|
|
494
|
+
data?: Record<string, unknown>;
|
|
495
|
+
error?: string;
|
|
496
|
+
code?: 'OK' | 'VALIDATION' | 'AUTH_EXPIRED' | 'UPSTREAM_4XX' | 'UPSTREAM_5XX' | 'RATE_LIMIT' | 'UNKNOWN';
|
|
497
|
+
}
|
|
491
498
|
interface ActionServices {
|
|
492
499
|
http?: {
|
|
493
500
|
request: (params: {
|
|
@@ -761,18 +768,24 @@ interface ActionServices {
|
|
|
761
768
|
toolSlug: string;
|
|
762
769
|
connectedAccountId: string;
|
|
763
770
|
arguments: Record<string, unknown>;
|
|
764
|
-
}) => Promise<
|
|
765
|
-
successful: boolean;
|
|
766
|
-
data?: Record<string, unknown>;
|
|
767
|
-
error?: string;
|
|
768
|
-
code?: 'OK' | 'VALIDATION' | 'AUTH_EXPIRED' | 'UPSTREAM_4XX' | 'UPSTREAM_5XX' | 'RATE_LIMIT' | 'UNKNOWN';
|
|
769
|
-
}>;
|
|
771
|
+
}) => Promise<IntegrationExecuteOutcome>;
|
|
770
772
|
fetchCurrentState?: (args: {
|
|
771
773
|
toolSlug: string;
|
|
772
774
|
connectedAccountId: string;
|
|
773
775
|
arguments: Record<string, unknown>;
|
|
774
776
|
}) => Promise<Record<string, unknown>>;
|
|
775
777
|
getEntityDid?: () => string | undefined;
|
|
778
|
+
/**
|
|
779
|
+
* Execute a tool on the template author's behalf via an opaque, server-side
|
|
780
|
+
* binding (delegated blocks). The runner never holds the author's
|
|
781
|
+
* credential — `bindingId` selects it on the worker. Returns the same
|
|
782
|
+
* outcome shape as `executeTool`.
|
|
783
|
+
*/
|
|
784
|
+
executeBinding?: (args: {
|
|
785
|
+
bindingId: string;
|
|
786
|
+
toolSlug: string;
|
|
787
|
+
arguments: Record<string, unknown>;
|
|
788
|
+
}) => Promise<IntegrationExecuteOutcome>;
|
|
776
789
|
};
|
|
777
790
|
oracle?: {
|
|
778
791
|
generateWallet: () => Promise<{
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.39.0",
|
|
4
4
|
"description": "A custom BlockNote editor wrapper for IXO team",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist/",
|
|
9
10
|
"fonts/",
|
|
@@ -17,24 +18,36 @@
|
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
20
|
"types": "./dist/index.d.ts",
|
|
20
|
-
"import": "./dist/index.
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"default": "./dist/index.js"
|
|
21
23
|
},
|
|
22
24
|
"./mantine": {
|
|
23
25
|
"types": "./dist/mantine/index.d.ts",
|
|
24
|
-
"import": "./dist/mantine/index.
|
|
26
|
+
"import": "./dist/mantine/index.js",
|
|
27
|
+
"default": "./dist/mantine/index.js"
|
|
25
28
|
},
|
|
26
29
|
"./core": {
|
|
27
30
|
"types": "./dist/core/index.d.ts",
|
|
28
|
-
"import": "./dist/core/index.
|
|
29
|
-
"default": "./dist/core/index.
|
|
31
|
+
"import": "./dist/core/index.js",
|
|
32
|
+
"default": "./dist/core/index.js"
|
|
30
33
|
},
|
|
31
34
|
"./style.css": "./style.css",
|
|
32
35
|
"./style-mantine.css": "./style-mantine.css",
|
|
33
36
|
"./style-core.css": "./style-core.css",
|
|
34
37
|
"./style-scoped.css": "./style-scoped.css"
|
|
35
38
|
},
|
|
39
|
+
"typesVersions": {
|
|
40
|
+
"*": {
|
|
41
|
+
"mantine": [
|
|
42
|
+
"./dist/mantine/index.d.ts"
|
|
43
|
+
],
|
|
44
|
+
"core": [
|
|
45
|
+
"./dist/core/index.d.ts"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
36
49
|
"scripts": {
|
|
37
|
-
"build": "tsup
|
|
50
|
+
"build": "tsup",
|
|
38
51
|
"dev": "nodemon --watch src --ext ts,tsx --exec \"tsup\"",
|
|
39
52
|
"clean": "rimraf dist style.css",
|
|
40
53
|
"prepare": "husky install && pnpm run clean && pnpm run build",
|