@ixo/editor 3.0.0-beta.30 → 3.0.0-beta.31

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActionByCan
3
- } from "./chunk-77R3T42S.mjs";
3
+ } from "./chunk-5D26UG3I.mjs";
4
4
 
5
5
  // src/core/lib/flowCompiler/blockMapping.ts
6
6
  var ICON_DEFAULTS = {
@@ -467,4 +467,4 @@ export {
467
467
  resolveRuntimeRefs,
468
468
  setupFlowFromBaseUcan
469
469
  };
470
- //# sourceMappingURL=chunk-5PHI3WWK.mjs.map
470
+ //# sourceMappingURL=chunk-KXKEXO53.mjs.map
@@ -1,12 +1,12 @@
1
- import { n as ActionDefinition, o as ActionServices } from '../setup-CahGoKeh.mjs';
2
- export { q as ActionContext, r as ActionResult, h as ActivationResult, u as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, v as CompiledBlock, w as CompiledEdge, m as CompiledFlow, x as CompiledFlowNode, C as CompilerRegistry, t as ConditionRef, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, O as OutputSchemaField, R as RuntimeRef, S as SetupFlowOptions, k as SetupFlowResult, T as TTLConstraint, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, p as clearRuntimeForTemplateClone, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, y as isRuntimeRef, s as setupFlowFromBaseUcan } from '../setup-CahGoKeh.mjs';
1
+ import { n as ActionDefinition, o as ActionServices } from '../setup-Do4fqPI0.mjs';
2
+ export { q as ActionContext, r as ActionResult, h as ActivationResult, u as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, v as CompiledBlock, w as CompiledEdge, m as CompiledFlow, x as CompiledFlowNode, C as CompilerRegistry, t as ConditionRef, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, O as OutputSchemaField, R as RuntimeRef, S as SetupFlowOptions, k as SetupFlowResult, T as TTLConstraint, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, p as clearRuntimeForTemplateClone, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, y as isRuntimeRef, s as setupFlowFromBaseUcan } from '../setup-Do4fqPI0.mjs';
3
3
  export { A as ActivationCondition, C as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, s as DID, D as DelegationChainValidationResult, k as DelegationGrant, E as EvaluationStatus, y as ExecutionWithInvocationResult, z as FindProofsResult, v as FlowNode, F as FlowNodeAuthzExtension, u as FlowNodeBase, t as FlowNodeRuntimeState, w as InvocationRequest, x as InvocationResult, I as InvocationStore, L as LinkedClaim, N as NodeState, S as StoredDelegation, j as StoredInvocation, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-7ptWHYA8.mjs';
4
4
  import 'yjs';
5
5
  import 'matrix-js-sdk';
6
6
  import '@blocknote/core';
7
7
  import '@ixo/ucan';
8
8
 
9
- declare function registerAction(definition: ActionDefinition): void;
9
+ declare function registerAction<TInputs extends Record<string, any> = Record<string, any>>(definition: ActionDefinition<TInputs>): void;
10
10
  declare function getAction(type: string): ActionDefinition | undefined;
11
11
  declare function getAllActions(): ActionDefinition[];
12
12
  declare function hasAction(type: string): boolean;
@@ -3,7 +3,7 @@ import {
3
3
  isRuntimeRef,
4
4
  resolveRuntimeRefs,
5
5
  setupFlowFromBaseUcan
6
- } from "../chunk-5PHI3WWK.mjs";
6
+ } from "../chunk-KXKEXO53.mjs";
7
7
  import {
8
8
  buildAuthzFromProps,
9
9
  buildFlowNodeFromBlock,
@@ -26,7 +26,7 @@ import {
26
26
  isNodeActive,
27
27
  registerAction,
28
28
  typeToCan
29
- } from "../chunk-77R3T42S.mjs";
29
+ } from "../chunk-5D26UG3I.mjs";
30
30
  import {
31
31
  computeCID,
32
32
  computeJsonCID
@@ -1042,7 +1042,7 @@ declare enum EAAgentRoles {
1042
1042
  declare enum AgentRole {
1043
1043
  Owner = "PO",// Collection Controller
1044
1044
  Evaluator = "EA",// Evaluator
1045
- ServiceProvider = "SA",// Contributor/Service Agent
1045
+ ServiceProvider = "SA",// Contributor
1046
1046
  Investor = "IA"
1047
1047
  }
1048
1048
  type CheckUserRoleParams = {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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-Di1UKINF.mjs';
2
- export { h as ActivationResult, A as AuthorizationResult, B as BaseUcanFlow, m as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, S as SetupFlowOptions, k as SetupFlowResult, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, s as setupFlowFromBaseUcan } from './setup-CahGoKeh.mjs';
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-H2qzHfsm.mjs';
2
+ export { h as ActivationResult, A as AuthorizationResult, B as BaseUcanFlow, m as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, S as SetupFlowOptions, k as SetupFlowResult, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, s as setupFlowFromBaseUcan } from './setup-Do4fqPI0.mjs';
3
3
  export { D as DelegationChainValidationResult, k as DelegationGrant, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, S as StoredDelegation, j as StoredInvocation, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems } from './index-7ptWHYA8.mjs';
4
4
  export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
5
5
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
package/dist/index.mjs CHANGED
@@ -26,11 +26,11 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-TAYMLU7F.mjs";
29
+ } from "./chunk-ESD7J3JW.mjs";
30
30
  import {
31
31
  compileBaseUcanFlow,
32
32
  setupFlowFromBaseUcan
33
- } from "./chunk-5PHI3WWK.mjs";
33
+ } from "./chunk-KXKEXO53.mjs";
34
34
  import {
35
35
  buildAuthzFromProps,
36
36
  buildFlowNodeFromBlock,
@@ -43,7 +43,7 @@ import {
43
43
  executeNode,
44
44
  isAuthorized,
45
45
  isNodeActive
46
- } from "./chunk-77R3T42S.mjs";
46
+ } from "./chunk-5D26UG3I.mjs";
47
47
 
48
48
  // src/index.ts
49
49
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -1,5 +1,5 @@
1
- import { v as BlocknoteHandlers } from '../graphql-client-Di1UKINF.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-Di1UKINF.mjs';
1
+ import { v as BlocknoteHandlers } from '../graphql-client-H2qzHfsm.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-H2qzHfsm.mjs';
3
3
  import React$1, { PropsWithChildren } from 'react';
4
4
  import { K as IxoBlockProps, J as IxoEditorType, t as FlowNodeRuntimeState } from '../index-7ptWHYA8.mjs';
5
5
  export { p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, q as blockSpecs, r as getExtraSlashMenuItems } from '../index-7ptWHYA8.mjs';
@@ -48,13 +48,13 @@ import {
48
48
  usePanel,
49
49
  usePanelStore,
50
50
  useTrackBlockFocus
51
- } from "../chunk-TAYMLU7F.mjs";
51
+ } from "../chunk-ESD7J3JW.mjs";
52
52
  import {
53
53
  didToMatrixUserId,
54
54
  findOrCreateDMRoom,
55
55
  getHomeserver,
56
56
  sendDirectMessage
57
- } from "../chunk-77R3T42S.mjs";
57
+ } from "../chunk-5D26UG3I.mjs";
58
58
  export {
59
59
  ApiRequestBlockSpec,
60
60
  AuthorizationTab,
@@ -380,7 +380,7 @@ interface OutputSchemaField {
380
380
  type: 'string' | 'number' | 'boolean' | 'object' | 'array';
381
381
  description?: string;
382
382
  }
383
- interface ActionDefinition {
383
+ interface ActionDefinition<TInputs extends Record<string, any> = Record<string, any>> {
384
384
  type: string;
385
385
  /** UCAN-style ability string used by the flow compiler, e.g., "bid/submit". */
386
386
  can?: string;
@@ -391,7 +391,7 @@ interface ActionDefinition {
391
391
  /** Static output schema for action types with predictable output (e.g. email.send).
392
392
  * For action types with dynamic output (e.g. http.request), the schema is user-defined in inputs. */
393
393
  outputSchema?: OutputSchemaField[];
394
- run: (inputs: Record<string, any>, ctx: ActionContext) => Promise<ActionResult>;
394
+ run: (inputs: TInputs, ctx: ActionContext) => Promise<ActionResult>;
395
395
  }
396
396
  interface ActionResult {
397
397
  output: Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0-beta.30",
3
+ "version": "3.0.0-beta.31",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",