@ixo/editor 1.10.1 → 1.12.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.
package/dist/index.d.ts CHANGED
@@ -835,6 +835,11 @@ interface ValidatorDetails extends Validator {
835
835
  interface LinkedResourceDetails extends LinkedResource {
836
836
  actionSections: SelectionActionSection[];
837
837
  }
838
+ interface DAOGroup {
839
+ id: string;
840
+ name: string;
841
+ coreAddress: string;
842
+ }
838
843
  interface BlockRequirements {
839
844
  proposal?: {
840
845
  coreAddress: string;
@@ -854,11 +859,41 @@ interface CreateProposalParams {
854
859
  coreAddress?: string;
855
860
  groupContractAddress?: string;
856
861
  }
862
+ interface EmailNotificationParams {
863
+ channel: 'email';
864
+ to: string[];
865
+ cc?: string[];
866
+ bcc?: string[];
867
+ subject: string;
868
+ body: string;
869
+ bodyType?: 'text' | 'html';
870
+ from?: string;
871
+ replyTo?: string;
872
+ }
873
+ interface SmsNotificationParams {
874
+ channel: 'sms';
875
+ to: string[];
876
+ body: string;
877
+ }
878
+ interface WhatsAppNotificationParams {
879
+ channel: 'whatsapp';
880
+ to: string[];
881
+ body: string;
882
+ templateId?: string;
883
+ templateVariables?: Record<string, string>;
884
+ }
885
+ type NotificationParams = EmailNotificationParams | SmsNotificationParams | WhatsAppNotificationParams;
886
+ interface NotificationResponse {
887
+ messageId: string;
888
+ status: 'accepted' | 'rejected';
889
+ timestamp: string;
890
+ }
857
891
  interface BlocknoteHandlers {
858
892
  getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
859
893
  getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
860
894
  getCurrentUser: () => User;
861
895
  getDaoGroupsIds: () => Promise<string[] | undefined>;
896
+ getDAOGroups: () => Promise<DAOGroup[]>;
862
897
  getEntityDid: () => string | undefined;
863
898
  vote: ({ proposalId, rationale, vote, proposalContractAddress }: VoteParams) => Promise<void>;
864
899
  createProposal: (params: CreateProposalParams) => Promise<string>;
@@ -926,6 +961,7 @@ interface BlocknoteHandlers {
926
961
  }) => Promise<{
927
962
  groupContractAddress: string;
928
963
  }>;
964
+ sendNotification: (params: NotificationParams) => Promise<NotificationResponse>;
929
965
  getAssetDetails?: (id: string) => Promise<AssetDetails>;
930
966
  getCollectionDetails?: (id: string) => Promise<CollectionDetails>;
931
967
  getTransactionDetails?: (id: string) => Promise<TransactionDetails>;
@@ -1046,6 +1082,9 @@ declare const ProposalBlockSpec: {
1046
1082
  readonly proposalContractAddress: {
1047
1083
  readonly default: "";
1048
1084
  };
1085
+ readonly coreAddress: {
1086
+ readonly default: "";
1087
+ };
1049
1088
  readonly conditions: {
1050
1089
  readonly default: "";
1051
1090
  };
@@ -1092,6 +1131,9 @@ declare const ProposalBlockSpec: {
1092
1131
  readonly proposalContractAddress: {
1093
1132
  readonly default: "";
1094
1133
  };
1134
+ readonly coreAddress: {
1135
+ readonly default: "";
1136
+ };
1095
1137
  readonly conditions: {
1096
1138
  readonly default: "";
1097
1139
  };
@@ -1390,6 +1432,9 @@ declare const blockSpecs: {
1390
1432
  readonly proposalContractAddress: {
1391
1433
  readonly default: "";
1392
1434
  };
1435
+ readonly coreAddress: {
1436
+ readonly default: "";
1437
+ };
1393
1438
  readonly conditions: {
1394
1439
  readonly default: "";
1395
1440
  };
@@ -1436,6 +1481,9 @@ declare const blockSpecs: {
1436
1481
  readonly proposalContractAddress: {
1437
1482
  readonly default: "";
1438
1483
  };
1484
+ readonly coreAddress: {
1485
+ readonly default: "";
1486
+ };
1439
1487
  readonly conditions: {
1440
1488
  readonly default: "";
1441
1489
  };
@@ -1517,6 +1565,134 @@ declare const blockSpecs: {
1517
1565
  readonly content: "inline";
1518
1566
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1519
1567
  };
1568
+ notify: {
1569
+ config: {
1570
+ readonly type: "notify";
1571
+ readonly propSchema: {
1572
+ readonly title: {
1573
+ readonly default: "";
1574
+ };
1575
+ readonly description: {
1576
+ readonly default: "";
1577
+ };
1578
+ readonly icon: {
1579
+ readonly default: "bell";
1580
+ };
1581
+ readonly channel: {
1582
+ readonly default: "email";
1583
+ };
1584
+ readonly to: {
1585
+ readonly default: "[]";
1586
+ };
1587
+ readonly cc: {
1588
+ readonly default: "[]";
1589
+ };
1590
+ readonly bcc: {
1591
+ readonly default: "[]";
1592
+ };
1593
+ readonly subject: {
1594
+ readonly default: "";
1595
+ };
1596
+ readonly body: {
1597
+ readonly default: "";
1598
+ };
1599
+ readonly bodyType: {
1600
+ readonly default: "text";
1601
+ };
1602
+ readonly from: {
1603
+ readonly default: "";
1604
+ };
1605
+ readonly replyTo: {
1606
+ readonly default: "";
1607
+ };
1608
+ readonly templateId: {
1609
+ readonly default: "";
1610
+ };
1611
+ readonly templateVariables: {
1612
+ readonly default: "{}";
1613
+ };
1614
+ readonly status: {
1615
+ readonly default: "idle";
1616
+ };
1617
+ readonly messageId: {
1618
+ readonly default: "";
1619
+ };
1620
+ readonly sentAt: {
1621
+ readonly default: "";
1622
+ };
1623
+ readonly errorMessage: {
1624
+ readonly default: "";
1625
+ };
1626
+ readonly conditions: {
1627
+ readonly default: "";
1628
+ };
1629
+ };
1630
+ readonly content: "inline";
1631
+ };
1632
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1633
+ readonly type: "notify";
1634
+ readonly propSchema: {
1635
+ readonly title: {
1636
+ readonly default: "";
1637
+ };
1638
+ readonly description: {
1639
+ readonly default: "";
1640
+ };
1641
+ readonly icon: {
1642
+ readonly default: "bell";
1643
+ };
1644
+ readonly channel: {
1645
+ readonly default: "email";
1646
+ };
1647
+ readonly to: {
1648
+ readonly default: "[]";
1649
+ };
1650
+ readonly cc: {
1651
+ readonly default: "[]";
1652
+ };
1653
+ readonly bcc: {
1654
+ readonly default: "[]";
1655
+ };
1656
+ readonly subject: {
1657
+ readonly default: "";
1658
+ };
1659
+ readonly body: {
1660
+ readonly default: "";
1661
+ };
1662
+ readonly bodyType: {
1663
+ readonly default: "text";
1664
+ };
1665
+ readonly from: {
1666
+ readonly default: "";
1667
+ };
1668
+ readonly replyTo: {
1669
+ readonly default: "";
1670
+ };
1671
+ readonly templateId: {
1672
+ readonly default: "";
1673
+ };
1674
+ readonly templateVariables: {
1675
+ readonly default: "{}";
1676
+ };
1677
+ readonly status: {
1678
+ readonly default: "idle";
1679
+ };
1680
+ readonly messageId: {
1681
+ readonly default: "";
1682
+ };
1683
+ readonly sentAt: {
1684
+ readonly default: "";
1685
+ };
1686
+ readonly errorMessage: {
1687
+ readonly default: "";
1688
+ };
1689
+ readonly conditions: {
1690
+ readonly default: "";
1691
+ };
1692
+ };
1693
+ readonly content: "inline";
1694
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1695
+ };
1520
1696
  };
1521
1697
  declare const getExtraSlashMenuItems: (editor: any) => {
1522
1698
  title: string;
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "./chunk-IILVJR2F.mjs";
21
+ } from "./chunk-74X5B74P.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-IILVJR2F.mjs";
21
+ } from "../chunk-74X5B74P.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.10.1",
3
+ "version": "1.12.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",