@ixo/editor 2.12.0 → 2.14.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.
@@ -888,6 +888,17 @@ interface Transaction {
888
888
  time: string;
889
889
  description?: string;
890
890
  }
891
+ interface DeedSubscription {
892
+ did: string;
893
+ subscriberAddress: string;
894
+ subscriberDid?: string;
895
+ subscriberName?: string;
896
+ subscriberImage?: string;
897
+ subscriptionDate: string;
898
+ status: 'active' | 'inactive' | 'pending';
899
+ metadata?: Record<string, any>;
900
+ actionSections?: SelectionActionSection[];
901
+ }
891
902
  interface Bid {
892
903
  id: string;
893
904
  did: string;
@@ -1157,6 +1168,10 @@ interface BlocknoteHandlers {
1157
1168
  data: Asset[];
1158
1169
  totalCount: number;
1159
1170
  }>;
1171
+ getDeedSubscriptions: (relayerDid: string, page: number) => Promise<{
1172
+ data: DeedSubscription[];
1173
+ totalCount: number;
1174
+ }>;
1160
1175
  getCollections: (relayerDid: string, page: number) => Promise<{
1161
1176
  data: Collection[];
1162
1177
  totalCount: number;
@@ -3156,12 +3171,16 @@ interface DropPosition {
3156
3171
  interface ExternalDropZoneProps {
3157
3172
  /** Editor instance to get block positions from */
3158
3173
  editor: any;
3159
- /** Callback when external data is dropped - position only, caller handles data */
3174
+ /** Callback when external data is dropped or placed - position only, caller handles data */
3160
3175
  onDrop: (position: DropPosition) => void;
3161
3176
  /** MIME type to accept (default: 'application/x-artifact') */
3162
3177
  acceptedType?: string;
3163
3178
  /** Drop indicator element to show (provided by caller, already has data) */
3164
3179
  dropIndicator?: React.ReactNode;
3180
+ /** Whether placement mode is active (click-to-place) */
3181
+ isPlacementMode?: boolean;
3182
+ /** Callback when placement mode should be canceled */
3183
+ onPlacementCancel?: () => void;
3165
3184
  /** Children (the editor content) */
3166
3185
  children: React.ReactNode;
3167
3186
  }
@@ -3191,11 +3210,15 @@ interface IxoEditorProps {
3191
3210
  externalDropType?: string;
3192
3211
  /** Drop indicator element to show during drag (caller provides with data already populated) */
3193
3212
  dropIndicator?: React.ReactNode;
3213
+ /** Whether placement mode is active (click-to-place) */
3214
+ isPlacementMode?: boolean;
3215
+ /** Callback when placement mode should be canceled */
3216
+ onPlacementCancel?: () => void;
3194
3217
  }
3195
3218
  /**
3196
3219
  * IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
3197
3220
  */
3198
- declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, selfNav, pageHeaderProps, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, onExternalDrop, externalDropType, dropIndicator, }: IxoEditorProps): React.ReactElement | null;
3221
+ declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, selfNav, pageHeaderProps, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, onExternalDrop, externalDropType, dropIndicator, isPlacementMode, onPlacementCancel, }: IxoEditorProps): React.ReactElement | null;
3199
3222
 
3200
3223
  interface CoverImageProps {
3201
3224
  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-B8LHwJc9.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-B8LHwJc9.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-Cmq6iMJk.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-Cmq6iMJk.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-5QJ4XXRA.mjs";
37
+ } from "./chunk-LNFOOQY3.mjs";
38
38
  export {
39
39
  ApiRequestBlockSpec,
40
40
  AuthorizationTab,
@@ -1,5 +1,5 @@
1
- import { ak as IxoBlockProps } from '../graphql-client-B8LHwJc9.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, 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-B8LHwJc9.mjs';
1
+ import { ak as IxoBlockProps } from '../graphql-client-Cmq6iMJk.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, 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-Cmq6iMJk.mjs';
3
3
  import * as zustand from 'zustand';
4
4
  import * as _blocknote_core from '@blocknote/core';
5
5
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
@@ -31,7 +31,7 @@ import {
31
31
  useListBlocksUIStore,
32
32
  usePanel,
33
33
  usePanelStore
34
- } from "../chunk-5QJ4XXRA.mjs";
34
+ } from "../chunk-LNFOOQY3.mjs";
35
35
  export {
36
36
  ApiRequestBlockSpec,
37
37
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "2.12.0",
3
+ "version": "2.14.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",
@@ -54,7 +54,8 @@
54
54
  "@mantine/hooks": "^7.11.2",
55
55
  "matrix-js-sdk": ">=37.5.0",
56
56
  "react": "^18.0.0",
57
- "react-dom": "^18.0.0"
57
+ "react-dom": "^18.0.0",
58
+ "react-jazzicon": "^1.0.4"
58
59
  },
59
60
  "dependencies": {
60
61
  "@blocknote/core": "0.29.1",
@@ -65,13 +66,13 @@
65
66
  "zustand": "5.0.8"
66
67
  },
67
68
  "devDependencies": {
68
- "@ixo/surveys": "^0.1.0",
69
69
  "@commitlint/cli": "^20.0.0",
70
70
  "@commitlint/config-conventional": "^20.0.0",
71
71
  "@eslint/compat": "^1.4.0",
72
72
  "@eslint/eslintrc": "^3.3.1",
73
73
  "@eslint/js": "^9.36.0",
74
74
  "@ixo/matrix-crdt": "1.0.4",
75
+ "@ixo/surveys": "^0.1.0",
75
76
  "@mantine/core": "^7.11.2",
76
77
  "@mantine/hooks": "^7.11.2",
77
78
  "@semantic-release/changelog": "^6.0.3",
@@ -94,6 +95,7 @@
94
95
  "prettier": "^3.2.5",
95
96
  "react": "^18.2.0",
96
97
  "react-dom": "^18.2.0",
98
+ "react-jazzicon": "^1.0.4",
97
99
  "rimraf": "^5.0.0",
98
100
  "semantic-release": "^22.0.12",
99
101
  "tsup": "^8.5.0",