@ixo/editor 3.0.0-beta.26 → 3.0.0-beta.28
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-K75BAQDR.mjs → chunk-LQP2DPYM.mjs} +498 -189
- package/dist/chunk-LQP2DPYM.mjs.map +1 -0
- package/dist/{chunk-SUFKRSSM.mjs → chunk-NOMJJJDB.mjs} +107 -22
- package/dist/chunk-NOMJJJDB.mjs.map +1 -0
- package/dist/chunk-SZSEZY6Z.mjs +470 -0
- package/dist/chunk-SZSEZY6Z.mjs.map +1 -0
- package/dist/core/index.d.ts +34 -170
- package/dist/core/index.mjs +19 -1
- package/dist/{graphql-client-CJ0vMGiH.d.ts → graphql-client-CSiffz9I.d.ts} +1 -1
- package/dist/{index-aAHFla8N.d.ts → index-BmOZ-1iJ.d.ts} +2 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/mantine/index.d.ts +4 -4
- package/dist/mantine/index.mjs +2 -2
- package/dist/{capabilityValidation-BSzFr-F6.d.ts → setup-C5MpJdyr.d.ts} +376 -2
- package/package.json +1 -1
- package/dist/chunk-K75BAQDR.mjs.map +0 -1
- package/dist/chunk-SUFKRSSM.mjs.map +0 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -1,180 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { r as ActionDefinition, t as ActionServices } from '../setup-C5MpJdyr.mjs';
|
|
2
|
+
export { P as ActionContext, Q as ActionResult, m as ActivationResult, V as ActorConstraint, l as AuthorizationContext, G as AuthorizationContextV2, A as AuthorizationResult, B as BaseUcanFlow, M as CapabilityGrant, Y as CompiledBlock, Z as CompiledEdge, q as CompiledFlow, _ as CompiledFlowNode, C as CompilerRegistry, T as ConditionRef, D as DelegationStore, O as DerivedCapability, E as ExecuteNodeParams, x as ExecuteNodeParamsV2, k as ExecutionContext, y as ExecutionContextV2, j as ExecutionOutcome, p as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, R as OutputSchemaField, X as RuntimeRef, S as SetupFlowOptions, o as SetupFlowResult, K as SimpleUCANManager, W as TTLConstraint, L as UCANManager, U as UcanService, I as UcanServiceConfig, J as UcanServiceHandlers, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, u as clearRuntimeForTemplateClone, n as compileBaseUcanFlow, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, H as createUcanService, e as executeNode, w as executeNodeWithInvocation, f as findValidCapability, i as isActorAuthorized, z as isActorAuthorizedV2, a as isNodeActive, $ as isRuntimeRef, s as setupFlowFromBaseUcan, v as validateCapabilityChain } from '../setup-C5MpJdyr.mjs';
|
|
3
|
+
export { A as ActivationCondition, C as Capability, m as CapabilityURI, a as CapabilityValidationResult, o as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, n as DID, y as DelegationChainValidationResult, D as DelegationGrant, E as EvaluationStatus, x as ExecutionWithInvocationResult, z as FindProofsResult, r as FlowNode, F as FlowNodeAuthzExtension, q as FlowNodeBase, p as FlowNodeRuntimeState, v as InvocationRequest, w as InvocationResult, l as InvocationStore, L as LinkedClaim, M as MigrationReport, N as NodeState, S as SignedCapability, t as StoredDelegation, u as StoredInvocation, s as UcanCapability, U as UcanDelegationStore, j as createInvocationStore, k as createMemoryInvocationStore, i as createMemoryUcanDelegationStore, h as createUcanDelegationStore } from '../index-BmOZ-1iJ.mjs';
|
|
3
4
|
import '@ixo/ucan';
|
|
4
5
|
import 'yjs';
|
|
5
|
-
import '@blocknote/core';
|
|
6
6
|
import 'matrix-js-sdk';
|
|
7
|
-
|
|
8
|
-
interface ActionContext {
|
|
9
|
-
actorDid: string;
|
|
10
|
-
flowId: string;
|
|
11
|
-
nodeId: string;
|
|
12
|
-
services: ActionServices;
|
|
13
|
-
flowNode?: any;
|
|
14
|
-
runtime?: any;
|
|
15
|
-
delegationStore?: any;
|
|
16
|
-
verifySignature?: (capabilityRaw: string, issuerDid: string) => Promise<{
|
|
17
|
-
valid: boolean;
|
|
18
|
-
error?: string;
|
|
19
|
-
}>;
|
|
20
|
-
rootIssuer?: string;
|
|
21
|
-
flowUri?: string;
|
|
22
|
-
handlers?: any;
|
|
23
|
-
editor?: any;
|
|
24
|
-
}
|
|
25
|
-
interface ActionServices {
|
|
26
|
-
http?: {
|
|
27
|
-
request: (params: {
|
|
28
|
-
url: string;
|
|
29
|
-
method: string;
|
|
30
|
-
headers?: Record<string, string>;
|
|
31
|
-
body?: any;
|
|
32
|
-
}) => Promise<{
|
|
33
|
-
status: number;
|
|
34
|
-
headers: Record<string, string>;
|
|
35
|
-
data: any;
|
|
36
|
-
}>;
|
|
37
|
-
};
|
|
38
|
-
email?: {
|
|
39
|
-
send: (params: {
|
|
40
|
-
to: string;
|
|
41
|
-
subject: string;
|
|
42
|
-
template: string;
|
|
43
|
-
templateVersion?: string;
|
|
44
|
-
variables?: Record<string, any>;
|
|
45
|
-
cc?: string;
|
|
46
|
-
bcc?: string;
|
|
47
|
-
replyTo?: string;
|
|
48
|
-
}) => Promise<{
|
|
49
|
-
messageId: string;
|
|
50
|
-
sentAt: string;
|
|
51
|
-
}>;
|
|
52
|
-
};
|
|
53
|
-
notify?: {
|
|
54
|
-
send: (params: {
|
|
55
|
-
channel: string;
|
|
56
|
-
to: string[];
|
|
57
|
-
cc?: string[];
|
|
58
|
-
bcc?: string[];
|
|
59
|
-
subject?: string;
|
|
60
|
-
body?: string;
|
|
61
|
-
bodyType?: 'text' | 'html';
|
|
62
|
-
from?: string;
|
|
63
|
-
replyTo?: string;
|
|
64
|
-
}) => Promise<{
|
|
65
|
-
messageId: string;
|
|
66
|
-
sentAt: string;
|
|
67
|
-
}>;
|
|
68
|
-
};
|
|
69
|
-
bid?: {
|
|
70
|
-
submitBid: (params: {
|
|
71
|
-
collectionId: string;
|
|
72
|
-
role: string;
|
|
73
|
-
surveyAnswers: Record<string, any>;
|
|
74
|
-
}) => Promise<any>;
|
|
75
|
-
approveBid: (params: {
|
|
76
|
-
bidId: string;
|
|
77
|
-
collectionId: string;
|
|
78
|
-
did: string;
|
|
79
|
-
}) => Promise<any>;
|
|
80
|
-
rejectBid: (params: {
|
|
81
|
-
bidId: string;
|
|
82
|
-
collectionId: string;
|
|
83
|
-
did: string;
|
|
84
|
-
reason: string;
|
|
85
|
-
}) => Promise<any>;
|
|
86
|
-
approveServiceAgentApplication: (params: {
|
|
87
|
-
adminAddress: string;
|
|
88
|
-
collectionId: string;
|
|
89
|
-
agentQuota: number;
|
|
90
|
-
deedDid: string;
|
|
91
|
-
currentUserAddress: string;
|
|
92
|
-
}) => Promise<void>;
|
|
93
|
-
approveEvaluatorApplication: (params: {
|
|
94
|
-
adminAddress: string;
|
|
95
|
-
collectionId: string;
|
|
96
|
-
deedDid: string;
|
|
97
|
-
evaluatorAddress: string;
|
|
98
|
-
agentQuota?: number;
|
|
99
|
-
claimIds?: string[];
|
|
100
|
-
maxAmounts?: Array<{
|
|
101
|
-
denom: string;
|
|
102
|
-
amount: string;
|
|
103
|
-
}>;
|
|
104
|
-
}) => Promise<void>;
|
|
105
|
-
};
|
|
106
|
-
claim?: {
|
|
107
|
-
requestPin: (config?: {
|
|
108
|
-
title?: string;
|
|
109
|
-
description?: string;
|
|
110
|
-
submitText?: string;
|
|
111
|
-
}) => Promise<string>;
|
|
112
|
-
submitClaim: (params: {
|
|
113
|
-
surveyData: any;
|
|
114
|
-
deedDid: string;
|
|
115
|
-
collectionId: string;
|
|
116
|
-
adminAddress: string;
|
|
117
|
-
pin: string;
|
|
118
|
-
}) => Promise<{
|
|
119
|
-
transactionHash: string;
|
|
120
|
-
claimId: string;
|
|
121
|
-
}>;
|
|
122
|
-
evaluateClaim: (granteeAddress: string, did: string, payload: {
|
|
123
|
-
claimId: string;
|
|
124
|
-
collectionId: string;
|
|
125
|
-
adminAddress: string;
|
|
126
|
-
status?: number;
|
|
127
|
-
verificationProof: string;
|
|
128
|
-
amount?: {
|
|
129
|
-
denom: string;
|
|
130
|
-
amount: string;
|
|
131
|
-
} | Array<{
|
|
132
|
-
denom: string;
|
|
133
|
-
amount: string;
|
|
134
|
-
}>;
|
|
135
|
-
}) => Promise<void>;
|
|
136
|
-
getCurrentUser: () => {
|
|
137
|
-
address: string;
|
|
138
|
-
};
|
|
139
|
-
createUdid?: (params: any) => Promise<any>;
|
|
140
|
-
};
|
|
141
|
-
matrix?: {
|
|
142
|
-
storeCredential: (params: {
|
|
143
|
-
roomId: string;
|
|
144
|
-
credentialKey: string;
|
|
145
|
-
credential: Record<string, any>;
|
|
146
|
-
cid: string;
|
|
147
|
-
}) => Promise<{
|
|
148
|
-
storedAt: string;
|
|
149
|
-
duplicate: boolean;
|
|
150
|
-
}>;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
interface OutputSchemaField {
|
|
154
|
-
path: string;
|
|
155
|
-
displayName: string;
|
|
156
|
-
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
157
|
-
description?: string;
|
|
158
|
-
}
|
|
159
|
-
interface ActionDefinition {
|
|
160
|
-
type: string;
|
|
161
|
-
sideEffect: boolean;
|
|
162
|
-
defaultRequiresConfirmation: boolean;
|
|
163
|
-
requiredCapability?: string;
|
|
164
|
-
inputSchema?: object;
|
|
165
|
-
/** Static output schema for action types with predictable output (e.g. email.send).
|
|
166
|
-
* For action types with dynamic output (e.g. http.request), the schema is user-defined in inputs. */
|
|
167
|
-
outputSchema?: OutputSchemaField[];
|
|
168
|
-
run: (inputs: Record<string, any>, ctx: ActionContext) => Promise<ActionResult>;
|
|
169
|
-
}
|
|
170
|
-
interface ActionResult {
|
|
171
|
-
output: Record<string, any>;
|
|
172
|
-
}
|
|
7
|
+
import '@blocknote/core';
|
|
173
8
|
|
|
174
9
|
declare function registerAction(definition: ActionDefinition): void;
|
|
175
10
|
declare function getAction(type: string): ActionDefinition | undefined;
|
|
176
11
|
declare function getAllActions(): ActionDefinition[];
|
|
177
12
|
declare function hasAction(type: string): boolean;
|
|
13
|
+
/** Look up an action by its UCAN `can` ability string, e.g., "bid/submit". */
|
|
14
|
+
declare function getActionByCan(can: string): ActionDefinition | undefined;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Bidirectional mapping between UCAN `can` vocabulary and registry `type` strings.
|
|
18
|
+
* Derived mechanically: strip "qi/", replace "." with "/".
|
|
19
|
+
*/
|
|
20
|
+
/** Resolve a `can` ability string to the registry `type` string. */
|
|
21
|
+
declare function canToType(can: string): string | undefined;
|
|
22
|
+
/** Resolve a registry `type` string to the `can` ability string. */
|
|
23
|
+
declare function typeToCan(type: string): string | undefined;
|
|
24
|
+
/** Get all registered can↔type mappings. */
|
|
25
|
+
declare function getAllCanMappings(): ReadonlyArray<{
|
|
26
|
+
can: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}>;
|
|
178
29
|
|
|
179
30
|
/**
|
|
180
31
|
* Builds an ActionServices map from BlocknoteHandlers.
|
|
@@ -185,6 +36,19 @@ declare function hasAction(type: string): boolean;
|
|
|
185
36
|
*/
|
|
186
37
|
declare function buildServicesFromHandlers(handlers: any): ActionServices;
|
|
187
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Resolve runtime references in an nb (caveats) object.
|
|
41
|
+
*
|
|
42
|
+
* At compile time, `{ "$ref": "nodeId.output.fieldPath" }` values are serialized
|
|
43
|
+
* as-is into the block's `inputs` JSON string. At execution time, this function
|
|
44
|
+
* replaces them with actual output values from upstream nodes.
|
|
45
|
+
*
|
|
46
|
+
* @param nb - The caveats object (may contain nested RuntimeRef values)
|
|
47
|
+
* @param getNodeOutput - Lookup function for upstream node outputs
|
|
48
|
+
* @returns A new object with all $ref values resolved
|
|
49
|
+
*/
|
|
50
|
+
declare function resolveRuntimeRefs(nb: Record<string, unknown>, getNodeOutput: (nodeId: string) => Record<string, unknown> | undefined): Record<string, unknown>;
|
|
51
|
+
|
|
188
52
|
/**
|
|
189
53
|
* Compute an IPFS-compatible CID for arbitrary content.
|
|
190
54
|
* Dependencies are lazy-loaded to avoid bundling IPFS libraries
|
|
@@ -198,4 +62,4 @@ declare function computeCID(content: Uint8Array): Promise<string>;
|
|
|
198
62
|
*/
|
|
199
63
|
declare function computeJsonCID(obj: Record<string, any>): Promise<string>;
|
|
200
64
|
|
|
201
|
-
export {
|
|
65
|
+
export { ActionDefinition, ActionServices, buildServicesFromHandlers, canToType, computeCID, computeJsonCID, getAction, getActionByCan, getAllActions, getAllCanMappings, hasAction, registerAction, resolveRuntimeRefs, typeToCan };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
compileBaseUcanFlow,
|
|
3
|
+
isRuntimeRef,
|
|
4
|
+
resolveRuntimeRefs,
|
|
5
|
+
setupFlowFromBaseUcan
|
|
6
|
+
} from "../chunk-SZSEZY6Z.mjs";
|
|
1
7
|
import {
|
|
2
8
|
SimpleUCANManager,
|
|
3
9
|
buildAuthzFromProps,
|
|
4
10
|
buildFlowNodeFromBlock,
|
|
5
11
|
buildServicesFromHandlers,
|
|
12
|
+
canToType,
|
|
6
13
|
clearRuntimeForTemplateClone,
|
|
7
14
|
createDelegationStore,
|
|
8
15
|
createInvocationStore,
|
|
@@ -16,14 +23,17 @@ import {
|
|
|
16
23
|
executeNodeWithInvocation,
|
|
17
24
|
findValidCapability,
|
|
18
25
|
getAction,
|
|
26
|
+
getActionByCan,
|
|
19
27
|
getAllActions,
|
|
28
|
+
getAllCanMappings,
|
|
20
29
|
hasAction,
|
|
21
30
|
isActorAuthorized,
|
|
22
31
|
isActorAuthorizedV2,
|
|
23
32
|
isNodeActive,
|
|
24
33
|
registerAction,
|
|
34
|
+
typeToCan,
|
|
25
35
|
validateCapabilityChain
|
|
26
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-NOMJJJDB.mjs";
|
|
27
37
|
import {
|
|
28
38
|
computeCID,
|
|
29
39
|
computeJsonCID
|
|
@@ -33,7 +43,9 @@ export {
|
|
|
33
43
|
buildAuthzFromProps,
|
|
34
44
|
buildFlowNodeFromBlock,
|
|
35
45
|
buildServicesFromHandlers,
|
|
46
|
+
canToType,
|
|
36
47
|
clearRuntimeForTemplateClone,
|
|
48
|
+
compileBaseUcanFlow,
|
|
37
49
|
computeCID,
|
|
38
50
|
computeJsonCID,
|
|
39
51
|
createDelegationStore,
|
|
@@ -48,12 +60,18 @@ export {
|
|
|
48
60
|
executeNodeWithInvocation,
|
|
49
61
|
findValidCapability,
|
|
50
62
|
getAction,
|
|
63
|
+
getActionByCan,
|
|
51
64
|
getAllActions,
|
|
65
|
+
getAllCanMappings,
|
|
52
66
|
hasAction,
|
|
53
67
|
isActorAuthorized,
|
|
54
68
|
isActorAuthorizedV2,
|
|
55
69
|
isNodeActive,
|
|
70
|
+
isRuntimeRef,
|
|
56
71
|
registerAction,
|
|
72
|
+
resolveRuntimeRefs,
|
|
73
|
+
setupFlowFromBaseUcan,
|
|
74
|
+
typeToCan,
|
|
57
75
|
validateCapabilityChain
|
|
58
76
|
};
|
|
59
77
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
|
-
import { K as IxoBlockProps, J as IxoEditorType, I as IxoEditorOptions, e as IxoCollaborativeEditorOptions, D as DelegationGrant } from './index-
|
|
2
|
+
import { K as IxoBlockProps, J as IxoEditorType, I as IxoEditorOptions, e as IxoCollaborativeEditorOptions, D as DelegationGrant } from './index-BmOZ-1iJ.mjs';
|
|
3
3
|
import { Text, Doc, Map, Array as Array$1 } from 'yjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
@@ -1900,6 +1900,8 @@ interface FlowNodeRuntimeState {
|
|
|
1900
1900
|
output?: Record<string, any>;
|
|
1901
1901
|
executedByDid?: DID;
|
|
1902
1902
|
executedAt?: number;
|
|
1903
|
+
/** Unix timestamp (ms) when the block first became enabled/activated */
|
|
1904
|
+
enabledAt?: number;
|
|
1903
1905
|
invocations?: string[];
|
|
1904
1906
|
lastInvocationCid?: string;
|
|
1905
1907
|
assignments?: Array<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, v as BlocknoteHandlers, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from './graphql-client-
|
|
2
|
-
export { m as ActivationResult, l as AuthorizationContext, A as AuthorizationResult, D as DelegationStore, E as ExecuteNodeParams, k as ExecutionContext, j as ExecutionOutcome, F as FlowRuntimeStateManager, N as NodeActionResult, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, e as executeNode, f as findValidCapability, i as isActorAuthorized, a as isNodeActive, v as validateCapabilityChain } from './
|
|
3
|
-
export { C as Capability, a as CapabilityValidationResult, D as DelegationGrant, e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, S as SignedCapability, f as blockSpecs, g as getExtraSlashMenuItems } from './index-
|
|
1
|
+
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, v as BlocknoteHandlers, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from './graphql-client-CSiffz9I.mjs';
|
|
2
|
+
export { m as ActivationResult, l as AuthorizationContext, A as AuthorizationResult, B as BaseUcanFlow, q as CompiledFlow, C as CompilerRegistry, D as DelegationStore, E as ExecuteNodeParams, k as ExecutionContext, j as ExecutionOutcome, p as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, S as SetupFlowOptions, o as SetupFlowResult, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, n as compileBaseUcanFlow, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, e as executeNode, f as findValidCapability, i as isActorAuthorized, a as isNodeActive, s as setupFlowFromBaseUcan, v as validateCapabilityChain } from './setup-C5MpJdyr.mjs';
|
|
3
|
+
export { C as Capability, a as CapabilityValidationResult, D as DelegationGrant, e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, S as SignedCapability, f as blockSpecs, g as getExtraSlashMenuItems } from './index-BmOZ-1iJ.mjs';
|
|
4
4
|
export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
|
|
5
5
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
6
6
|
import 'yjs';
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,11 @@ import {
|
|
|
26
26
|
useCreateCollaborativeIxoEditor,
|
|
27
27
|
useCreateIxoEditor,
|
|
28
28
|
useTrackBlockFocus
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LQP2DPYM.mjs";
|
|
30
|
+
import {
|
|
31
|
+
compileBaseUcanFlow,
|
|
32
|
+
setupFlowFromBaseUcan
|
|
33
|
+
} from "./chunk-SZSEZY6Z.mjs";
|
|
30
34
|
import {
|
|
31
35
|
buildAuthzFromProps,
|
|
32
36
|
buildFlowNodeFromBlock,
|
|
@@ -38,7 +42,7 @@ import {
|
|
|
38
42
|
isActorAuthorized,
|
|
39
43
|
isNodeActive,
|
|
40
44
|
validateCapabilityChain
|
|
41
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NOMJJJDB.mjs";
|
|
42
46
|
|
|
43
47
|
// src/index.ts
|
|
44
48
|
import { cloneDocument } from "@ixo/matrix-crdt";
|
|
@@ -64,6 +68,7 @@ export {
|
|
|
64
68
|
buildAuthzFromProps,
|
|
65
69
|
buildFlowNodeFromBlock,
|
|
66
70
|
cloneDocument,
|
|
71
|
+
compileBaseUcanFlow,
|
|
67
72
|
createDelegationStore,
|
|
68
73
|
createMemoryDelegationStore,
|
|
69
74
|
createRuntimeStateManager,
|
|
@@ -74,6 +79,7 @@ export {
|
|
|
74
79
|
isActorAuthorized,
|
|
75
80
|
isNodeActive,
|
|
76
81
|
ixoGraphQLClient,
|
|
82
|
+
setupFlowFromBaseUcan,
|
|
77
83
|
useBlockPresence,
|
|
78
84
|
useBlocknoteContext,
|
|
79
85
|
useBlocknoteHandlers,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Main exports for ixo-editor package\n// This exports the mantine version by default\n// For explicit mantine imports, use:\n// - import { ... } from \"@ixo/editor/mantine\"\n\n// Export the main hook (mantine version by default)\nexport { useCreateIxoEditor } from './mantine/hooks/useCreateIxoEditor';\nexport { useCreateCollaborativeIxoEditor } from './mantine/hooks/useCollaborativeIxoEditor';\n\n// Export the main component (mantine version by default)\nexport { IxoEditor, type IxoEditorProps } from './mantine/IxoEditor';\n\n// Export CoverImage component\nexport { CoverImage, type CoverImageProps } from './mantine/components/CoverImage';\n\n// Export authorization components\nexport { AuthorizationTab, type AuthorizationTabState } from './mantine/components/AuthorizationTab';\nexport { EvaluationTab, type EvaluationTabState } from './mantine/components/EvaluationTab';\nexport { EntitySigningSetup } from './mantine/components/EntitySigningSetup';\nexport { FlowPermissionsPanel } from './mantine/components/FlowPermissionsPanel';\nexport { GrantPermissionModal } from './mantine/components/GrantPermissionModal';\n\n// Export flow engine\nexport {\n executeNode,\n isActorAuthorized,\n isNodeActive,\n validateCapabilityChain,\n findValidCapability,\n createDelegationStore,\n createMemoryDelegationStore,\n createRuntimeStateManager,\n buildFlowNodeFromBlock,\n buildAuthzFromProps,\n} from './core/lib/flowEngine';\nexport type {\n ExecuteNodeParams,\n ExecutionOutcome,\n NodeActionResult,\n ExecutionContext,\n AuthorizationResult,\n AuthorizationContext,\n ActivationResult,\n DelegationStore,\n FlowRuntimeStateManager,\n} from './core/lib/flowEngine';\n\n// Export capability types\nexport type { Capability, SignedCapability, CapabilityValidationResult, DelegationGrant } from './core/types/capability';\n\n// Export types from core\nexport type { IxoEditorOptions, IxoEditorTheme, IxoEditorConfig, IxoCollaborativeUser, IxoCollaborativeEditorOptions } from './core/types';\n\n// Export custom blocks (mantine version by default)\nexport { CheckboxBlockSpec, ListBlockSpec, OverviewBlock, ProposalBlockSpec, ApiRequestBlockSpec, blockSpecs, getExtraSlashMenuItems } from './mantine/blocks';\nexport type { CheckboxBlockProps, ListBlockSettings, ListBlockProps } from './mantine/blocks';\nexport type { OverviewBlockProps } from './mantine/blocks';\nexport type { ProposalBlockProps } from './mantine/blocks';\nexport type { ApiRequestBlockProps, HttpMethod, KeyValuePair } from './mantine/blocks';\n\n// Export block presence hooks\nexport { useBlockPresence, type BlockPresenceUser } from './mantine/hooks/useBlockPresence';\nexport { useTrackBlockFocus } from './mantine/hooks/useTrackBlockFocus';\n\n// Export context and handlers\nexport { BlocknoteProvider, useBlocknoteContext, useBlocknoteHandlers, StakeType, AuthzExecActionTypes, ValidatorActionType } from './mantine/context';\nexport type {\n BlocknoteHandlers,\n BlocknoteContextValue,\n BlockRequirements,\n ProposalResponse,\n SingleChoiceProposal,\n VoteResponse,\n VoteInfo,\n Vote,\n User,\n Addr,\n Uint128,\n Timestamp,\n Expiration,\n Status,\n Threshold,\n Votes,\n CosmosMsgForEmpty,\n ProposalAction,\n StakeTypeValue,\n} from './mantine/context';\n\n// Export GraphQL client and queries from core\nexport { getEntity } from './core/lib/graphql-queries';\nexport type { Entity, EntityResponse, EntityVariables } from './core/lib/graphql-queries';\nexport { GraphQLClient, ixoGraphQLClient } from './core/lib/graphql-client';\nexport type { GraphQLResponse, GraphQLRequest } from './core/lib/graphql-client';\n\n// Re-export cloneDocument from matrix-crdt\nexport { cloneDocument } from '@ixo/matrix-crdt';\nexport type { CloneDocumentResult } from '@ixo/matrix-crdt';\n\n// Re-export useful BlockNote types that users might need\nexport type { BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock, Block } from '@blocknote/core';\n\n// Note: Additional BlockNote utilities can be imported directly from @blocknote/react if needed\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Main exports for ixo-editor package\n// This exports the mantine version by default\n// For explicit mantine imports, use:\n// - import { ... } from \"@ixo/editor/mantine\"\n\n// Export the main hook (mantine version by default)\nexport { useCreateIxoEditor } from './mantine/hooks/useCreateIxoEditor';\nexport { useCreateCollaborativeIxoEditor } from './mantine/hooks/useCollaborativeIxoEditor';\n\n// Export the main component (mantine version by default)\nexport { IxoEditor, type IxoEditorProps } from './mantine/IxoEditor';\n\n// Export CoverImage component\nexport { CoverImage, type CoverImageProps } from './mantine/components/CoverImage';\n\n// Export authorization components\nexport { AuthorizationTab, type AuthorizationTabState } from './mantine/components/AuthorizationTab';\nexport { EvaluationTab, type EvaluationTabState } from './mantine/components/EvaluationTab';\nexport { EntitySigningSetup } from './mantine/components/EntitySigningSetup';\nexport { FlowPermissionsPanel } from './mantine/components/FlowPermissionsPanel';\nexport { GrantPermissionModal } from './mantine/components/GrantPermissionModal';\n\n// Export flow engine\nexport {\n executeNode,\n isActorAuthorized,\n isNodeActive,\n validateCapabilityChain,\n findValidCapability,\n createDelegationStore,\n createMemoryDelegationStore,\n createRuntimeStateManager,\n buildFlowNodeFromBlock,\n buildAuthzFromProps,\n} from './core/lib/flowEngine';\nexport type {\n ExecuteNodeParams,\n ExecutionOutcome,\n NodeActionResult,\n ExecutionContext,\n AuthorizationResult,\n AuthorizationContext,\n ActivationResult,\n DelegationStore,\n FlowRuntimeStateManager,\n} from './core/lib/flowEngine';\n\n// Export capability types\nexport type { Capability, SignedCapability, CapabilityValidationResult, DelegationGrant } from './core/types/capability';\n\n// Export types from core\nexport type { IxoEditorOptions, IxoEditorTheme, IxoEditorConfig, IxoCollaborativeUser, IxoCollaborativeEditorOptions } from './core/types';\n\n// Export custom blocks (mantine version by default)\nexport { CheckboxBlockSpec, ListBlockSpec, OverviewBlock, ProposalBlockSpec, ApiRequestBlockSpec, blockSpecs, getExtraSlashMenuItems } from './mantine/blocks';\nexport type { CheckboxBlockProps, ListBlockSettings, ListBlockProps } from './mantine/blocks';\nexport type { OverviewBlockProps } from './mantine/blocks';\nexport type { ProposalBlockProps } from './mantine/blocks';\nexport type { ApiRequestBlockProps, HttpMethod, KeyValuePair } from './mantine/blocks';\n\n// Export block presence hooks\nexport { useBlockPresence, type BlockPresenceUser } from './mantine/hooks/useBlockPresence';\nexport { useTrackBlockFocus } from './mantine/hooks/useTrackBlockFocus';\n\n// Export context and handlers\nexport { BlocknoteProvider, useBlocknoteContext, useBlocknoteHandlers, StakeType, AuthzExecActionTypes, ValidatorActionType } from './mantine/context';\nexport type {\n BlocknoteHandlers,\n BlocknoteContextValue,\n BlockRequirements,\n ProposalResponse,\n SingleChoiceProposal,\n VoteResponse,\n VoteInfo,\n Vote,\n User,\n Addr,\n Uint128,\n Timestamp,\n Expiration,\n Status,\n Threshold,\n Votes,\n CosmosMsgForEmpty,\n ProposalAction,\n StakeTypeValue,\n} from './mantine/context';\n\n// Export GraphQL client and queries from core\nexport { getEntity } from './core/lib/graphql-queries';\nexport type { Entity, EntityResponse, EntityVariables } from './core/lib/graphql-queries';\nexport { GraphQLClient, ixoGraphQLClient } from './core/lib/graphql-client';\nexport type { GraphQLResponse, GraphQLRequest } from './core/lib/graphql-client';\n\n// Export flow compiler (Base UCAN → flow setup)\nexport { setupFlowFromBaseUcan, compileBaseUcanFlow } from './core/lib/flowCompiler';\nexport type { SetupFlowOptions, SetupFlowResult, CompilerRegistry } from './core/lib/flowCompiler';\nexport type { BaseUcanFlow, FlowCapability, CompiledFlow } from './core/types/baseUcan';\n\n// Re-export cloneDocument from matrix-crdt\nexport { cloneDocument } from '@ixo/matrix-crdt';\nexport type { CloneDocumentResult } from '@ixo/matrix-crdt';\n\n// Re-export useful BlockNote types that users might need\nexport type { BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock, Block } from '@blocknote/core';\n\n// Note: Additional BlockNote utilities can be imported directly from @blocknote/react if needed\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,SAAS,qBAAqB;","names":[]}
|
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { v as BlocknoteHandlers } from '../graphql-client-
|
|
2
|
-
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, ah as DomainCardData, ag as DomainCardRenderer, a8 as DropPosition, ad as DynamicListData, ae as DynamicListDataProvider, af as DynamicListPanelRenderer, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, a7 as ExternalDropZone, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, a9 as PageHeader, ab as PageHeaderMenuItem, aa as PageHeaderProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, ac as VisualizationRenderer, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from '../graphql-client-
|
|
1
|
+
import { v as BlocknoteHandlers } from '../graphql-client-CSiffz9I.mjs';
|
|
2
|
+
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, ah as DomainCardData, ag as DomainCardRenderer, a8 as DropPosition, ad as DynamicListData, ae as DynamicListDataProvider, af as DynamicListPanelRenderer, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, a7 as ExternalDropZone, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, a9 as PageHeader, ab as PageHeaderMenuItem, aa as PageHeaderProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, ac as VisualizationRenderer, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from '../graphql-client-CSiffz9I.mjs';
|
|
3
3
|
import React$1, { PropsWithChildren } from 'react';
|
|
4
|
-
import { K as IxoBlockProps, J as IxoEditorType, p as FlowNodeRuntimeState } from '../index-
|
|
5
|
-
export { e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, f as blockSpecs, g as getExtraSlashMenuItems } from '../index-
|
|
4
|
+
import { K as IxoBlockProps, J as IxoEditorType, p as FlowNodeRuntimeState } from '../index-BmOZ-1iJ.mjs';
|
|
5
|
+
export { e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, f as blockSpecs, g as getExtraSlashMenuItems } from '../index-BmOZ-1iJ.mjs';
|
|
6
6
|
import * as zustand from 'zustand';
|
|
7
7
|
import * as _blocknote_core from '@blocknote/core';
|
|
8
8
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -48,13 +48,13 @@ import {
|
|
|
48
48
|
usePanel,
|
|
49
49
|
usePanelStore,
|
|
50
50
|
useTrackBlockFocus
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-LQP2DPYM.mjs";
|
|
52
52
|
import {
|
|
53
53
|
didToMatrixUserId,
|
|
54
54
|
findOrCreateDMRoom,
|
|
55
55
|
getHomeserver,
|
|
56
56
|
sendDirectMessage
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-NOMJJJDB.mjs";
|
|
58
58
|
export {
|
|
59
59
|
ApiRequestBlockSpec,
|
|
60
60
|
AuthorizationTab,
|