@ixo/editor 3.0.0 → 3.1.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
- 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-eMnRk02Q.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-eMnRk02Q.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-Ch49AFng.mjs';
4
4
  import 'yjs';
5
5
  import 'matrix-js-sdk';
6
6
  import '@blocknote/core';
@@ -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-Ch49AFng.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';
@@ -2602,29 +2602,6 @@ declare function useCreateCollaborativeIxoEditor(options: IxoCollaborativeEditor
2602
2602
  awarenessInstance: any;
2603
2603
  };
2604
2604
 
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
2605
  /** Position info passed to drop callback */
2629
2606
  interface DropPosition {
2630
2607
  blockId: string;
@@ -2663,8 +2640,6 @@ interface IxoEditorProps {
2663
2640
  isPanelVisible?: boolean;
2664
2641
  coverImageUrl?: string;
2665
2642
  logoUrl?: string;
2666
- selfNav?: boolean;
2667
- pageHeaderProps?: Omit<PageHeaderProps, 'children'>;
2668
2643
  visualizationRenderer?: (vizType: string, config: object) => React.ReactNode;
2669
2644
  getDynamicListData?: DynamicListDataProvider;
2670
2645
  dynamicListPanelRenderer?: DynamicListPanelRenderer;
@@ -2690,7 +2665,7 @@ interface IxoEditorProps {
2690
2665
  /**
2691
2666
  * IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
2692
2667
  */
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;
2668
+ 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
2669
 
2695
2670
  interface CoverImageProps {
2696
2671
  coverImageUrl?: string;
@@ -2855,4 +2830,4 @@ declare class GraphQLClient {
2855
2830
  }
2856
2831
  declare const ixoGraphQLClient: GraphQLClient;
2857
2832
 
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 };
2833
+ 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 */
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-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';
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-B49ND-qp.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-eMnRk02Q.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-Ch49AFng.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,7 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-UWTEHXWI.mjs";
29
+ } from "./chunk-FM2G22RS.mjs";
30
30
  import {
31
31
  compileBaseUcanFlow,
32
32
  setupFlowFromBaseUcan
@@ -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-B49ND-qp.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-B49ND-qp.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-Ch49AFng.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-Ch49AFng.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,7 +49,7 @@ import {
48
49
  usePanel,
49
50
  usePanelStore,
50
51
  useTrackBlockFocus
51
- } from "../chunk-UWTEHXWI.mjs";
52
+ } from "../chunk-FM2G22RS.mjs";
52
53
  import {
53
54
  didToMatrixUserId,
54
55
  findOrCreateDMRoom,
@@ -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-Ch49AFng.mjs';
2
2
  import { Doc } from 'yjs';
3
3
  import { MatrixClient } from 'matrix-js-sdk';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0",
3
+ "version": "3.1.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",