@ixo/editor 3.0.0-beta.22 → 3.0.0-beta.24

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
- export { m as ActivationResult, l as AuthorizationContext, s as AuthorizationContextV2, A as AuthorizationResult, C as CapabilityGrant, D as DelegationStore, y as DerivedCapability, E as ExecuteNodeParams, p as ExecuteNodeParamsV2, k as ExecutionContext, q as ExecutionContextV2, j as ExecutionOutcome, F as FlowRuntimeStateManager, N as NodeActionResult, S as SimpleUCANManager, x as UCANManager, U as UcanService, u as UcanServiceConfig, w as UcanServiceHandlers, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, n as clearRuntimeForTemplateClone, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, t as createUcanService, e as executeNode, o as executeNodeWithInvocation, f as findValidCapability, i as isActorAuthorized, r as isActorAuthorizedV2, a as isNodeActive, v as validateCapabilityChain } from '../capabilityValidation-B3NRVwYZ.mjs';
2
- export { A as ActivationCondition, C as Capability, m as CapabilityURI, a as CapabilityValidationResult, o as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, n as DID, y as DelegationChainValidationResult, D as DelegationGrant, E as EvaluationStatus, x as ExecutionWithInvocationResult, z as FindProofsResult, r as FlowNode, F as FlowNodeAuthzExtension, q as FlowNodeBase, p as FlowNodeRuntimeState, v as InvocationRequest, w as InvocationResult, l as InvocationStore, L as LinkedClaim, M as MigrationReport, N as NodeState, S as SignedCapability, t as StoredDelegation, u as StoredInvocation, s as UcanCapability, U as UcanDelegationStore, j as createInvocationStore, k as createMemoryInvocationStore, i as createMemoryUcanDelegationStore, h as createUcanDelegationStore } from '../index-CnqA4qDa.mjs';
1
+ export { m as ActivationResult, l as AuthorizationContext, s as AuthorizationContextV2, A as AuthorizationResult, C as CapabilityGrant, D as DelegationStore, y as DerivedCapability, E as ExecuteNodeParams, p as ExecuteNodeParamsV2, k as ExecutionContext, q as ExecutionContextV2, j as ExecutionOutcome, F as FlowRuntimeStateManager, N as NodeActionResult, S as SimpleUCANManager, x as UCANManager, U as UcanService, u as UcanServiceConfig, w as UcanServiceHandlers, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, n as clearRuntimeForTemplateClone, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, t as createUcanService, e as executeNode, o as executeNodeWithInvocation, f as findValidCapability, i as isActorAuthorized, r as isActorAuthorizedV2, a as isNodeActive, v as validateCapabilityChain } from '../capabilityValidation-BSzFr-F6.mjs';
2
+ export { A as ActivationCondition, C as Capability, m as CapabilityURI, a as CapabilityValidationResult, o as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, n as DID, y as DelegationChainValidationResult, D as DelegationGrant, E as EvaluationStatus, x as ExecutionWithInvocationResult, z as FindProofsResult, r as FlowNode, F as FlowNodeAuthzExtension, q as FlowNodeBase, p as FlowNodeRuntimeState, v as InvocationRequest, w as InvocationResult, l as InvocationStore, L as LinkedClaim, M as MigrationReport, N as NodeState, S as SignedCapability, t as StoredDelegation, u as StoredInvocation, s as UcanCapability, U as UcanDelegationStore, j as createInvocationStore, k as createMemoryInvocationStore, i as createMemoryUcanDelegationStore, h as createUcanDelegationStore } from '../index-aAHFla8N.mjs';
3
3
  import '@ixo/ucan';
4
4
  import 'yjs';
5
5
  import '@blocknote/core';
@@ -1,5 +1,5 @@
1
1
  import * as _blocknote_core from '@blocknote/core';
2
- import { K as IxoBlockProps, J as IxoEditorType, I as IxoEditorOptions, e as IxoCollaborativeEditorOptions, D as DelegationGrant } from './index-CnqA4qDa.mjs';
2
+ import { K as IxoBlockProps, J as IxoEditorType, I as IxoEditorOptions, e as IxoCollaborativeEditorOptions, D as DelegationGrant } from './index-aAHFla8N.mjs';
3
3
  import { Text, Doc, Map, Array as Array$1 } from 'yjs';
4
4
  import React from 'react';
5
5
  import { MatrixClient } from 'matrix-js-sdk';
@@ -1492,7 +1492,7 @@ interface BlocknoteHandlers {
1492
1492
  getValidatorDetails?: (id: string) => Promise<ValidatorDetails>;
1493
1493
  getLinkedResourceDetails?: (id: string) => Promise<LinkedResourceDetails>;
1494
1494
  getDaoMemberDetails?: (id: string) => Promise<MemberDetails>;
1495
- getDeedSurveyTemplate: (deedDid: string) => Promise<{
1495
+ getDeedSurveyTemplate: (deedDid: string, claimCollectionId?: string) => Promise<{
1496
1496
  surveyTemplate: any;
1497
1497
  claimCollectionId: string;
1498
1498
  } | null>;
@@ -1531,10 +1531,10 @@ interface BlocknoteHandlers {
1531
1531
  approveBid: (params: ApproveBidParams) => Promise<BidResponse>;
1532
1532
  rejectBid: (params: RejectBidParams) => Promise<BidResponse>;
1533
1533
  getUserRoles: (params: CheckUserRoleParams) => Promise<ClaimCollectionRole[]>;
1534
- getBidContributorSurveyTemplate: (deedId: string) => Promise<{
1534
+ getBidContributorSurveyTemplate: (deedId: string, claimCollectionId?: string) => Promise<{
1535
1535
  surveyTemplate: any;
1536
1536
  } | null>;
1537
- getBidEvaluatorSurveyTemplate: (deedId: string) => Promise<{
1537
+ getBidEvaluatorSurveyTemplate: (deedId: string, claimCollectionId?: string) => Promise<{
1538
1538
  surveyTemplate: any;
1539
1539
  } | null>;
1540
1540
  approveServiceAgentApplication: (params: {
@@ -1746,6 +1746,62 @@ declare const blockSpecs: {
1746
1746
  readonly content: "none";
1747
1747
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1748
1748
  };
1749
+ embed: {
1750
+ config: {
1751
+ readonly type: "embed";
1752
+ readonly propSchema: {
1753
+ readonly url: {
1754
+ readonly default: "";
1755
+ };
1756
+ readonly title: {
1757
+ readonly default: "";
1758
+ };
1759
+ readonly description: {
1760
+ readonly default: "";
1761
+ };
1762
+ readonly icon: {
1763
+ readonly default: "code";
1764
+ };
1765
+ readonly height: {
1766
+ readonly default: "400";
1767
+ };
1768
+ readonly allowAuth: {
1769
+ readonly default: "false";
1770
+ };
1771
+ readonly skill: {
1772
+ readonly default: "";
1773
+ };
1774
+ };
1775
+ readonly content: "none";
1776
+ };
1777
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1778
+ readonly type: "embed";
1779
+ readonly propSchema: {
1780
+ readonly url: {
1781
+ readonly default: "";
1782
+ };
1783
+ readonly title: {
1784
+ readonly default: "";
1785
+ };
1786
+ readonly description: {
1787
+ readonly default: "";
1788
+ };
1789
+ readonly icon: {
1790
+ readonly default: "code";
1791
+ };
1792
+ readonly height: {
1793
+ readonly default: "400";
1794
+ };
1795
+ readonly allowAuth: {
1796
+ readonly default: "false";
1797
+ };
1798
+ readonly skill: {
1799
+ readonly default: "";
1800
+ };
1801
+ };
1802
+ readonly content: "none";
1803
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1804
+ };
1749
1805
  };
1750
1806
  declare const getExtraSlashMenuItems: (editor: any) => {
1751
1807
  title: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
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-b82luVYe.mjs';
2
- export { m as ActivationResult, l as AuthorizationContext, A as AuthorizationResult, D as DelegationStore, E as ExecuteNodeParams, k as ExecutionContext, j as ExecutionOutcome, F as FlowRuntimeStateManager, N as NodeActionResult, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, e as executeNode, f as findValidCapability, i as isActorAuthorized, a as isNodeActive, v as validateCapabilityChain } from './capabilityValidation-B3NRVwYZ.mjs';
3
- export { C as Capability, a as CapabilityValidationResult, D as DelegationGrant, e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, S as SignedCapability, f as blockSpecs, g as getExtraSlashMenuItems } from './index-CnqA4qDa.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-CJ0vMGiH.mjs';
2
+ export { m as ActivationResult, l as AuthorizationContext, A as AuthorizationResult, D as DelegationStore, E as ExecuteNodeParams, k as ExecutionContext, j as ExecutionOutcome, F as FlowRuntimeStateManager, N as NodeActionResult, h as buildAuthzFromProps, g as buildFlowNodeFromBlock, c as createDelegationStore, b as createMemoryDelegationStore, d as createRuntimeStateManager, e as executeNode, f as findValidCapability, i as isActorAuthorized, a as isNodeActive, v as validateCapabilityChain } from './capabilityValidation-BSzFr-F6.mjs';
3
+ export { C as Capability, a as CapabilityValidationResult, D as DelegationGrant, e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, S as SignedCapability, f as blockSpecs, g as getExtraSlashMenuItems } from './index-aAHFla8N.mjs';
4
4
  export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
5
5
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
6
6
  import 'yjs';
package/dist/index.mjs CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-XGUFDDLJ.mjs";
29
+ } from "./chunk-F53CG3GO.mjs";
30
30
  import {
31
31
  buildAuthzFromProps,
32
32
  buildFlowNodeFromBlock,
@@ -1,8 +1,8 @@
1
- import { v as BlocknoteHandlers } from '../graphql-client-b82luVYe.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, ah as DomainCardData, ag as DomainCardRenderer, a8 as DropPosition, ad as DynamicListData, ae as DynamicListDataProvider, af 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, a9 as PageHeader, ab as PageHeaderMenuItem, aa as PageHeaderProps, _ 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, ac 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-b82luVYe.mjs';
1
+ import { v as BlocknoteHandlers } from '../graphql-client-CJ0vMGiH.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, ah as DomainCardData, ag as DomainCardRenderer, a8 as DropPosition, ad as DynamicListData, ae as DynamicListDataProvider, af 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, a9 as PageHeader, ab as PageHeaderMenuItem, aa as PageHeaderProps, _ 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, ac 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-CJ0vMGiH.mjs';
3
3
  import React$1, { PropsWithChildren } from 'react';
4
- import { K as IxoBlockProps, J as IxoEditorType, p as FlowNodeRuntimeState } from '../index-CnqA4qDa.mjs';
5
- export { e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, f as blockSpecs, g as getExtraSlashMenuItems } from '../index-CnqA4qDa.mjs';
4
+ import { K as IxoBlockProps, J as IxoEditorType, p as FlowNodeRuntimeState } from '../index-aAHFla8N.mjs';
5
+ export { e as IxoCollaborativeEditorOptions, d as IxoCollaborativeUser, c as IxoEditorConfig, I as IxoEditorOptions, b as IxoEditorTheme, f as blockSpecs, g as getExtraSlashMenuItems } from '../index-aAHFla8N.mjs';
6
6
  import * as zustand from 'zustand';
7
7
  import * as _blocknote_core from '@blocknote/core';
8
8
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
@@ -52,7 +52,7 @@ import {
52
52
  usePanel,
53
53
  usePanelStore,
54
54
  useTrackBlockFocus
55
- } from "../chunk-XGUFDDLJ.mjs";
55
+ } from "../chunk-F53CG3GO.mjs";
56
56
  import "../chunk-3RYZSIC2.mjs";
57
57
  export {
58
58
  ApiRequestBlockSpec,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0-beta.22",
3
+ "version": "3.0.0-beta.24",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",