@xoxno/sdk-js 0.1.130-alpha → 0.1.131-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/252.esm.js +1854 -0
- package/dist/252.esm.js.LICENSE.txt +100 -0
- package/dist/252.js +1854 -0
- package/dist/252.js.LICENSE.txt +100 -0
- package/dist/496.esm.js +1 -0
- package/dist/496.js +1 -0
- package/dist/956.esm.js +2 -0
- package/dist/956.esm.js.LICENSE.txt +10 -0
- package/dist/956.js +2 -0
- package/dist/956.js.LICENSE.txt +10 -0
- package/dist/email/email.d.ts +3 -3
- package/dist/email/email.d.ts.map +1 -1
- package/dist/email.esm.js +3 -3
- package/dist/email.js +3 -3
- package/dist/report.html +39 -0
- package/package.json +8 -7
- package/dist/email/index.d.ts +0 -44
- package/dist/email/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.131-alpha",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
|
-
"type": "
|
|
5
|
+
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"import": "./dist/index.js",
|
|
8
|
+
"import": "./dist/index.esm.js",
|
|
9
9
|
"types": "./dist/index.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"./interactor": {
|
|
12
|
-
"import": "./dist/interactor.js",
|
|
12
|
+
"import": "./dist/interactor.esm.js",
|
|
13
13
|
"types": "./dist/interactor.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"./email": {
|
|
16
|
-
"import": "./dist/email.js",
|
|
16
|
+
"import": "./dist/email.esm.js",
|
|
17
17
|
"types": "./dist/email.d.ts"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
|
-
"main": "./dist/index.js",
|
|
21
|
+
"main": "./dist/index.esm.js",
|
|
22
22
|
"files": [
|
|
23
23
|
"dist/**/*"
|
|
24
24
|
],
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"test": "jest",
|
|
28
28
|
"build:types": "tsc --emitDeclarationOnly",
|
|
29
|
-
"build": "npm run build:types && webpack && webpack --config webpack-esm.config.
|
|
29
|
+
"build": "npm run build:types && webpack && webpack --config webpack-esm.config.cjs",
|
|
30
30
|
"lint": "eslint 'src/**/*.ts' --fix",
|
|
31
31
|
"format": "prettier --write 'src/**/*.ts'",
|
|
32
32
|
"commit": "git-cz",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"@react-email/components": "0.0.19",
|
|
99
99
|
"@react-email/render": "^0.0.15",
|
|
100
100
|
"next-intl": "^3.15.2",
|
|
101
|
+
"react": "^18.3.1",
|
|
101
102
|
"webpack-bundle-analyzer": "^4.10.2"
|
|
102
103
|
}
|
|
103
104
|
}
|
package/dist/email/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import { IBaseNotification, IEmailActivityType, type IBidTypes, type IDepositTypes, type IOfferTypes, type ITradeTypes } from './types';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export type ITradeProps = {
|
|
5
|
-
activityType: Extract<IEmailActivityType, ITradeTypes>;
|
|
6
|
-
payload: {
|
|
7
|
-
name: string;
|
|
8
|
-
nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
|
|
9
|
-
address: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export type IDepositProps = {
|
|
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 generateXOXNOEmail: (props: IProps) => React.JSX.Element;
|
|
38
|
-
export declare const renderEmail: (props: ComponentProps<typeof generateXOXNOEmail>) => Promise<{
|
|
39
|
-
html: string;
|
|
40
|
-
plainText: string;
|
|
41
|
-
subject: string | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/email/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,OAAO,CAAC;AA6B3D,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAKlB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,MAAM,OAAO,CAAC;AA8G1B,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACvD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,OAAO,GAAG,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