@ixo/editor 3.0.0 → 3.2.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActionByCan
3
- } from "./chunk-5D26UG3I.mjs";
3
+ } from "./chunk-3EZI42YS.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-KXKEXO53.mjs.map
470
+ //# sourceMappingURL=chunk-BAW3ML7X.mjs.map
@@ -1,6 +1,6 @@
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
- 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';
1
+ import { n as ActionDefinition, o as ActionServices } from '../setup-Cbd3tcfL.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-Cbd3tcfL.mjs';
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-DMrZ4EwQ.mjs';
4
4
  import 'yjs';
5
5
  import 'matrix-js-sdk';
6
6
  import '@blocknote/core';
@@ -3,7 +3,7 @@ import {
3
3
  isRuntimeRef,
4
4
  resolveRuntimeRefs,
5
5
  setupFlowFromBaseUcan
6
- } from "../chunk-KXKEXO53.mjs";
6
+ } from "../chunk-BAW3ML7X.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-5D26UG3I.mjs";
29
+ } from "../chunk-3EZI42YS.mjs";
30
30
  import {
31
31
  computeCID,
32
32
  computeJsonCID
@@ -1,5 +1,5 @@
1
1
  import * as _blocknote_core from '@blocknote/core';
2
- import { K as IxoBlockProps, J as IxoEditorType, l as IxoEditorOptions, p as IxoCollaborativeEditorOptions, k as DelegationGrant } from './index-7ptWHYA8.mjs';
2
+ import { K as IxoBlockProps, J as IxoEditorType, l as IxoEditorOptions, p as IxoCollaborativeEditorOptions, k as DelegationGrant } from './index-DMrZ4EwQ.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';
@@ -2250,6 +2250,8 @@ interface BlocknoteContextValue {
2250
2250
  mapConfig?: UnlMapConfig;
2251
2251
  editable?: boolean;
2252
2252
  docType: DocType;
2253
+ /** Current flow schema version (e.g., '0.3', '1.0.0') */
2254
+ flowVersion: string;
2253
2255
  sharedProposals: SharedProposalData;
2254
2256
  fetchSharedProposal: (proposalId: string, contractAddress: string, force?: boolean) => Promise<ProposalResponse>;
2255
2257
  invalidateProposal: (proposalId: string) => void;
@@ -2602,29 +2604,6 @@ declare function useCreateCollaborativeIxoEditor(options: IxoCollaborativeEditor
2602
2604
  awarenessInstance: any;
2603
2605
  };
2604
2606
 
2605
- interface PageHeaderMenuItem {
2606
- label: string;
2607
- onClick: () => void;
2608
- icon?: React.ReactNode;
2609
- disabled?: boolean;
2610
- divider?: boolean;
2611
- }
2612
- interface PageHeaderProps {
2613
- title?: string;
2614
- icon?: React.ReactNode;
2615
- isPrivate?: boolean;
2616
- onPrivacyChange?: (isPrivate: boolean) => void;
2617
- lastEdited?: string;
2618
- onShare?: () => void;
2619
- onFavorite?: () => void;
2620
- isFavorited?: boolean;
2621
- menuItems?: PageHeaderMenuItem[];
2622
- }
2623
- /**
2624
- * PageHeader component - A Notion-style page header with title, privacy badge, and actions
2625
- */
2626
- declare function PageHeader({ title, icon, isPrivate, onPrivacyChange, lastEdited, onShare, onFavorite, isFavorited, menuItems, }: PageHeaderProps): React.ReactElement;
2627
-
2628
2607
  /** Position info passed to drop callback */
2629
2608
  interface DropPosition {
2630
2609
  blockId: string;
@@ -2663,8 +2642,6 @@ interface IxoEditorProps {
2663
2642
  isPanelVisible?: boolean;
2664
2643
  coverImageUrl?: string;
2665
2644
  logoUrl?: string;
2666
- selfNav?: boolean;
2667
- pageHeaderProps?: Omit<PageHeaderProps, 'children'>;
2668
2645
  visualizationRenderer?: (vizType: string, config: object) => React.ReactNode;
2669
2646
  getDynamicListData?: DynamicListDataProvider;
2670
2647
  dynamicListPanelRenderer?: DynamicListPanelRenderer;
@@ -2690,7 +2667,7 @@ interface IxoEditorProps {
2690
2667
  /**
2691
2668
  * IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
2692
2669
  */
2693
- declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, selfNav, pageHeaderProps, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, domainCardRenderer, onExternalDrop, externalDropType, dropIndicator, isPlacementMode, onPlacementCancel, mapConfig, connectedUsers, awarenessInstance, }: IxoEditorProps): React.ReactElement | null;
2670
+ declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, domainCardRenderer, onExternalDrop, externalDropType, dropIndicator, isPlacementMode, onPlacementCancel, mapConfig, connectedUsers, awarenessInstance, }: IxoEditorProps): React.ReactElement | null;
2694
2671
 
2695
2672
  interface CoverImageProps {
2696
2673
  coverImageUrl?: string;
@@ -2855,4 +2832,4 @@ declare class GraphQLClient {
2855
2832
  }
2856
2833
  declare const ixoGraphQLClient: GraphQLClient;
2857
2834
 
2858
- export { getEntity as $, AuthorizationTab as A, type BlockPresenceUser as B, CoverImage as C, type VoteResponse as D, EvaluationTab as E, FlowPermissionsPanel as F, GrantPermissionModal as G, type HttpMethod as H, IxoEditor as I, type VoteInfo as J, type KeyValuePair as K, ListBlockSpec as L, type Vote as M, type Addr as N, OverviewBlock as O, ProposalBlockSpec as P, type Uint128 as Q, type Expiration as R, StakeType as S, type Timestamp as T, type User as U, ValidatorActionType as V, type Status as W, type Threshold as X, type Votes as Y, type CosmosMsgForEmpty as Z, type ProposalAction as _, useCreateCollaborativeIxoEditor as a, type Entity as a0, type EntityResponse as a1, type EntityVariables as a2, GraphQLClient as a3, ixoGraphQLClient as a4, type GraphQLResponse as a5, type GraphQLRequest as a6, ExternalDropZone as a7, type DropPosition as a8, PageHeader as a9, type PageHeaderProps as aa, type PageHeaderMenuItem as ab, type VisualizationRenderer as ac, type DynamicListData as ad, type DynamicListDataProvider as ae, type DynamicListPanelRenderer as af, type DomainCardRenderer as ag, type DomainCardData as ah, type IxoEditorProps as b, type CoverImageProps as c, type AuthorizationTabState as d, type EvaluationTabState as e, EntitySigningSetup as f, CheckboxBlockSpec as g, ApiRequestBlockSpec as h, type CheckboxBlockProps as i, type ListBlockSettings as j, type ListBlockProps as k, type OverviewBlockProps as l, type ProposalBlockProps as m, type ApiRequestBlockProps as n, useBlockPresence as o, useTrackBlockFocus as p, BlocknoteProvider as q, useBlocknoteContext as r, useBlocknoteHandlers as s, AuthzExecActionTypes as t, useCreateIxoEditor as u, type BlocknoteHandlers as v, type BlocknoteContextValue as w, type BlockRequirements as x, type ProposalResponse as y, type SingleChoiceProposal as z };
2835
+ export { getEntity as $, AuthorizationTab as A, type BlockPresenceUser as B, CoverImage as C, type VoteResponse as D, EvaluationTab as E, FlowPermissionsPanel as F, GrantPermissionModal as G, type HttpMethod as H, IxoEditor as I, type VoteInfo as J, type KeyValuePair as K, ListBlockSpec as L, type Vote as M, type Addr as N, OverviewBlock as O, ProposalBlockSpec as P, type Uint128 as Q, type Expiration as R, StakeType as S, type Timestamp as T, type User as U, ValidatorActionType as V, type Status as W, type Threshold as X, type Votes as Y, type CosmosMsgForEmpty as Z, type ProposalAction as _, useCreateCollaborativeIxoEditor as a, type Entity as a0, type EntityResponse as a1, type EntityVariables as a2, GraphQLClient as a3, ixoGraphQLClient as a4, type GraphQLResponse as a5, type GraphQLRequest as a6, ExternalDropZone as a7, type DropPosition as a8, type VisualizationRenderer as a9, type DynamicListData as aa, type DynamicListDataProvider as ab, type DynamicListPanelRenderer as ac, type DomainCardRenderer as ad, type DomainCardData as ae, type IxoEditorProps as b, type CoverImageProps as c, type AuthorizationTabState as d, type EvaluationTabState as e, EntitySigningSetup as f, CheckboxBlockSpec as g, ApiRequestBlockSpec as h, type CheckboxBlockProps as i, type ListBlockSettings as j, type ListBlockProps as k, type OverviewBlockProps as l, type ProposalBlockProps as m, type ApiRequestBlockProps as n, useBlockPresence as o, useTrackBlockFocus as p, BlocknoteProvider as q, useBlocknoteContext as r, useBlocknoteHandlers as s, AuthzExecActionTypes as t, useCreateIxoEditor as u, type BlocknoteHandlers as v, type BlocknoteContextValue as w, type BlockRequirements as x, type ProposalResponse as y, type SingleChoiceProposal as z };
@@ -1793,6 +1793,8 @@ declare const getExtraSlashMenuItems: (editor: any) => {
1793
1793
  * Now stores only URL strings in separate events
1794
1794
  */
1795
1795
  interface PageMetadata {
1796
+ /** Page title (stored as Matrix room name) */
1797
+ title?: string;
1796
1798
  /** Cover image URL */
1797
1799
  cover?: string;
1798
1800
  /** Icon/logo image URL */
@@ -2426,6 +2428,11 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
2426
2428
  * @internal
2427
2429
  */
2428
2430
  _yInvocations?: Map<any>;
2431
+ /**
2432
+ * Y.Map for migration state persistence
2433
+ * @internal
2434
+ */
2435
+ _yMigration?: Map<any>;
2429
2436
  /**
2430
2437
  * UCAN delegation store (new @ixo/ucan integration)
2431
2438
  * Supports both CAR format (new) and JSON format (legacy)
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
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
- 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
- export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
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-BxmM6bOC.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-Cbd3tcfL.mjs';
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-DMrZ4EwQ.mjs';
5
4
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
5
+ export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
6
6
  import 'yjs';
7
7
  import 'react';
8
8
  import 'matrix-js-sdk';
package/dist/index.mjs CHANGED
@@ -26,11 +26,11 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-UWTEHXWI.mjs";
29
+ } from "./chunk-3MI2QQYH.mjs";
30
30
  import {
31
31
  compileBaseUcanFlow,
32
32
  setupFlowFromBaseUcan
33
- } from "./chunk-KXKEXO53.mjs";
33
+ } from "./chunk-BAW3ML7X.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-5D26UG3I.mjs";
46
+ } from "./chunk-3EZI42YS.mjs";
47
47
 
48
48
  // src/index.ts
49
49
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -1,8 +1,8 @@
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';
1
+ import { v as BlocknoteHandlers } from '../graphql-client-BxmM6bOC.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, ae as DomainCardData, ad as DomainCardRenderer, a8 as DropPosition, aa as DynamicListData, ab as DynamicListDataProvider, ac 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, _ 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, a9 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-BxmM6bOC.mjs';
3
3
  import React$1, { PropsWithChildren } from 'react';
4
- import { K as IxoBlockProps, J as IxoEditorType, t as FlowNodeRuntimeState } from '../index-7ptWHYA8.mjs';
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';
4
+ import { K as IxoBlockProps, J as IxoEditorType, t as FlowNodeRuntimeState } from '../index-DMrZ4EwQ.mjs';
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-DMrZ4EwQ.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';
@@ -153,9 +153,39 @@ interface BaseIconPickerProps {
153
153
  onClose: () => void;
154
154
  onSelectIcon: (iconName: string) => void;
155
155
  onUploadClick?: () => void;
156
+ onRemove?: () => void;
156
157
  currentIcon?: string;
157
158
  }
158
- declare function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, children, currentIcon }: PropsWithChildren<BaseIconPickerProps>): React$1.JSX.Element;
159
+ declare function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove, children, currentIcon }: PropsWithChildren<BaseIconPickerProps>): React$1.JSX.Element;
160
+
161
+ interface PageHeaderMenuItem {
162
+ label: string;
163
+ onClick: () => void;
164
+ icon?: React$1.ReactNode;
165
+ disabled?: boolean;
166
+ divider?: boolean;
167
+ }
168
+ interface PageHeaderProps {
169
+ title?: string;
170
+ icon?: React$1.ReactNode;
171
+ isPrivate?: boolean;
172
+ onPrivacyChange?: (isPrivate: boolean) => void;
173
+ lastEdited?: string;
174
+ onShare?: () => void;
175
+ onFavorite?: () => void;
176
+ isFavorited?: boolean;
177
+ menuItems?: PageHeaderMenuItem[];
178
+ }
179
+ /**
180
+ * PageHeader component - A Notion-style page header with title, privacy badge, and actions
181
+ */
182
+ declare function PageHeader({ title, icon, isPrivate, onPrivacyChange, lastEdited, onShare, onFavorite, isFavorited, menuItems, }: PageHeaderProps): React$1.ReactElement;
183
+
184
+ interface PageTitleProps {
185
+ editor: IxoEditorType;
186
+ editable?: boolean;
187
+ }
188
+ declare function PageTitle({ editor, editable }: PageTitleProps): React$1.ReactElement;
159
189
 
160
190
  interface PanelState {
161
191
  activePanel: string | null;
@@ -419,4 +449,4 @@ declare function setDMNotificationRecord(runtimeMap: Map$1<any>, blockId: string
419
449
  */
420
450
  declare function shouldNotify(state: DMNotificationState, blockId: string, currentAssignedDid: string): boolean;
421
451
 
422
- export { BaseIconPicker, type BlockActionDefinition, BlocknoteHandlers, type CollapseEvent, type ColumnPosition, type DMNotificationRecord, type DMNotificationState, type DataSource, DebugButton, type DynamicListAction, type DynamicListBlockProps, DynamicListBlockSpec, type DynamicListColumn, type DynamicListPanelConfig, type HookedActionInstanceConfig, type HookedActionType, type HookedActionsConfig, HookedActionsTab, IxoEditorType, type ListBlocksUIContextValue, type Listener, type PayloadField, didToMatrixUserId, findOrCreateDMRoom, getAllHookedActionTypes, getBlockActions, getDMNotificationState, getHomeserver, getHookedActionType, initializeHookedActions, registerBlockActions, registerBuiltInActionTypes, registerHookedActionType, sendDirectMessage, setDMNotificationRecord, shouldNotify, useHookedActions, useListBlocksUI, useListBlocksUIStore, useNodeRuntime, usePanel, usePanelStore };
452
+ export { BaseIconPicker, type BlockActionDefinition, BlocknoteHandlers, type CollapseEvent, type ColumnPosition, type DMNotificationRecord, type DMNotificationState, type DataSource, DebugButton, type DynamicListAction, type DynamicListBlockProps, DynamicListBlockSpec, type DynamicListColumn, type DynamicListPanelConfig, type HookedActionInstanceConfig, type HookedActionType, type HookedActionsConfig, HookedActionsTab, IxoEditorType, type ListBlocksUIContextValue, type Listener, PageHeader, type PageHeaderMenuItem, type PageHeaderProps, PageTitle, type PageTitleProps, type PayloadField, didToMatrixUserId, findOrCreateDMRoom, getAllHookedActionTypes, getBlockActions, getDMNotificationState, getHomeserver, getHookedActionType, initializeHookedActions, registerBlockActions, registerBuiltInActionTypes, registerHookedActionType, sendDirectMessage, setDMNotificationRecord, shouldNotify, useHookedActions, useListBlocksUI, useListBlocksUIStore, useNodeRuntime, usePanel, usePanelStore };
@@ -19,6 +19,7 @@ import {
19
19
  ListBlockSpec,
20
20
  OverviewBlock,
21
21
  PageHeader,
22
+ PageTitle,
22
23
  ProposalBlockSpec,
23
24
  StakeType,
24
25
  ValidatorActionType,
@@ -48,13 +49,13 @@ import {
48
49
  usePanel,
49
50
  usePanelStore,
50
51
  useTrackBlockFocus
51
- } from "../chunk-UWTEHXWI.mjs";
52
+ } from "../chunk-3MI2QQYH.mjs";
52
53
  import {
53
54
  didToMatrixUserId,
54
55
  findOrCreateDMRoom,
55
56
  getHomeserver,
56
57
  sendDirectMessage
57
- } from "../chunk-5D26UG3I.mjs";
58
+ } from "../chunk-3EZI42YS.mjs";
58
59
  export {
59
60
  ApiRequestBlockSpec,
60
61
  AuthorizationTab,
@@ -76,6 +77,7 @@ export {
76
77
  ListBlockSpec,
77
78
  OverviewBlock,
78
79
  PageHeader,
80
+ PageTitle,
79
81
  ProposalBlockSpec,
80
82
  StakeType,
81
83
  ValidatorActionType,
@@ -1,4 +1,4 @@
1
- import { v as FlowNode, F as FlowNodeAuthzExtension, t as FlowNodeRuntimeState, J as IxoEditorType, f as UcanService, I as InvocationStore, E as EvaluationStatus } from './index-7ptWHYA8.mjs';
1
+ import { v as FlowNode, F as FlowNodeAuthzExtension, t as FlowNodeRuntimeState, J as IxoEditorType, f as UcanService, I as InvocationStore, E as EvaluationStatus } from './index-DMrZ4EwQ.mjs';
2
2
  import { Doc } from 'yjs';
3
3
  import { MatrixClient } from 'matrix-js-sdk';
4
4
 
@@ -226,8 +226,11 @@ interface AuthorizationResult {
226
226
  *
227
227
  * Every execution requires a valid delegation chain from the flow owner to the actor.
228
228
  * There is no default-allow or whitelist bypass.
229
+ *
230
+ * For legacy flows (v0.x), UCAN delegation chain validation is skipped and execution
231
+ * is allowed without a full proof chain.
229
232
  */
230
- declare const isAuthorized: (blockId: string, actorDid: string, ucanService: UcanService, flowUri: string) => Promise<AuthorizationResult>;
233
+ declare const isAuthorized: (blockId: string, actorDid: string, ucanService: UcanService, flowUri: string, schemaVersion?: string) => Promise<AuthorizationResult>;
231
234
 
232
235
  interface ActivationResult {
233
236
  active: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",