@ixo/editor 1.9.0 → 1.10.1

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.
package/dist/index.d.ts CHANGED
@@ -704,6 +704,7 @@ interface Asset {
704
704
  price: number;
705
705
  available: boolean;
706
706
  currency: string;
707
+ description?: string;
707
708
  }
708
709
  interface POD {
709
710
  did: string;
@@ -714,6 +715,7 @@ interface POD {
714
715
  totalProposals: number;
715
716
  startDate: string;
716
717
  endDate: string;
718
+ description?: string;
717
719
  }
718
720
  interface Request {
719
721
  did: string;
@@ -724,6 +726,7 @@ interface Request {
724
726
  currency: string;
725
727
  brand: string;
726
728
  totalApplications: number;
729
+ description?: string;
727
730
  }
728
731
  interface Oracle {
729
732
  did: string;
@@ -736,6 +739,7 @@ interface Oracle {
736
739
  currency: string;
737
740
  brand: string;
738
741
  flowsAmount: number;
742
+ description?: string;
739
743
  }
740
744
  interface Proposal {
741
745
  did: string;
@@ -753,6 +757,7 @@ interface Member {
753
757
  icon: string;
754
758
  percentage: string;
755
759
  role: string;
760
+ description?: string;
756
761
  }
757
762
  interface Validator {
758
763
  did: string;
@@ -778,6 +783,7 @@ interface Investment {
778
783
  maxAmount: number;
779
784
  status: string;
780
785
  price: number;
786
+ description?: string;
781
787
  }
782
788
  interface Collection {
783
789
  did: string;
@@ -787,12 +793,47 @@ interface Collection {
787
793
  price: number;
788
794
  currency: string;
789
795
  totalAssets: number;
796
+ description?: string;
790
797
  }
791
798
  interface Transaction {
792
799
  transactionHash: string;
793
800
  typeUrl: string;
794
801
  memo: string;
795
802
  time: string;
803
+ description?: string;
804
+ }
805
+ interface AssetDetails extends Asset {
806
+ actionSections: SelectionActionSection[];
807
+ }
808
+ interface CollectionDetails extends Collection {
809
+ actionSections: SelectionActionSection[];
810
+ }
811
+ interface TransactionDetails extends Transaction {
812
+ actionSections: SelectionActionSection[];
813
+ }
814
+ interface InvestmentDetails extends Investment {
815
+ actionSections: SelectionActionSection[];
816
+ }
817
+ interface OracleDetails extends Oracle {
818
+ actionSections: SelectionActionSection[];
819
+ }
820
+ interface PODDetails extends POD {
821
+ actionSections: SelectionActionSection[];
822
+ }
823
+ interface ProposalDetails extends Proposal {
824
+ actionSections: SelectionActionSection[];
825
+ }
826
+ interface RequestDetails extends Request {
827
+ actionSections: SelectionActionSection[];
828
+ }
829
+ interface MemberDetails extends Member {
830
+ actionSections: SelectionActionSection[];
831
+ }
832
+ interface ValidatorDetails extends Validator {
833
+ actionSections: SelectionActionSection[];
834
+ }
835
+ interface LinkedResourceDetails extends LinkedResource {
836
+ actionSections: SelectionActionSection[];
796
837
  }
797
838
  interface BlockRequirements {
798
839
  proposal?: {
@@ -885,6 +926,18 @@ interface BlocknoteHandlers {
885
926
  }) => Promise<{
886
927
  groupContractAddress: string;
887
928
  }>;
929
+ getAssetDetails?: (id: string) => Promise<AssetDetails>;
930
+ getCollectionDetails?: (id: string) => Promise<CollectionDetails>;
931
+ getTransactionDetails?: (id: string) => Promise<TransactionDetails>;
932
+ getInvestmentDetails?: (id: string) => Promise<InvestmentDetails>;
933
+ getOracleDetails?: (id: string) => Promise<OracleDetails>;
934
+ getPODDetails?: (id: string) => Promise<PODDetails>;
935
+ getProposalDetails?: (id: string) => Promise<ProposalDetails>;
936
+ getRequestDetails?: (id: string) => Promise<RequestDetails>;
937
+ getMemberDetails?: (id: string) => Promise<MemberDetails>;
938
+ getValidatorDetails?: (id: string) => Promise<ValidatorDetails>;
939
+ getLinkedResourceDetails?: (id: string) => Promise<LinkedResourceDetails>;
940
+ getDaoMemberDetails?: (id: string) => Promise<MemberDetails>;
888
941
  }
889
942
  type DocType = 'template' | 'page' | 'flow';
890
943
  interface BlocknoteContextValue {
@@ -912,6 +965,18 @@ declare const BlocknoteProvider: React.FC<{
912
965
  declare const useBlocknoteContext: () => BlocknoteContextValue;
913
966
  declare const useBlocknoteHandlers: () => BlocknoteHandlers;
914
967
 
968
+ interface SelectionActionItem {
969
+ id: string;
970
+ label: string;
971
+ icon?: string;
972
+ onClick: (itemId: string, itemData: any) => void | Promise<void>;
973
+ }
974
+ interface SelectionActionSection {
975
+ title: string;
976
+ description?: string;
977
+ actions: SelectionActionItem[];
978
+ }
979
+
915
980
  interface OverviewBlockSettings {
916
981
  did: string;
917
982
  }
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "./chunk-BWZMSLQH.mjs";
21
+ } from "./chunk-IILVJR2F.mjs";
22
22
  export {
23
23
  ApiRequestBlockSpec,
24
24
  AuthzExecActionTypes,
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "../chunk-BWZMSLQH.mjs";
21
+ } from "../chunk-IILVJR2F.mjs";
22
22
  export {
23
23
  ApiRequestBlockSpec,
24
24
  AuthzExecActionTypes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",