@ixo/editor 2.28.0 → 2.30.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.
@@ -29,6 +29,15 @@ declare const CheckboxBlockSpec: {
29
29
  readonly conditions: {
30
30
  readonly default: "";
31
31
  };
32
+ readonly ttlAbsoluteDueDate: {
33
+ readonly default: "";
34
+ };
35
+ readonly ttlFromEnablement: {
36
+ readonly default: "";
37
+ };
38
+ readonly ttlFromCommitment: {
39
+ readonly default: "";
40
+ };
32
41
  };
33
42
  readonly content: "inline";
34
43
  };
@@ -56,6 +65,15 @@ declare const CheckboxBlockSpec: {
56
65
  readonly conditions: {
57
66
  readonly default: "";
58
67
  };
68
+ readonly ttlAbsoluteDueDate: {
69
+ readonly default: "";
70
+ };
71
+ readonly ttlFromEnablement: {
72
+ readonly default: "";
73
+ };
74
+ readonly ttlFromCommitment: {
75
+ readonly default: "";
76
+ };
59
77
  };
60
78
  readonly content: "inline";
61
79
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -1338,6 +1356,13 @@ interface NotificationResponse {
1338
1356
  status: 'accepted' | 'rejected';
1339
1357
  timestamp: string;
1340
1358
  }
1359
+ interface WorkspacePage {
1360
+ id: string;
1361
+ type: string;
1362
+ description: string;
1363
+ serviceEndpoint: string;
1364
+ mediaType: string;
1365
+ }
1341
1366
  interface BlocknoteHandlers {
1342
1367
  getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
1343
1368
  getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
@@ -1926,10 +1951,11 @@ interface BlocknoteHandlers {
1926
1951
  transactionHash: string;
1927
1952
  }>;
1928
1953
  /**
1929
- * Navigate to another flow document
1930
- * @param docRoomId - Matrix room ID of the target flow document
1954
+ * Navigate to another flow document or workspace page
1955
+ * @param docRoomId - Matrix room ID of the target flow document or workspace page
1956
+ * @param isWorkspaceLink - Optional flag to indicate if this is a workspace link
1931
1957
  */
1932
- navigateToFlow?: (docRoomId: string) => void;
1958
+ navigateToFlow?: (docRoomId: string, isWorkspaceLink?: boolean) => void;
1933
1959
  /**
1934
1960
  * Get the status of a flow document
1935
1961
  * @param docRoomId - Matrix room ID of the flow document
@@ -1939,6 +1965,12 @@ interface BlocknoteHandlers {
1939
1965
  status: 'not_started' | 'in_progress' | 'completed';
1940
1966
  completedAt?: string;
1941
1967
  }>;
1968
+ /**
1969
+ * Get workspace pages from protocol deed entity.
1970
+ * The host app automatically determines the network context.
1971
+ * @returns Array of workspace pages with type "Page" and mediaType "application/matrix"
1972
+ */
1973
+ getWorkspacePages?: () => Promise<WorkspacePage[]>;
1942
1974
  /**
1943
1975
  * Create a new signer session for handle-based signing.
1944
1976
  *
@@ -2252,6 +2284,15 @@ declare const ProposalBlockSpec: {
2252
2284
  readonly conditions: {
2253
2285
  readonly default: "";
2254
2286
  };
2287
+ readonly ttlAbsoluteDueDate: {
2288
+ readonly default: "";
2289
+ };
2290
+ readonly ttlFromEnablement: {
2291
+ readonly default: "";
2292
+ };
2293
+ readonly ttlFromCommitment: {
2294
+ readonly default: "";
2295
+ };
2255
2296
  };
2256
2297
  readonly content: "none";
2257
2298
  };
@@ -2301,6 +2342,15 @@ declare const ProposalBlockSpec: {
2301
2342
  readonly conditions: {
2302
2343
  readonly default: "";
2303
2344
  };
2345
+ readonly ttlAbsoluteDueDate: {
2346
+ readonly default: "";
2347
+ };
2348
+ readonly ttlFromEnablement: {
2349
+ readonly default: "";
2350
+ };
2351
+ readonly ttlFromCommitment: {
2352
+ readonly default: "";
2353
+ };
2304
2354
  };
2305
2355
  readonly content: "none";
2306
2356
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2345,6 +2395,15 @@ declare const ApiRequestBlockSpec: {
2345
2395
  readonly conditions: {
2346
2396
  readonly default: "";
2347
2397
  };
2398
+ readonly ttlAbsoluteDueDate: {
2399
+ readonly default: "";
2400
+ };
2401
+ readonly ttlFromEnablement: {
2402
+ readonly default: "";
2403
+ };
2404
+ readonly ttlFromCommitment: {
2405
+ readonly default: "";
2406
+ };
2348
2407
  readonly assignment: {
2349
2408
  readonly default: string;
2350
2409
  };
@@ -2387,6 +2446,15 @@ declare const ApiRequestBlockSpec: {
2387
2446
  readonly conditions: {
2388
2447
  readonly default: "";
2389
2448
  };
2449
+ readonly ttlAbsoluteDueDate: {
2450
+ readonly default: "";
2451
+ };
2452
+ readonly ttlFromEnablement: {
2453
+ readonly default: "";
2454
+ };
2455
+ readonly ttlFromCommitment: {
2456
+ readonly default: "";
2457
+ };
2390
2458
  readonly assignment: {
2391
2459
  readonly default: string;
2392
2460
  };
@@ -2428,6 +2496,15 @@ declare const blockSpecs: {
2428
2496
  readonly conditions: {
2429
2497
  readonly default: "";
2430
2498
  };
2499
+ readonly ttlAbsoluteDueDate: {
2500
+ readonly default: "";
2501
+ };
2502
+ readonly ttlFromEnablement: {
2503
+ readonly default: "";
2504
+ };
2505
+ readonly ttlFromCommitment: {
2506
+ readonly default: "";
2507
+ };
2431
2508
  };
2432
2509
  readonly content: "inline";
2433
2510
  };
@@ -2455,6 +2532,15 @@ declare const blockSpecs: {
2455
2532
  readonly conditions: {
2456
2533
  readonly default: "";
2457
2534
  };
2535
+ readonly ttlAbsoluteDueDate: {
2536
+ readonly default: "";
2537
+ };
2538
+ readonly ttlFromEnablement: {
2539
+ readonly default: "";
2540
+ };
2541
+ readonly ttlFromCommitment: {
2542
+ readonly default: "";
2543
+ };
2458
2544
  };
2459
2545
  readonly content: "inline";
2460
2546
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2606,6 +2692,15 @@ declare const blockSpecs: {
2606
2692
  readonly conditions: {
2607
2693
  readonly default: "";
2608
2694
  };
2695
+ readonly ttlAbsoluteDueDate: {
2696
+ readonly default: "";
2697
+ };
2698
+ readonly ttlFromEnablement: {
2699
+ readonly default: "";
2700
+ };
2701
+ readonly ttlFromCommitment: {
2702
+ readonly default: "";
2703
+ };
2609
2704
  };
2610
2705
  readonly content: "none";
2611
2706
  };
@@ -2655,6 +2750,15 @@ declare const blockSpecs: {
2655
2750
  readonly conditions: {
2656
2751
  readonly default: "";
2657
2752
  };
2753
+ readonly ttlAbsoluteDueDate: {
2754
+ readonly default: "";
2755
+ };
2756
+ readonly ttlFromEnablement: {
2757
+ readonly default: "";
2758
+ };
2759
+ readonly ttlFromCommitment: {
2760
+ readonly default: "";
2761
+ };
2658
2762
  };
2659
2763
  readonly content: "none";
2660
2764
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2696,6 +2800,15 @@ declare const blockSpecs: {
2696
2800
  readonly conditions: {
2697
2801
  readonly default: "";
2698
2802
  };
2803
+ readonly ttlAbsoluteDueDate: {
2804
+ readonly default: "";
2805
+ };
2806
+ readonly ttlFromEnablement: {
2807
+ readonly default: "";
2808
+ };
2809
+ readonly ttlFromCommitment: {
2810
+ readonly default: "";
2811
+ };
2699
2812
  readonly assignment: {
2700
2813
  readonly default: string;
2701
2814
  };
@@ -2738,6 +2851,15 @@ declare const blockSpecs: {
2738
2851
  readonly conditions: {
2739
2852
  readonly default: "";
2740
2853
  };
2854
+ readonly ttlAbsoluteDueDate: {
2855
+ readonly default: "";
2856
+ };
2857
+ readonly ttlFromEnablement: {
2858
+ readonly default: "";
2859
+ };
2860
+ readonly ttlFromCommitment: {
2861
+ readonly default: "";
2862
+ };
2741
2863
  readonly assignment: {
2742
2864
  readonly default: string;
2743
2865
  };
@@ -2907,6 +3029,15 @@ declare const blockSpecs: {
2907
3029
  readonly linkedClaimCollectionId: {
2908
3030
  readonly default: "";
2909
3031
  };
3032
+ readonly ttlAbsoluteDueDate: {
3033
+ readonly default: "";
3034
+ };
3035
+ readonly ttlFromEnablement: {
3036
+ readonly default: "";
3037
+ };
3038
+ readonly ttlFromCommitment: {
3039
+ readonly default: "";
3040
+ };
2910
3041
  readonly activationUpstreamNodeId: {
2911
3042
  readonly default: "";
2912
3043
  };
@@ -2955,6 +3086,15 @@ declare const blockSpecs: {
2955
3086
  readonly linkedClaimCollectionId: {
2956
3087
  readonly default: "";
2957
3088
  };
3089
+ readonly ttlAbsoluteDueDate: {
3090
+ readonly default: "";
3091
+ };
3092
+ readonly ttlFromEnablement: {
3093
+ readonly default: "";
3094
+ };
3095
+ readonly ttlFromCommitment: {
3096
+ readonly default: "";
3097
+ };
2958
3098
  readonly activationUpstreamNodeId: {
2959
3099
  readonly default: "";
2960
3100
  };
@@ -3011,6 +3151,15 @@ declare const blockSpecs: {
3011
3151
  readonly hookedActions: {
3012
3152
  readonly default: "";
3013
3153
  };
3154
+ readonly ttlAbsoluteDueDate: {
3155
+ readonly default: "";
3156
+ };
3157
+ readonly ttlFromEnablement: {
3158
+ readonly default: "";
3159
+ };
3160
+ readonly ttlFromCommitment: {
3161
+ readonly default: "";
3162
+ };
3014
3163
  readonly assignment: {
3015
3164
  readonly default: string;
3016
3165
  };
@@ -3056,6 +3205,15 @@ declare const blockSpecs: {
3056
3205
  readonly hookedActions: {
3057
3206
  readonly default: "";
3058
3207
  };
3208
+ readonly ttlAbsoluteDueDate: {
3209
+ readonly default: "";
3210
+ };
3211
+ readonly ttlFromEnablement: {
3212
+ readonly default: "";
3213
+ };
3214
+ readonly ttlFromCommitment: {
3215
+ readonly default: "";
3216
+ };
3059
3217
  readonly assignment: {
3060
3218
  readonly default: string;
3061
3219
  };
@@ -3085,6 +3243,15 @@ declare const blockSpecs: {
3085
3243
  readonly adminAddress: {
3086
3244
  readonly default: "";
3087
3245
  };
3246
+ readonly ttlAbsoluteDueDate: {
3247
+ readonly default: "";
3248
+ };
3249
+ readonly ttlFromEnablement: {
3250
+ readonly default: "";
3251
+ };
3252
+ readonly ttlFromCommitment: {
3253
+ readonly default: "";
3254
+ };
3088
3255
  readonly assignment: {
3089
3256
  readonly default: string;
3090
3257
  };
@@ -3112,6 +3279,15 @@ declare const blockSpecs: {
3112
3279
  readonly adminAddress: {
3113
3280
  readonly default: "";
3114
3281
  };
3282
+ readonly ttlAbsoluteDueDate: {
3283
+ readonly default: "";
3284
+ };
3285
+ readonly ttlFromEnablement: {
3286
+ readonly default: "";
3287
+ };
3288
+ readonly ttlFromCommitment: {
3289
+ readonly default: "";
3290
+ };
3115
3291
  readonly assignment: {
3116
3292
  readonly default: string;
3117
3293
  };
@@ -3567,6 +3743,15 @@ declare const blockSpecs: {
3567
3743
  readonly linkedEntities: {
3568
3744
  readonly default: "[]";
3569
3745
  };
3746
+ readonly ttlAbsoluteDueDate: {
3747
+ readonly default: "";
3748
+ };
3749
+ readonly ttlFromEnablement: {
3750
+ readonly default: "";
3751
+ };
3752
+ readonly ttlFromCommitment: {
3753
+ readonly default: "";
3754
+ };
3570
3755
  readonly assignment: {
3571
3756
  readonly default: string;
3572
3757
  };
@@ -3606,6 +3791,15 @@ declare const blockSpecs: {
3606
3791
  readonly linkedEntities: {
3607
3792
  readonly default: "[]";
3608
3793
  };
3794
+ readonly ttlAbsoluteDueDate: {
3795
+ readonly default: "";
3796
+ };
3797
+ readonly ttlFromEnablement: {
3798
+ readonly default: "";
3799
+ };
3800
+ readonly ttlFromCommitment: {
3801
+ readonly default: "";
3802
+ };
3609
3803
  readonly assignment: {
3610
3804
  readonly default: string;
3611
3805
  };
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-C6wosaS5.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-C6wosaS5.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-B4MaQJb7.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-B4MaQJb7.mjs';
3
3
  import { Map } from 'yjs';
4
4
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
5
5
  import 'react';
package/dist/index.mjs CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  useCreateCollaborativeIxoEditor,
35
35
  useCreateIxoEditor,
36
36
  validateCapabilityChain
37
- } from "./chunk-I6Q5SHHA.mjs";
37
+ } from "./chunk-5CXU2GBG.mjs";
38
38
  export {
39
39
  ApiRequestBlockSpec,
40
40
  AuthorizationTab,
@@ -1,5 +1,5 @@
1
- import { ak as IxoBlockProps, W as BlocknoteHandlers } from '../graphql-client-C6wosaS5.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-C6wosaS5.mjs';
1
+ import { ak as IxoBlockProps, W as BlocknoteHandlers } from '../graphql-client-B4MaQJb7.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-B4MaQJb7.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';
@@ -41,7 +41,7 @@ import {
41
41
  useListBlocksUIStore,
42
42
  usePanel,
43
43
  usePanelStore
44
- } from "../chunk-I6Q5SHHA.mjs";
44
+ } from "../chunk-5CXU2GBG.mjs";
45
45
  export {
46
46
  ApiRequestBlockSpec,
47
47
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "2.28.0",
3
+ "version": "2.30.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",