@ixo/editor 1.10.0 → 1.11.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
@@ -854,6 +854,35 @@ interface CreateProposalParams {
854
854
  coreAddress?: string;
855
855
  groupContractAddress?: string;
856
856
  }
857
+ interface EmailNotificationParams {
858
+ channel: 'email';
859
+ to: string[];
860
+ cc?: string[];
861
+ bcc?: string[];
862
+ subject: string;
863
+ body: string;
864
+ bodyType?: 'text' | 'html';
865
+ from?: string;
866
+ replyTo?: string;
867
+ }
868
+ interface SmsNotificationParams {
869
+ channel: 'sms';
870
+ to: string[];
871
+ body: string;
872
+ }
873
+ interface WhatsAppNotificationParams {
874
+ channel: 'whatsapp';
875
+ to: string[];
876
+ body: string;
877
+ templateId?: string;
878
+ templateVariables?: Record<string, string>;
879
+ }
880
+ type NotificationParams = EmailNotificationParams | SmsNotificationParams | WhatsAppNotificationParams;
881
+ interface NotificationResponse {
882
+ messageId: string;
883
+ status: 'accepted' | 'rejected';
884
+ timestamp: string;
885
+ }
857
886
  interface BlocknoteHandlers {
858
887
  getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
859
888
  getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
@@ -926,6 +955,7 @@ interface BlocknoteHandlers {
926
955
  }) => Promise<{
927
956
  groupContractAddress: string;
928
957
  }>;
958
+ sendNotification: (params: NotificationParams) => Promise<NotificationResponse>;
929
959
  getAssetDetails?: (id: string) => Promise<AssetDetails>;
930
960
  getCollectionDetails?: (id: string) => Promise<CollectionDetails>;
931
961
  getTransactionDetails?: (id: string) => Promise<TransactionDetails>;
@@ -1517,6 +1547,134 @@ declare const blockSpecs: {
1517
1547
  readonly content: "inline";
1518
1548
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1519
1549
  };
1550
+ notify: {
1551
+ config: {
1552
+ readonly type: "notify";
1553
+ readonly propSchema: {
1554
+ readonly title: {
1555
+ readonly default: "";
1556
+ };
1557
+ readonly description: {
1558
+ readonly default: "";
1559
+ };
1560
+ readonly icon: {
1561
+ readonly default: "bell";
1562
+ };
1563
+ readonly channel: {
1564
+ readonly default: "email";
1565
+ };
1566
+ readonly to: {
1567
+ readonly default: "[]";
1568
+ };
1569
+ readonly cc: {
1570
+ readonly default: "[]";
1571
+ };
1572
+ readonly bcc: {
1573
+ readonly default: "[]";
1574
+ };
1575
+ readonly subject: {
1576
+ readonly default: "";
1577
+ };
1578
+ readonly body: {
1579
+ readonly default: "";
1580
+ };
1581
+ readonly bodyType: {
1582
+ readonly default: "text";
1583
+ };
1584
+ readonly from: {
1585
+ readonly default: "";
1586
+ };
1587
+ readonly replyTo: {
1588
+ readonly default: "";
1589
+ };
1590
+ readonly templateId: {
1591
+ readonly default: "";
1592
+ };
1593
+ readonly templateVariables: {
1594
+ readonly default: "{}";
1595
+ };
1596
+ readonly status: {
1597
+ readonly default: "idle";
1598
+ };
1599
+ readonly messageId: {
1600
+ readonly default: "";
1601
+ };
1602
+ readonly sentAt: {
1603
+ readonly default: "";
1604
+ };
1605
+ readonly errorMessage: {
1606
+ readonly default: "";
1607
+ };
1608
+ readonly conditions: {
1609
+ readonly default: "";
1610
+ };
1611
+ };
1612
+ readonly content: "inline";
1613
+ };
1614
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1615
+ readonly type: "notify";
1616
+ readonly propSchema: {
1617
+ readonly title: {
1618
+ readonly default: "";
1619
+ };
1620
+ readonly description: {
1621
+ readonly default: "";
1622
+ };
1623
+ readonly icon: {
1624
+ readonly default: "bell";
1625
+ };
1626
+ readonly channel: {
1627
+ readonly default: "email";
1628
+ };
1629
+ readonly to: {
1630
+ readonly default: "[]";
1631
+ };
1632
+ readonly cc: {
1633
+ readonly default: "[]";
1634
+ };
1635
+ readonly bcc: {
1636
+ readonly default: "[]";
1637
+ };
1638
+ readonly subject: {
1639
+ readonly default: "";
1640
+ };
1641
+ readonly body: {
1642
+ readonly default: "";
1643
+ };
1644
+ readonly bodyType: {
1645
+ readonly default: "text";
1646
+ };
1647
+ readonly from: {
1648
+ readonly default: "";
1649
+ };
1650
+ readonly replyTo: {
1651
+ readonly default: "";
1652
+ };
1653
+ readonly templateId: {
1654
+ readonly default: "";
1655
+ };
1656
+ readonly templateVariables: {
1657
+ readonly default: "{}";
1658
+ };
1659
+ readonly status: {
1660
+ readonly default: "idle";
1661
+ };
1662
+ readonly messageId: {
1663
+ readonly default: "";
1664
+ };
1665
+ readonly sentAt: {
1666
+ readonly default: "";
1667
+ };
1668
+ readonly errorMessage: {
1669
+ readonly default: "";
1670
+ };
1671
+ readonly conditions: {
1672
+ readonly default: "";
1673
+ };
1674
+ };
1675
+ readonly content: "inline";
1676
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1677
+ };
1520
1678
  };
1521
1679
  declare const getExtraSlashMenuItems: (editor: any) => {
1522
1680
  title: string;
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "./chunk-DYWMPNRW.mjs";
21
+ } from "./chunk-7MKIYHNA.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-DYWMPNRW.mjs";
21
+ } from "../chunk-7MKIYHNA.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.0",
3
+ "version": "1.11.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",