@ixo/editor 4.1.0 → 4.3.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,5 +1,5 @@
1
- import { x as ActionDefinition, y as ActionServices } from '../decompile-wCWLWfsQ.mjs';
2
- export { D as ActionContext, G as ActionResult, I as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, K as CompiledBlock, L as CompiledEdge, v as CompiledFlow, P as CompiledFlowNode, C as CompilerRegistry, H as ConditionRef, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, O as OutputSchemaField, R as ReadFlowOptions, q as ReadFlowResult, J as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, T as TTLConstraint, Q as TriggerSpec, a as buildAuthzFromProps, b as buildFlowNodeFromBlock, z as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, e as executeNode, k as getActiveEditor, i as isAuthorized, U as isRuntimeRef, n as mergeCompiledFlows, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, j as setActiveEditor, s as setupFlowFromBaseUcan } from '../decompile-wCWLWfsQ.mjs';
1
+ import { x as ActionDefinition, y as ActionServices } from '../decompile-rdAf19Es.mjs';
2
+ export { D as ActionContext, G as ActionResult, I as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, K as CompiledBlock, L as CompiledEdge, v as CompiledFlow, P as CompiledFlowNode, C as CompilerRegistry, H as ConditionRef, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, O as OutputSchemaField, R as ReadFlowOptions, q as ReadFlowResult, J as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, T as TTLConstraint, Q as TriggerSpec, a as buildAuthzFromProps, b as buildFlowNodeFromBlock, z as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, e as executeNode, k as getActiveEditor, i as isAuthorized, U as isRuntimeRef, n as mergeCompiledFlows, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, j as setActiveEditor, s as setupFlowFromBaseUcan } from '../decompile-rdAf19Es.mjs';
3
3
  import { s as IxoEditorType } from '../index-ClqpuDwu.mjs';
4
4
  export { C as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, t as DID, D as DelegationChainValidationResult, k as DelegationGrant, E as EvaluationStatus, z as ExecutionWithInvocationResult, A as FindProofsResult, w as FlowNode, F as FlowNodeAuthzExtension, v as FlowNodeBase, u as FlowNodeRuntimeState, x as InvocationRequest, y 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-ClqpuDwu.mjs';
5
5
  import * as Y from 'yjs';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRuntimeRefs
3
- } from "../chunk-TEK3WHYL.mjs";
3
+ } from "../chunk-LXEEL4NA.mjs";
4
4
  import {
5
5
  RUN_RECORD_AUDIT_TYPE,
6
6
  appendRunRecord,
@@ -47,7 +47,7 @@ import {
47
47
  setupFlowFromBaseUcan,
48
48
  snapshotInputRefs,
49
49
  typeToCan
50
- } from "../chunk-P4XPBVEX.mjs";
50
+ } from "../chunk-B7UIUYP5.mjs";
51
51
  import {
52
52
  computeCID,
53
53
  computeJsonCID
@@ -394,6 +394,11 @@ interface ActionServices {
394
394
  amount: string;
395
395
  }>;
396
396
  }) => Promise<void>;
397
+ disputeClaim?: (granteeAddress: string, did: string, payload: {
398
+ subjectId: string;
399
+ disputeType: number;
400
+ reason: string;
401
+ }) => Promise<any>;
397
402
  getCurrentUser: () => {
398
403
  address: string;
399
404
  };
@@ -1569,6 +1569,14 @@ interface BlocknoteHandlers {
1569
1569
  getClaimsPerCollectionId: (params: GetClaimsPerCollectionIdParams) => Promise<Claim[]>;
1570
1570
  getClaimsPerUserAddress: (params: GetClaimsPerUserAddressParams) => Promise<Claim[]>;
1571
1571
  getClaimData: (collectionId: string, claimId: string) => Promise<any>;
1572
+ getClaimDisputeDetails?: (claimId: string) => Promise<{
1573
+ reason?: string;
1574
+ disputeType?: number;
1575
+ evaluatorDid?: string;
1576
+ disputedAt?: string;
1577
+ uri?: string;
1578
+ proof?: string;
1579
+ } | null>;
1572
1580
  fetchClaimMedia?: (url: string) => Promise<Blob>;
1573
1581
  evaluateClaim: (granteeAddress: string, did: string, payload: {
1574
1582
  claimId: string;
@@ -1578,6 +1586,11 @@ interface BlocknoteHandlers {
1578
1586
  verificationProof: string;
1579
1587
  amount?: Coin | Coin[];
1580
1588
  }) => Promise<void>;
1589
+ disputeClaim?: (granteeAddress: string, did: string, payload: {
1590
+ subjectId: string;
1591
+ disputeType: number;
1592
+ reason: string;
1593
+ }) => Promise<any>;
1581
1594
  submitBid: (params: SubmitBidParams) => Promise<BidResponse>;
1582
1595
  queryBids: (params: QueryBidsParams) => Promise<QueryBidsResponse>;
1583
1596
  queryBidsByDid: (params: QueryBidsByDidParams) => Promise<{
@@ -2777,7 +2790,7 @@ interface IxoEditorProps {
2777
2790
  /**
2778
2791
  * IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
2779
2792
  */
2780
- 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__default.ReactElement | null;
2793
+ declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme: _mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, domainCardRenderer, onExternalDrop, externalDropType, dropIndicator, isPlacementMode, onPlacementCancel, mapConfig, connectedUsers, awarenessInstance, }: IxoEditorProps): React__default.ReactElement | null;
2781
2794
 
2782
2795
  interface CoverImageProps {
2783
2796
  coverImageUrl?: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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-CHx1hdTf.mjs';
2
- export { A as AuthorizationResult, B as BaseUcanFlow, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, a as buildAuthzFromProps, b as buildFlowNodeFromBlock, l as compileBaseUcanFlow, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, e as executeNode, k as getActiveEditor, i as isAuthorized, n as mergeCompiledFlows, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, j as setActiveEditor, s as setupFlowFromBaseUcan } from './decompile-wCWLWfsQ.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-DA3L9PNb.mjs';
2
+ export { A as AuthorizationResult, B as BaseUcanFlow, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, a as buildAuthzFromProps, b as buildFlowNodeFromBlock, l as compileBaseUcanFlow, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, e as executeNode, k as getActiveEditor, i as isAuthorized, n as mergeCompiledFlows, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, j as setActiveEditor, s as setupFlowFromBaseUcan } from './decompile-rdAf19Es.mjs';
3
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-ClqpuDwu.mjs';
4
4
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
5
5
  export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
package/dist/index.mjs CHANGED
@@ -26,8 +26,8 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-N3RWUUSD.mjs";
30
- import "./chunk-TEK3WHYL.mjs";
29
+ } from "./chunk-VHZ7YOBA.mjs";
30
+ import "./chunk-LXEEL4NA.mjs";
31
31
  import {
32
32
  buildAuthzFromProps,
33
33
  buildFlowNodeFromBlock,
@@ -49,7 +49,7 @@ import {
49
49
  readFlowFromEditor,
50
50
  setActiveEditor,
51
51
  setupFlowFromBaseUcan
52
- } from "./chunk-P4XPBVEX.mjs";
52
+ } from "./chunk-B7UIUYP5.mjs";
53
53
 
54
54
  // src/index.ts
55
55
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -1,5 +1,5 @@
1
- import { v as BlocknoteHandlers } from '../graphql-client-CHx1hdTf.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-CHx1hdTf.mjs';
1
+ import { v as BlocknoteHandlers } from '../graphql-client-DA3L9PNb.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-DA3L9PNb.mjs';
3
3
  import React__default, { PropsWithChildren } from 'react';
4
4
  import { J as IxoBlockProps, s as IxoEditorType, u as FlowNodeRuntimeState } from '../index-ClqpuDwu.mjs';
5
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-ClqpuDwu.mjs';
@@ -49,13 +49,13 @@ import {
49
49
  usePanel,
50
50
  usePanelStore,
51
51
  useTrackBlockFocus
52
- } from "../chunk-N3RWUUSD.mjs";
52
+ } from "../chunk-VHZ7YOBA.mjs";
53
53
  import {
54
54
  didToMatrixUserId,
55
55
  findOrCreateDMRoom,
56
56
  getHomeserver,
57
57
  sendDirectMessage
58
- } from "../chunk-P4XPBVEX.mjs";
58
+ } from "../chunk-B7UIUYP5.mjs";
59
59
  export {
60
60
  ApiRequestBlockSpec,
61
61
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "4.1.0",
3
+ "version": "4.3.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",
@@ -59,11 +59,11 @@
59
59
  "@ixo/matrix-crdt": "*",
60
60
  "@ixo/surveys": "^0.1.0",
61
61
  "@mantine/core": "^7.11.2",
62
+ "@mantine/dates": "^7.11.2",
62
63
  "@mantine/hooks": "^7.11.2",
63
64
  "matrix-js-sdk": ">=37.5.0",
64
65
  "react": "^18.0.0",
65
- "react-dom": "^18.0.0",
66
- "react-jazzicon": "^1.0.4"
66
+ "react-dom": "^18.0.0"
67
67
  },
68
68
  "dependencies": {
69
69
  "@blocknote/core": "0.29.1",
@@ -87,6 +87,7 @@
87
87
  "@ixo/matrix-crdt": "1.2.0",
88
88
  "@ixo/surveys": "^0.1.0",
89
89
  "@mantine/core": "^7.11.2",
90
+ "@mantine/dates": "^7.11.2",
90
91
  "@mantine/hooks": "^7.11.2",
91
92
  "@semantic-release/changelog": "^6.0.3",
92
93
  "@semantic-release/commit-analyzer": "^11.1.0",
@@ -113,7 +114,6 @@
113
114
  "prettier": "^3.2.5",
114
115
  "react": "^18.2.0",
115
116
  "react-dom": "^18.2.0",
116
- "react-jazzicon": "^1.0.4",
117
117
  "rimraf": "^5.0.0",
118
118
  "semantic-release": "^22.0.12",
119
119
  "tsup": "^8.5.0",