@ixo/editor 2.43.0 → 3.0.0-beta.10

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.
@@ -1521,7 +1521,7 @@ interface BlocknoteHandlers {
1521
1521
  adminAddress: string;
1522
1522
  status?: number;
1523
1523
  verificationProof: string;
1524
- amount?: Coin;
1524
+ amount?: Coin | Coin[];
1525
1525
  }) => Promise<void>;
1526
1526
  submitBid: (params: SubmitBidParams) => Promise<BidResponse>;
1527
1527
  queryBids: (params: QueryBidsParams) => Promise<QueryBidsResponse>;
@@ -1970,16 +1970,17 @@ interface BlocknoteHandlers {
1970
1970
  transactionHash: string;
1971
1971
  }>;
1972
1972
  /**
1973
- * Navigate to a flow link URL
1974
- * @param url - HTTP URL of the target flow or page
1973
+ * Navigate to another flow document or workspace page
1974
+ * @param docRoomId - Matrix room ID of the target flow document or workspace page
1975
+ * @param isWorkspaceLink - Optional flag to indicate if this is a workspace link
1975
1976
  */
1976
- navigateToFlow?: (url: string) => void;
1977
+ navigateToFlow?: (docRoomId: string, isWorkspaceLink?: boolean) => void;
1977
1978
  /**
1978
1979
  * Get the status of a flow document
1979
- * @param url - HTTP URL of the flow document
1980
+ * @param docRoomId - Matrix room ID of the flow document
1980
1981
  * @returns Flow status with optional completion timestamp
1981
1982
  */
1982
- getFlowStatus?: (url: string) => Promise<{
1983
+ getFlowStatus?: (docRoomId: string) => Promise<{
1983
1984
  status: 'not_started' | 'in_progress' | 'completed';
1984
1985
  completedAt?: string;
1985
1986
  }>;
@@ -2463,6 +2464,9 @@ declare const ApiRequestBlockSpec: {
2463
2464
  readonly assignment: {
2464
2465
  readonly default: string;
2465
2466
  };
2467
+ readonly commitment: {
2468
+ readonly default: string;
2469
+ };
2466
2470
  readonly skill: {
2467
2471
  readonly default: "";
2468
2472
  };
@@ -2517,6 +2521,9 @@ declare const ApiRequestBlockSpec: {
2517
2521
  readonly assignment: {
2518
2522
  readonly default: string;
2519
2523
  };
2524
+ readonly commitment: {
2525
+ readonly default: string;
2526
+ };
2520
2527
  readonly skill: {
2521
2528
  readonly default: "";
2522
2529
  };
@@ -2906,6 +2913,9 @@ declare const blockSpecs: {
2906
2913
  readonly assignment: {
2907
2914
  readonly default: string;
2908
2915
  };
2916
+ readonly commitment: {
2917
+ readonly default: string;
2918
+ };
2909
2919
  readonly skill: {
2910
2920
  readonly default: "";
2911
2921
  };
@@ -2960,6 +2970,9 @@ declare const blockSpecs: {
2960
2970
  readonly assignment: {
2961
2971
  readonly default: string;
2962
2972
  };
2973
+ readonly commitment: {
2974
+ readonly default: string;
2975
+ };
2963
2976
  readonly skill: {
2964
2977
  readonly default: "";
2965
2978
  };
@@ -3156,6 +3169,9 @@ declare const blockSpecs: {
3156
3169
  readonly assignment: {
3157
3170
  readonly default: string;
3158
3171
  };
3172
+ readonly commitment: {
3173
+ readonly default: string;
3174
+ };
3159
3175
  readonly skill: {
3160
3176
  readonly default: "";
3161
3177
  };
@@ -3216,6 +3232,9 @@ declare const blockSpecs: {
3216
3232
  readonly assignment: {
3217
3233
  readonly default: string;
3218
3234
  };
3235
+ readonly commitment: {
3236
+ readonly default: string;
3237
+ };
3219
3238
  readonly skill: {
3220
3239
  readonly default: "";
3221
3240
  };
@@ -3275,6 +3294,9 @@ declare const blockSpecs: {
3275
3294
  readonly assignment: {
3276
3295
  readonly default: string;
3277
3296
  };
3297
+ readonly commitment: {
3298
+ readonly default: string;
3299
+ };
3278
3300
  readonly skill: {
3279
3301
  readonly default: "";
3280
3302
  };
@@ -3332,6 +3354,9 @@ declare const blockSpecs: {
3332
3354
  readonly assignment: {
3333
3355
  readonly default: string;
3334
3356
  };
3357
+ readonly commitment: {
3358
+ readonly default: string;
3359
+ };
3335
3360
  readonly skill: {
3336
3361
  readonly default: "";
3337
3362
  };
@@ -3373,6 +3398,9 @@ declare const blockSpecs: {
3373
3398
  readonly assignment: {
3374
3399
  readonly default: string;
3375
3400
  };
3401
+ readonly commitment: {
3402
+ readonly default: string;
3403
+ };
3376
3404
  readonly skill: {
3377
3405
  readonly default: "";
3378
3406
  };
@@ -3412,6 +3440,9 @@ declare const blockSpecs: {
3412
3440
  readonly assignment: {
3413
3441
  readonly default: string;
3414
3442
  };
3443
+ readonly commitment: {
3444
+ readonly default: string;
3445
+ };
3415
3446
  readonly skill: {
3416
3447
  readonly default: "";
3417
3448
  };
@@ -3909,6 +3940,9 @@ declare const blockSpecs: {
3909
3940
  readonly assignment: {
3910
3941
  readonly default: string;
3911
3942
  };
3943
+ readonly commitment: {
3944
+ readonly default: string;
3945
+ };
3912
3946
  readonly skill: {
3913
3947
  readonly default: "";
3914
3948
  };
@@ -3960,6 +3994,9 @@ declare const blockSpecs: {
3960
3994
  readonly assignment: {
3961
3995
  readonly default: string;
3962
3996
  };
3997
+ readonly commitment: {
3998
+ readonly default: string;
3999
+ };
3963
4000
  readonly skill: {
3964
4001
  readonly default: "";
3965
4002
  };
@@ -4171,6 +4208,128 @@ declare const blockSpecs: {
4171
4208
  readonly content: "none";
4172
4209
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
4173
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 skill: {
4234
+ readonly default: "";
4235
+ };
4236
+ readonly conditions: {
4237
+ readonly default: "";
4238
+ };
4239
+ readonly parentCapability: {
4240
+ readonly default: "";
4241
+ };
4242
+ readonly authorisedActors: {
4243
+ readonly default: "";
4244
+ };
4245
+ readonly activationUpstreamNodeId: {
4246
+ readonly default: "";
4247
+ };
4248
+ readonly activationRequiredStatus: {
4249
+ readonly default: "";
4250
+ };
4251
+ readonly activationRequireAuthorisedActor: {
4252
+ readonly default: false;
4253
+ };
4254
+ readonly ttlAbsoluteDueDate: {
4255
+ readonly default: "";
4256
+ };
4257
+ readonly ttlFromEnablement: {
4258
+ readonly default: "";
4259
+ };
4260
+ readonly ttlFromCommitment: {
4261
+ readonly default: "";
4262
+ };
4263
+ readonly assignment: {
4264
+ readonly default: string;
4265
+ };
4266
+ readonly commitment: {
4267
+ readonly default: string;
4268
+ };
4269
+ };
4270
+ readonly content: "inline";
4271
+ };
4272
+ implementation: _blocknote_core.TiptapBlockImplementation<{
4273
+ readonly type: "action";
4274
+ readonly propSchema: {
4275
+ readonly title: {
4276
+ readonly default: "";
4277
+ };
4278
+ readonly description: {
4279
+ readonly default: "";
4280
+ };
4281
+ readonly icon: {
4282
+ readonly default: "bolt";
4283
+ };
4284
+ readonly actionType: {
4285
+ readonly default: "";
4286
+ };
4287
+ readonly inputs: {
4288
+ readonly default: "{}";
4289
+ };
4290
+ readonly requiresConfirmation: {
4291
+ readonly default: "";
4292
+ };
4293
+ readonly skill: {
4294
+ readonly default: "";
4295
+ };
4296
+ readonly conditions: {
4297
+ readonly default: "";
4298
+ };
4299
+ readonly parentCapability: {
4300
+ readonly default: "";
4301
+ };
4302
+ readonly authorisedActors: {
4303
+ readonly default: "";
4304
+ };
4305
+ readonly activationUpstreamNodeId: {
4306
+ readonly default: "";
4307
+ };
4308
+ readonly activationRequiredStatus: {
4309
+ readonly default: "";
4310
+ };
4311
+ readonly activationRequireAuthorisedActor: {
4312
+ readonly default: false;
4313
+ };
4314
+ readonly ttlAbsoluteDueDate: {
4315
+ readonly default: "";
4316
+ };
4317
+ readonly ttlFromEnablement: {
4318
+ readonly default: "";
4319
+ };
4320
+ readonly ttlFromCommitment: {
4321
+ readonly default: "";
4322
+ };
4323
+ readonly assignment: {
4324
+ readonly default: string;
4325
+ };
4326
+ readonly commitment: {
4327
+ readonly default: string;
4328
+ };
4329
+ };
4330
+ readonly content: "inline";
4331
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
4332
+ };
4174
4333
  location: {
4175
4334
  config: {
4176
4335
  readonly type: "location";
@@ -4305,7 +4464,43 @@ interface FlowNodeAuthzExtension {
4305
4464
  linkedClaim?: LinkedClaim;
4306
4465
  activationCondition?: ActivationCondition;
4307
4466
  }
4467
+ type NodeState = 'idle' | 'running' | 'completed' | 'failed' | 'cancelled';
4308
4468
  interface FlowNodeRuntimeState {
4469
+ state?: NodeState;
4470
+ output?: Record<string, any>;
4471
+ executedByDid?: DID;
4472
+ executedAt?: number;
4473
+ invocations?: string[];
4474
+ lastInvocationCid?: string;
4475
+ assignments?: Array<{
4476
+ actorDid: DID;
4477
+ assignedByDid?: DID;
4478
+ at: number;
4479
+ status: 'assigned' | 'accepted' | 'declined';
4480
+ }>;
4481
+ commitments?: Array<{
4482
+ actorDid: DID;
4483
+ at: number;
4484
+ expiresAt?: number;
4485
+ }>;
4486
+ proposals?: Array<{
4487
+ id: string;
4488
+ proposedByDid: DID;
4489
+ proposedAt: number;
4490
+ mode: 'inputs_patch' | 'output_patch';
4491
+ patch: any;
4492
+ rationale?: string;
4493
+ status: 'open' | 'accepted' | 'rejected';
4494
+ decidedByDid?: DID;
4495
+ decidedAt?: number;
4496
+ acceptanceInvocationCid?: string;
4497
+ }>;
4498
+ error?: {
4499
+ message: string;
4500
+ code?: string;
4501
+ at: number;
4502
+ data?: any;
4503
+ };
4309
4504
  claimId?: string;
4310
4505
  submittedByDid?: DID;
4311
4506
  evaluationStatus?: EvaluationStatus;
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-BOzQYZXi.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-BOzQYZXi.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-C82HQLeC.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-C82HQLeC.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-Y3OLLAUI.mjs";
37
+ } from "./chunk-7W62T2XM.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-BOzQYZXi.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-BOzQYZXi.mjs';
1
+ import { ak as IxoBlockProps, I as IxoEditorType, b as FlowNodeRuntimeState, W as BlocknoteHandlers } from '../graphql-client-C82HQLeC.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-C82HQLeC.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-Y3OLLAUI.mjs";
45
+ } from "../chunk-7W62T2XM.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.43.0",
3
+ "version": "3.0.0-beta.10",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/style-core.css CHANGED
@@ -45,7 +45,7 @@
45
45
  --bn-colors-tooltip-background: #f0f0f0;
46
46
  --bn-colors-tooltip-text: #1a1a1a;
47
47
  --bn-colors-hovered-background: #2a2a2a;
48
- --bn-colors-selected-background: #3a3a3a;
48
+ --bn-colors-selected-background: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent);
49
49
  --bn-colors-border: #3a3a3a;
50
50
  --bn-colors-side-menu: #999999;
51
51
  --bn-colors-highlight-colors-blue: #60a5fa;
@@ -76,6 +76,17 @@
76
76
  min-height: 1.5em;
77
77
  }
78
78
 
79
+ /* Disable text selection on custom (non-editable) blocks.
80
+ Standard text blocks re-enable it via .bn-inline-content below. */
81
+ .ixo-editor div.bn-block-content {
82
+ user-select: none;
83
+ }
84
+
85
+ /* Re-enable text selection inside standard editable block content */
86
+ .ixo-editor .bn-inline-content {
87
+ user-select: text;
88
+ }
89
+
79
90
  /* Heading styles */
80
91
  .ixo-editor h1.bn-inline-content {
81
92
  font-size: 2em;
@@ -208,6 +219,11 @@
208
219
  /* Selection styles */
209
220
  .ixo-editor ::selection {
210
221
  background-color: var(--bn-colors-selected-background);
222
+ color: var(--bn-colors-editor-text);
223
+ }
224
+
225
+ .ixo-editor--theme-dark ::selection {
226
+ background-color: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent) !important;
211
227
  }
212
228
 
213
229
  /* Scrollbar styles */
package/style-mantine.css CHANGED
@@ -142,7 +142,7 @@
142
142
  --bn-colors-tooltip-background: #f0f0f0;
143
143
  --bn-colors-tooltip-text: #1a1a1a;
144
144
  --bn-colors-hovered-background: #2a2a2a;
145
- --bn-colors-selected-background: #3a3a3a;
145
+ --bn-colors-selected-background: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent);
146
146
  --bn-colors-border: #3a3a3a;
147
147
  --bn-colors-side-menu: #999999;
148
148
  --bn-colors-highlight-colors-blue: #60a5fa;
@@ -173,6 +173,17 @@
173
173
  min-height: 1.5em;
174
174
  }
175
175
 
176
+ /* Disable text selection on custom (non-editable) blocks.
177
+ Standard text blocks re-enable it via .bn-inline-content below. */
178
+ .ixo-editor div.bn-block-content {
179
+ user-select: none;
180
+ }
181
+
182
+ /* Re-enable text selection inside standard editable block content */
183
+ .ixo-editor .bn-inline-content {
184
+ user-select: text;
185
+ }
186
+
176
187
  /* Heading styles */
177
188
  .ixo-editor h1.bn-inline-content {
178
189
  font-size: 2em;
@@ -305,6 +316,11 @@
305
316
  /* Selection styles */
306
317
  .ixo-editor ::selection {
307
318
  background-color: var(--bn-colors-selected-background);
319
+ color: var(--bn-colors-editor-text);
320
+ }
321
+
322
+ .ixo-editor--theme-dark ::selection {
323
+ background-color: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent) !important;
308
324
  }
309
325
 
310
326
  /* Scrollbar styles */
package/style.css CHANGED
@@ -142,7 +142,7 @@
142
142
  --bn-colors-tooltip-background: #f0f0f0;
143
143
  --bn-colors-tooltip-text: #1a1a1a;
144
144
  --bn-colors-hovered-background: #2a2a2a;
145
- --bn-colors-selected-background: #3a3a3a;
145
+ --bn-colors-selected-background: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent);
146
146
  --bn-colors-border: #3a3a3a;
147
147
  --bn-colors-side-menu: #999999;
148
148
  --bn-colors-highlight-colors-blue: #60a5fa;
@@ -173,6 +173,17 @@
173
173
  min-height: 1.5em;
174
174
  }
175
175
 
176
+ /* Disable text selection on custom (non-editable) blocks.
177
+ Standard text blocks re-enable it via .bn-inline-content below. */
178
+ .ixo-editor div.bn-block-content {
179
+ user-select: none;
180
+ }
181
+
182
+ /* Re-enable text selection inside standard editable block content */
183
+ .ixo-editor .bn-inline-content {
184
+ user-select: text;
185
+ }
186
+
176
187
  /* Heading styles */
177
188
  .ixo-editor h1.bn-inline-content {
178
189
  font-size: 2em;
@@ -305,6 +316,11 @@
305
316
  /* Selection styles */
306
317
  .ixo-editor ::selection {
307
318
  background-color: var(--bn-colors-selected-background);
319
+ color: var(--bn-colors-editor-text);
320
+ }
321
+
322
+ .ixo-editor--theme-dark ::selection {
323
+ background-color: color-mix(in srgb, var(--mantine-color-neutralColor-7) 30%, transparent) !important;
308
324
  }
309
325
 
310
326
  /* Scrollbar styles */