@ixo/editor 2.40.0 → 3.0.0-beta.1

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.
@@ -1197,6 +1197,10 @@ interface BlockRequirements {
1197
1197
  coreAddress: string;
1198
1198
  };
1199
1199
  }
1200
+ interface UnlMapConfig {
1201
+ apiKey: string;
1202
+ vpmId: string;
1203
+ }
1200
1204
  /**
1201
1205
  * UDID outcome values matching EvaluationStatus enum
1202
1206
  * PENDING = 0, APPROVED = 1, REJECTED = 2, DISPUTED = 3, INVALIDATED = 4, UNRECOGNIZED = -1
@@ -2216,6 +2220,7 @@ interface BlocknoteContextValue {
2216
2220
  editor?: IxoEditorType;
2217
2221
  handlers?: BlocknoteHandlers;
2218
2222
  blockRequirements?: BlockRequirements;
2223
+ mapConfig?: UnlMapConfig;
2219
2224
  editable?: boolean;
2220
2225
  docType: DocType;
2221
2226
  sharedProposals: SharedProposalData;
@@ -2241,6 +2246,7 @@ declare const BlocknoteProvider: React.FC<{
2241
2246
  getDynamicListData?: DynamicListDataProvider;
2242
2247
  dynamicListPanelRenderer?: DynamicListPanelRenderer;
2243
2248
  domainCardRenderer?: DomainCardRenderer;
2249
+ mapConfig?: UnlMapConfig;
2244
2250
  }>;
2245
2251
  declare const useBlocknoteContext: () => BlocknoteContextValue;
2246
2252
  declare const useBlocknoteHandlers: () => BlocknoteHandlers;
@@ -2458,6 +2464,9 @@ declare const ApiRequestBlockSpec: {
2458
2464
  readonly assignment: {
2459
2465
  readonly default: string;
2460
2466
  };
2467
+ readonly commitment: {
2468
+ readonly default: string;
2469
+ };
2461
2470
  readonly skill: {
2462
2471
  readonly default: "";
2463
2472
  };
@@ -2512,6 +2521,9 @@ declare const ApiRequestBlockSpec: {
2512
2521
  readonly assignment: {
2513
2522
  readonly default: string;
2514
2523
  };
2524
+ readonly commitment: {
2525
+ readonly default: string;
2526
+ };
2515
2527
  readonly skill: {
2516
2528
  readonly default: "";
2517
2529
  };
@@ -2901,6 +2913,9 @@ declare const blockSpecs: {
2901
2913
  readonly assignment: {
2902
2914
  readonly default: string;
2903
2915
  };
2916
+ readonly commitment: {
2917
+ readonly default: string;
2918
+ };
2904
2919
  readonly skill: {
2905
2920
  readonly default: "";
2906
2921
  };
@@ -2955,6 +2970,9 @@ declare const blockSpecs: {
2955
2970
  readonly assignment: {
2956
2971
  readonly default: string;
2957
2972
  };
2973
+ readonly commitment: {
2974
+ readonly default: string;
2975
+ };
2958
2976
  readonly skill: {
2959
2977
  readonly default: "";
2960
2978
  };
@@ -3151,6 +3169,9 @@ declare const blockSpecs: {
3151
3169
  readonly assignment: {
3152
3170
  readonly default: string;
3153
3171
  };
3172
+ readonly commitment: {
3173
+ readonly default: string;
3174
+ };
3154
3175
  readonly skill: {
3155
3176
  readonly default: "";
3156
3177
  };
@@ -3211,6 +3232,9 @@ declare const blockSpecs: {
3211
3232
  readonly assignment: {
3212
3233
  readonly default: string;
3213
3234
  };
3235
+ readonly commitment: {
3236
+ readonly default: string;
3237
+ };
3214
3238
  readonly skill: {
3215
3239
  readonly default: "";
3216
3240
  };
@@ -3270,6 +3294,9 @@ declare const blockSpecs: {
3270
3294
  readonly assignment: {
3271
3295
  readonly default: string;
3272
3296
  };
3297
+ readonly commitment: {
3298
+ readonly default: string;
3299
+ };
3273
3300
  readonly skill: {
3274
3301
  readonly default: "";
3275
3302
  };
@@ -3327,6 +3354,9 @@ declare const blockSpecs: {
3327
3354
  readonly assignment: {
3328
3355
  readonly default: string;
3329
3356
  };
3357
+ readonly commitment: {
3358
+ readonly default: string;
3359
+ };
3330
3360
  readonly skill: {
3331
3361
  readonly default: "";
3332
3362
  };
@@ -3368,6 +3398,9 @@ declare const blockSpecs: {
3368
3398
  readonly assignment: {
3369
3399
  readonly default: string;
3370
3400
  };
3401
+ readonly commitment: {
3402
+ readonly default: string;
3403
+ };
3371
3404
  readonly skill: {
3372
3405
  readonly default: "";
3373
3406
  };
@@ -3407,6 +3440,9 @@ declare const blockSpecs: {
3407
3440
  readonly assignment: {
3408
3441
  readonly default: string;
3409
3442
  };
3443
+ readonly commitment: {
3444
+ readonly default: string;
3445
+ };
3410
3446
  readonly skill: {
3411
3447
  readonly default: "";
3412
3448
  };
@@ -3904,6 +3940,9 @@ declare const blockSpecs: {
3904
3940
  readonly assignment: {
3905
3941
  readonly default: string;
3906
3942
  };
3943
+ readonly commitment: {
3944
+ readonly default: string;
3945
+ };
3907
3946
  readonly skill: {
3908
3947
  readonly default: "";
3909
3948
  };
@@ -3955,6 +3994,9 @@ declare const blockSpecs: {
3955
3994
  readonly assignment: {
3956
3995
  readonly default: string;
3957
3996
  };
3997
+ readonly commitment: {
3998
+ readonly default: string;
3999
+ };
3958
4000
  readonly skill: {
3959
4001
  readonly default: "";
3960
4002
  };
@@ -4166,6 +4208,166 @@ declare const blockSpecs: {
4166
4208
  readonly content: "none";
4167
4209
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
4168
4210
  };
4211
+ action: {
4212
+ config: {
4213
+ readonly type: "action";
4214
+ readonly propSchema: {
4215
+ readonly title: {
4216
+ readonly default: "";
4217
+ };
4218
+ readonly description: {
4219
+ readonly default: "";
4220
+ };
4221
+ readonly icon: {
4222
+ readonly default: "bolt";
4223
+ };
4224
+ readonly actionType: {
4225
+ readonly default: "";
4226
+ };
4227
+ readonly inputs: {
4228
+ readonly default: "{}";
4229
+ };
4230
+ readonly requiresConfirmation: {
4231
+ readonly default: "";
4232
+ };
4233
+ readonly conditions: {
4234
+ readonly default: "";
4235
+ };
4236
+ readonly parentCapability: {
4237
+ readonly default: "";
4238
+ };
4239
+ readonly authorisedActors: {
4240
+ readonly default: "";
4241
+ };
4242
+ readonly activationUpstreamNodeId: {
4243
+ readonly default: "";
4244
+ };
4245
+ readonly activationRequiredStatus: {
4246
+ readonly default: "";
4247
+ };
4248
+ readonly activationRequireAuthorisedActor: {
4249
+ readonly default: false;
4250
+ };
4251
+ readonly ttlAbsoluteDueDate: {
4252
+ readonly default: "";
4253
+ };
4254
+ readonly ttlFromEnablement: {
4255
+ readonly default: "";
4256
+ };
4257
+ readonly ttlFromCommitment: {
4258
+ readonly default: "";
4259
+ };
4260
+ readonly assignment: {
4261
+ readonly default: string;
4262
+ };
4263
+ readonly commitment: {
4264
+ readonly default: string;
4265
+ };
4266
+ };
4267
+ readonly content: "inline";
4268
+ };
4269
+ implementation: _blocknote_core.TiptapBlockImplementation<{
4270
+ readonly type: "action";
4271
+ readonly propSchema: {
4272
+ readonly title: {
4273
+ readonly default: "";
4274
+ };
4275
+ readonly description: {
4276
+ readonly default: "";
4277
+ };
4278
+ readonly icon: {
4279
+ readonly default: "bolt";
4280
+ };
4281
+ readonly actionType: {
4282
+ readonly default: "";
4283
+ };
4284
+ readonly inputs: {
4285
+ readonly default: "{}";
4286
+ };
4287
+ readonly requiresConfirmation: {
4288
+ readonly default: "";
4289
+ };
4290
+ readonly conditions: {
4291
+ readonly default: "";
4292
+ };
4293
+ readonly parentCapability: {
4294
+ readonly default: "";
4295
+ };
4296
+ readonly authorisedActors: {
4297
+ readonly default: "";
4298
+ };
4299
+ readonly activationUpstreamNodeId: {
4300
+ readonly default: "";
4301
+ };
4302
+ readonly activationRequiredStatus: {
4303
+ readonly default: "";
4304
+ };
4305
+ readonly activationRequireAuthorisedActor: {
4306
+ readonly default: false;
4307
+ };
4308
+ readonly ttlAbsoluteDueDate: {
4309
+ readonly default: "";
4310
+ };
4311
+ readonly ttlFromEnablement: {
4312
+ readonly default: "";
4313
+ };
4314
+ readonly ttlFromCommitment: {
4315
+ readonly default: "";
4316
+ };
4317
+ readonly assignment: {
4318
+ readonly default: string;
4319
+ };
4320
+ readonly commitment: {
4321
+ readonly default: string;
4322
+ };
4323
+ };
4324
+ readonly content: "inline";
4325
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
4326
+ };
4327
+ location: {
4328
+ config: {
4329
+ readonly type: "location";
4330
+ readonly propSchema: {
4331
+ readonly title: {
4332
+ readonly default: "";
4333
+ };
4334
+ readonly description: {
4335
+ readonly default: "";
4336
+ };
4337
+ readonly latitude: {
4338
+ readonly default: "";
4339
+ };
4340
+ readonly longitude: {
4341
+ readonly default: "";
4342
+ };
4343
+ readonly skill: {
4344
+ readonly default: "";
4345
+ };
4346
+ };
4347
+ readonly content: "none";
4348
+ };
4349
+ implementation: _blocknote_core.TiptapBlockImplementation<{
4350
+ readonly type: "location";
4351
+ readonly propSchema: {
4352
+ readonly title: {
4353
+ readonly default: "";
4354
+ };
4355
+ readonly description: {
4356
+ readonly default: "";
4357
+ };
4358
+ readonly latitude: {
4359
+ readonly default: "";
4360
+ };
4361
+ readonly longitude: {
4362
+ readonly default: "";
4363
+ };
4364
+ readonly skill: {
4365
+ readonly default: "";
4366
+ };
4367
+ };
4368
+ readonly content: "none";
4369
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
4370
+ };
4169
4371
  };
4170
4372
  declare const getExtraSlashMenuItems: (editor: any) => {
4171
4373
  title: string;
@@ -4256,7 +4458,43 @@ interface FlowNodeAuthzExtension {
4256
4458
  linkedClaim?: LinkedClaim;
4257
4459
  activationCondition?: ActivationCondition;
4258
4460
  }
4461
+ type NodeState = 'idle' | 'running' | 'completed' | 'failed' | 'cancelled';
4259
4462
  interface FlowNodeRuntimeState {
4463
+ state?: NodeState;
4464
+ output?: Record<string, any>;
4465
+ executedByDid?: DID;
4466
+ executedAt?: number;
4467
+ invocations?: string[];
4468
+ lastInvocationCid?: string;
4469
+ assignments?: Array<{
4470
+ actorDid: DID;
4471
+ assignedByDid?: DID;
4472
+ at: number;
4473
+ status: 'assigned' | 'accepted' | 'declined';
4474
+ }>;
4475
+ commitments?: Array<{
4476
+ actorDid: DID;
4477
+ at: number;
4478
+ expiresAt?: number;
4479
+ }>;
4480
+ proposals?: Array<{
4481
+ id: string;
4482
+ proposedByDid: DID;
4483
+ proposedAt: number;
4484
+ mode: 'inputs_patch' | 'output_patch';
4485
+ patch: any;
4486
+ rationale?: string;
4487
+ status: 'open' | 'accepted' | 'rejected';
4488
+ decidedByDid?: DID;
4489
+ decidedAt?: number;
4490
+ acceptanceInvocationCid?: string;
4491
+ }>;
4492
+ error?: {
4493
+ message: string;
4494
+ code?: string;
4495
+ at: number;
4496
+ data?: any;
4497
+ };
4260
4498
  claimId?: string;
4261
4499
  submittedByDid?: DID;
4262
4500
  evaluationStatus?: EvaluationStatus;
@@ -4892,6 +5130,7 @@ interface IxoEditorProps {
4892
5130
  mantineTheme?: any;
4893
5131
  handlers?: BlocknoteHandlers;
4894
5132
  blockRequirements?: BlockRequirements;
5133
+ mapConfig?: UnlMapConfig;
4895
5134
  isPanelVisible?: boolean;
4896
5135
  coverImageUrl?: string;
4897
5136
  logoUrl?: string;
@@ -4915,7 +5154,7 @@ interface IxoEditorProps {
4915
5154
  /**
4916
5155
  * IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
4917
5156
  */
4918
- 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, }: IxoEditorProps): React.ReactElement | null;
5157
+ 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, }: IxoEditorProps): React.ReactElement | null;
4919
5158
 
4920
5159
  interface CoverImageProps {
4921
5160
  coverImageUrl?: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FlowNode, a as FlowNodeAuthzExtension, b as FlowNodeRuntimeState, I as IxoEditorType, S as SignedCapability, E as EvaluationStatus, C as Capability, c as CapabilityValidationResult } from './graphql-client-CQyRCD1j.mjs';
2
- export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, W as BlocknoteHandlers, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, D as DelegationGrant, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from './graphql-client-CQyRCD1j.mjs';
1
+ import { F as FlowNode, a as FlowNodeAuthzExtension, b as FlowNodeRuntimeState, I as IxoEditorType, S as SignedCapability, E as EvaluationStatus, C as Capability, c as CapabilityValidationResult } from './graphql-client-B5TxlMUU.mjs';
2
+ export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, W as BlocknoteHandlers, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, D as DelegationGrant, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from './graphql-client-B5TxlMUU.mjs';
3
3
  import { Map } from 'yjs';
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
@@ -34,7 +34,7 @@ import {
34
34
  useCreateCollaborativeIxoEditor,
35
35
  useCreateIxoEditor,
36
36
  validateCapabilityChain
37
- } from "./chunk-JSVV5AQB.mjs";
37
+ } from "./chunk-3RGK4GAV.mjs";
38
38
 
39
39
  // src/index.ts
40
40
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -1,5 +1,5 @@
1
- import { ak as IxoBlockProps, W as BlocknoteHandlers } from '../graphql-client-CQyRCD1j.mjs';
2
- export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, av as DomainCardData, au as DomainCardRenderer, am as DropPosition, ar as DynamicListData, as as DynamicListDataProvider, at as DynamicListPanelRenderer, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, al as ExternalDropZone, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, I as IxoEditorType, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, an as PageHeader, ap as PageHeaderMenuItem, ao as PageHeaderProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, aq as VisualizationRenderer, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from '../graphql-client-CQyRCD1j.mjs';
1
+ import { ak as IxoBlockProps, I as IxoEditorType, b as FlowNodeRuntimeState, W as BlocknoteHandlers } from '../graphql-client-B5TxlMUU.mjs';
2
+ export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, av as DomainCardData, au as DomainCardRenderer, am as DropPosition, ar as DynamicListData, as as DynamicListDataProvider, at as DynamicListPanelRenderer, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, al as ExternalDropZone, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, an as PageHeader, ap as PageHeaderMenuItem, ao as PageHeaderProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, aq as VisualizationRenderer, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from '../graphql-client-B5TxlMUU.mjs';
3
3
  import React$1, { PropsWithChildren } from 'react';
4
4
  import * as zustand from 'zustand';
5
5
  import * as _blocknote_core from '@blocknote/core';
@@ -165,6 +165,16 @@ declare const usePanel: (panelId: string, content: React.ReactNode) => {
165
165
  close: () => void;
166
166
  };
167
167
 
168
+ /**
169
+ * Reactive hook that subscribes to a single node's runtime state in yDoc.runtime.
170
+ *
171
+ * Usage:
172
+ * const [runtime, updateRuntime] = useNodeRuntime(editor, block.id);
173
+ * // runtime.state, runtime.output, runtime.error, etc.
174
+ * // updateRuntime({ state: 'completed', output: { ... } });
175
+ */
176
+ declare function useNodeRuntime(editor: IxoEditorType, nodeId: string): [FlowNodeRuntimeState, (updates: Partial<FlowNodeRuntimeState>) => void];
177
+
168
178
  type CollapseEvent = 'collapse' | 'expand' | 'toggle';
169
179
  type Listener = (event: CollapseEvent) => void;
170
180
  interface ListBlocksUIContextValue {
@@ -349,4 +359,4 @@ interface HookedActionsTabProps {
349
359
 
350
360
  declare const HookedActionsTab: React$1.FC<HookedActionsTabProps>;
351
361
 
352
- export { BaseIconPicker, type BlockActionDefinition, BlocknoteHandlers, type CollapseEvent, type ColumnPosition, type DataSource, type DynamicListAction, type DynamicListBlockProps, DynamicListBlockSpec, type DynamicListColumn, type DynamicListPanelConfig, type HookedActionInstanceConfig, type HookedActionType, type HookedActionsConfig, HookedActionsTab, type ListBlocksUIContextValue, type Listener, type PayloadField, getAllHookedActionTypes, getBlockActions, getHookedActionType, initializeHookedActions, registerBlockActions, registerBuiltInActionTypes, registerHookedActionType, useHookedActions, useListBlocksUI, useListBlocksUIStore, usePanel, usePanelStore };
362
+ export { BaseIconPicker, type BlockActionDefinition, BlocknoteHandlers, type CollapseEvent, type ColumnPosition, type DataSource, type DynamicListAction, type DynamicListBlockProps, DynamicListBlockSpec, type DynamicListColumn, type DynamicListPanelConfig, type HookedActionInstanceConfig, type HookedActionType, type HookedActionsConfig, HookedActionsTab, IxoEditorType, type ListBlocksUIContextValue, type Listener, type PayloadField, getAllHookedActionTypes, getBlockActions, getHookedActionType, initializeHookedActions, registerBlockActions, registerBuiltInActionTypes, registerHookedActionType, useHookedActions, useListBlocksUI, useListBlocksUIStore, useNodeRuntime, usePanel, usePanelStore };
@@ -39,9 +39,10 @@ import {
39
39
  useHookedActions,
40
40
  useListBlocksUI,
41
41
  useListBlocksUIStore,
42
+ useNodeRuntime,
42
43
  usePanel,
43
44
  usePanelStore
44
- } from "../chunk-JSVV5AQB.mjs";
45
+ } from "../chunk-3RGK4GAV.mjs";
45
46
  export {
46
47
  ApiRequestBlockSpec,
47
48
  AuthorizationTab,
@@ -83,6 +84,7 @@ export {
83
84
  useHookedActions,
84
85
  useListBlocksUI,
85
86
  useListBlocksUIStore,
87
+ useNodeRuntime,
86
88
  usePanel,
87
89
  usePanelStore
88
90
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "2.40.0",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",