@xoxno/sdk-js 0.1.144-alpha → 0.1.145-alpha
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/email/email.d.ts +6 -29
- package/dist/email/email.d.ts.map +1 -1
- package/dist/email/types.d.ts +2 -2
- package/dist/email/types.d.ts.map +1 -1
- package/dist/email-node.cjs.js +2 -2
- package/dist/email-node.esm.js +2 -2
- package/dist/email.cjs.js +2 -2
- package/dist/email.d.ts +1 -0
- package/dist/email.d.ts.map +1 -1
- package/dist/email.esm.js +2 -2
- package/package.json +1 -1
package/dist/email/email.d.ts
CHANGED
|
@@ -1,40 +1,17 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
|
-
import { IBaseNotification, IEmailActivityType
|
|
2
|
+
import { IBaseNotification, IEmailActivityType } from './types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare const hosts: readonly ["https://next.xoxno.com", "https://devnet.xoxno.com"];
|
|
5
|
+
export type IProps = {
|
|
6
|
+
activityType: IEmailActivityType;
|
|
6
7
|
payload: {
|
|
7
8
|
name: string;
|
|
8
9
|
nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
|
|
9
10
|
address: string;
|
|
10
11
|
};
|
|
12
|
+
host?: (typeof hosts)[number];
|
|
11
13
|
};
|
|
12
|
-
|
|
13
|
-
activityType: Extract<IEmailActivityType, IDepositTypes>;
|
|
14
|
-
payload: {
|
|
15
|
-
name: string;
|
|
16
|
-
nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
|
|
17
|
-
address: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type IBidProps = {
|
|
21
|
-
activityType: Extract<IEmailActivityType, IBidTypes>;
|
|
22
|
-
payload: {
|
|
23
|
-
name: string;
|
|
24
|
-
nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
|
|
25
|
-
address: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export type IOfferProps = {
|
|
29
|
-
activityType: Extract<IEmailActivityType, IOfferTypes>;
|
|
30
|
-
payload: {
|
|
31
|
-
name: string;
|
|
32
|
-
nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
|
|
33
|
-
address: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export type IProps = ITradeProps | IDepositProps | IOfferProps | IBidProps;
|
|
37
|
-
declare const XOXNOEmail: (props: IProps) => React.JSX.Element;
|
|
14
|
+
declare const XOXNOEmail: ({ host, ...props }: IProps) => React.JSX.Element;
|
|
38
15
|
export declare const renderEmail: (props: ComponentProps<typeof XOXNOEmail>) => Promise<{
|
|
39
16
|
html: string;
|
|
40
17
|
plainText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/email/email.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AA6B/E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/email/email.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AA6B/E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EASnB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,MAAM,OAAO,CAAC;AAyG1B,QAAA,MAAM,KAAK,iEAAqD,CAAC;AAEjE,MAAM,MAAM,MAAM,GAAG;IACnB,YAAY,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC;QAC7D,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAmCF,QAAA,MAAM,UAAU,uBAAsC,MAAM,sBA4I3D,CAAC;AAqDF,eAAO,MAAM,WAAW,UACf,cAAc,CAAC,OAAO,UAAU,CAAC,KACvC,OAAO,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAcA,CAAC"}
|
package/dist/email/types.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { NftActivityType } from '../types';
|
|
|
2
2
|
export declare const tradeTypes: readonly [NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE, NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE];
|
|
3
3
|
export declare const offerTypes: readonly [NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT];
|
|
4
4
|
export declare const bidTypes: readonly [NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID];
|
|
5
|
-
export declare const depositTypes: readonly ["deposit"
|
|
5
|
+
export declare const depositTypes: readonly ["deposit"];
|
|
6
6
|
export type ITradeTypes = (typeof tradeTypes)[number];
|
|
7
7
|
export type IDepositTypes = (typeof depositTypes)[number];
|
|
8
8
|
export type IBidTypes = (typeof bidTypes)[number];
|
|
9
9
|
export type IOfferTypes = (typeof offerTypes)[number];
|
|
10
|
-
declare const emailActivityTypes: readonly [NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE, NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE, NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT, "deposit",
|
|
10
|
+
declare const emailActivityTypes: readonly [NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE, NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE, NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT, "deposit", NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID];
|
|
11
11
|
export type IEmailActivityType = (typeof emailActivityTypes)[number];
|
|
12
12
|
export declare enum NotificationAssetType {
|
|
13
13
|
NFT = "nft",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/email/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,UAAU,4JAMb,CAAC;AAEX,eAAO,MAAM,UAAU,uEAGb,CAAC;AAEX,eAAO,MAAM,QAAQ,yEAGX,CAAC;AAEX,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/email/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,UAAU,4JAMb,CAAC;AAEX,eAAO,MAAM,UAAU,uEAGb,CAAC;AAEX,eAAO,MAAM,QAAQ,yEAGX,CAAC;AAEX,eAAO,MAAM,YAAY,sBAAuB,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,QAAA,MAAM,kBAAkB,iSAKd,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,oBAAY,qBAAqB;IAC/B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb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