@xoxno/sdk-js 0.1.281 → 0.1.282
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/package.json +2 -20
- package/dist/848.cjs.js +0 -2
- package/dist/848.cjs.js.LICENSE.txt +0 -29
- package/dist/848.esm.js +0 -2
- package/dist/848.esm.js.LICENSE.txt +0 -29
- package/dist/dist/email.esm.d.ts +0 -27
- package/dist/dist/email.esm.d.ts.map +0 -1
- package/dist/email/approval-accepted-email.d.ts +0 -21
- package/dist/email/approval-accepted-email.d.ts.map +0 -1
- package/dist/email/approval-pending-email.d.ts +0 -21
- package/dist/email/approval-pending-email.d.ts.map +0 -1
- package/dist/email/approval-rejected-email.d.ts +0 -21
- package/dist/email/approval-rejected-email.d.ts.map +0 -1
- package/dist/email/checkedin-email.d.ts +0 -23
- package/dist/email/checkedin-email.d.ts.map +0 -1
- package/dist/email/email.d.ts +0 -36
- package/dist/email/email.d.ts.map +0 -1
- package/dist/email/event-email.d.ts +0 -24
- package/dist/email/event-email.d.ts.map +0 -1
- package/dist/email/invite-email.d.ts +0 -25
- package/dist/email/invite-email.d.ts.map +0 -1
- package/dist/email/types.d.ts +0 -63
- package/dist/email/types.d.ts.map +0 -1
- package/dist/email/utils.d.ts +0 -95
- package/dist/email/utils.d.ts.map +0 -1
- package/dist/email.cjs.js +0 -1854
- package/dist/email.cjs.js.LICENSE.txt +0 -82
- package/dist/email.d.ts +0 -10
- package/dist/email.d.ts.map +0 -1
- package/dist/email.esm.js +0 -1854
- package/dist/email.esm.js.LICENSE.txt +0 -82
- package/dist/scripts/renderEmail.d.ts +0 -2
- package/dist/scripts/renderEmail.d.ts.map +0 -1
- package/dist/src/collection/index.d.ts +0 -301
- package/dist/src/collection/index.d.ts.map +0 -1
- package/dist/src/common/index.d.ts +0 -72
- package/dist/src/common/index.d.ts.map +0 -1
- package/dist/src/email/approval-accepted-email.d.ts +0 -21
- package/dist/src/email/approval-accepted-email.d.ts.map +0 -1
- package/dist/src/email/approval-pending-email.d.ts +0 -21
- package/dist/src/email/approval-pending-email.d.ts.map +0 -1
- package/dist/src/email/approval-rejected-email.d.ts +0 -21
- package/dist/src/email/approval-rejected-email.d.ts.map +0 -1
- package/dist/src/email/checkedin-email.d.ts +0 -23
- package/dist/src/email/checkedin-email.d.ts.map +0 -1
- package/dist/src/email/email.d.ts +0 -36
- package/dist/src/email/email.d.ts.map +0 -1
- package/dist/src/email/event-email.d.ts +0 -24
- package/dist/src/email/event-email.d.ts.map +0 -1
- package/dist/src/email/invite-email.d.ts +0 -25
- package/dist/src/email/invite-email.d.ts.map +0 -1
- package/dist/src/email/types.d.ts +0 -63
- package/dist/src/email/types.d.ts.map +0 -1
- package/dist/src/email/utils.d.ts +0 -95
- package/dist/src/email/utils.d.ts.map +0 -1
- package/dist/src/email.d.ts +0 -10
- package/dist/src/email.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -10
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/interactions/index.d.ts +0 -256
- package/dist/src/interactions/index.d.ts.map +0 -1
- package/dist/src/interactor.d.ts +0 -6
- package/dist/src/interactor.d.ts.map +0 -1
- package/dist/src/launchpad/index.d.ts +0 -79
- package/dist/src/launchpad/index.d.ts.map +0 -1
- package/dist/src/nft/index.d.ts +0 -69
- package/dist/src/nft/index.d.ts.map +0 -1
- package/dist/src/scripts/renderEmail.d.ts +0 -2
- package/dist/src/scripts/renderEmail.d.ts.map +0 -1
- package/dist/src/staking/index.d.ts +0 -12
- package/dist/src/staking/index.d.ts.map +0 -1
- package/dist/src/types/collection.d.ts +0 -856
- package/dist/src/types/collection.d.ts.map +0 -1
- package/dist/src/types/common.d.ts +0 -72
- package/dist/src/types/common.d.ts.map +0 -1
- package/dist/src/types/event.d.ts +0 -125
- package/dist/src/types/event.d.ts.map +0 -1
- package/dist/src/types/index.d.ts +0 -9
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/interactions.d.ts +0 -98
- package/dist/src/types/interactions.d.ts.map +0 -1
- package/dist/src/types/nft.d.ts +0 -122
- package/dist/src/types/nft.d.ts.map +0 -1
- package/dist/src/types/staking.d.ts +0 -68
- package/dist/src/types/staking.d.ts.map +0 -1
- package/dist/src/types/trading.d.ts +0 -115
- package/dist/src/types/trading.d.ts.map +0 -1
- package/dist/src/types/user.d.ts +0 -303
- package/dist/src/types/user.d.ts.map +0 -1
- package/dist/src/users/index.d.ts +0 -208
- package/dist/src/users/index.d.ts.map +0 -1
- package/dist/src/utils/SmartContractAbis.d.ts +0 -16
- package/dist/src/utils/SmartContractAbis.d.ts.map +0 -1
- package/dist/src/utils/SmartContractService.d.ts +0 -4
- package/dist/src/utils/SmartContractService.d.ts.map +0 -1
- package/dist/src/utils/api.d.ts +0 -31
- package/dist/src/utils/api.d.ts.map +0 -1
- package/dist/src/utils/const.d.ts +0 -14
- package/dist/src/utils/const.d.ts.map +0 -1
- package/dist/src/utils/getActivity.d.ts +0 -11
- package/dist/src/utils/getActivity.d.ts.map +0 -1
- package/dist/src/utils/helpers.d.ts +0 -4
- package/dist/src/utils/helpers.d.ts.map +0 -1
- package/dist/src/utils/regex.d.ts +0 -3
- package/dist/src/utils/regex.d.ts.map +0 -1
- package/dist/src/utils/scCalls.d.ts +0 -10
- package/dist/src/utils/scCalls.d.ts.map +0 -1
- package/dist/src/utils.d.ts +0 -28
- package/dist/src/utils.d.ts.map +0 -1
package/dist/email/email.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { type ComponentProps } from 'react';
|
|
2
|
-
import { IEmailConfig } from '../utils';
|
|
3
|
-
import type { IBaseNotification, IEmailActivityType } from './types';
|
|
4
|
-
import type { WithUnsubscribeToken } from './utils';
|
|
5
|
-
type IProps = {
|
|
6
|
-
host?: IEmailConfig;
|
|
7
|
-
} & ({
|
|
8
|
-
activityType: Exclude<IEmailActivityType, 'verifyEmail'>;
|
|
9
|
-
payload: {
|
|
10
|
-
name: string;
|
|
11
|
-
address: string;
|
|
12
|
-
nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
|
|
13
|
-
code?: never;
|
|
14
|
-
};
|
|
15
|
-
} | {
|
|
16
|
-
activityType: Extract<IEmailActivityType, 'verifyEmail'>;
|
|
17
|
-
payload: {
|
|
18
|
-
name: string;
|
|
19
|
-
address?: never;
|
|
20
|
-
nft?: never;
|
|
21
|
-
code: string;
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
declare const XOXNOEmail: ({ host, unsubscribeToken, style, ...props }: IProps & WithUnsubscribeToken & {
|
|
25
|
-
style?: {
|
|
26
|
-
background: string;
|
|
27
|
-
backgroundColor: string;
|
|
28
|
-
};
|
|
29
|
-
}) => React.JSX.Element;
|
|
30
|
-
export declare const renderEmail: (props: ComponentProps<typeof XOXNOEmail>) => Promise<{
|
|
31
|
-
html: string;
|
|
32
|
-
plainText: string;
|
|
33
|
-
subject: string;
|
|
34
|
-
}>;
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=email.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/email/email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAMjE,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAGnB,MAAM,SAAS,CAAA;AAahB,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAmJjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB,GAAG,CACA;IACE,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAA;IACxD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAA;QAC5D,IAAI,CAAC,EAAE,KAAK,CAAA;KACb,CAAA;CACF,GACD;IACE,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAA;IACxD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,GAAG,CAAC,EAAE,KAAK,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CACJ,CAAA;AAID,QAAA,MAAM,UAAU,gDAKb,MAAM,GACP,oBAAoB,GAAG;IACrB,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,sBAmJF,CAAA;AAED,eAAO,MAAM,WAAW,UAAiB,cAAc,CAAC,OAAO,UAAU,CAAC;;;;EAIzE,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { type ComponentProps } from 'react';
|
|
2
|
-
import { IEmailConfig } from '../utils';
|
|
3
|
-
import type { IEvent } from './types';
|
|
4
|
-
import type { WithUnsubscribeToken } from './utils';
|
|
5
|
-
type IProps = {
|
|
6
|
-
host?: IEmailConfig;
|
|
7
|
-
name: string;
|
|
8
|
-
event: IEvent & {
|
|
9
|
-
ticketImage: string;
|
|
10
|
-
ticketId: string;
|
|
11
|
-
};
|
|
12
|
-
style?: {
|
|
13
|
-
background: string;
|
|
14
|
-
backgroundColor: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare const EventEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
|
|
18
|
-
export declare const renderEventEmail: (props: ComponentProps<typeof EventEmail>) => Promise<{
|
|
19
|
-
html: string;
|
|
20
|
-
plainText: string;
|
|
21
|
-
subject: string;
|
|
22
|
-
}>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=event-email.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-email.d.ts","sourceRoot":"","sources":["../../src/email/event-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAIL,YAAY,EACb,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAsCjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACzD,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,UAAU,oDAMb,MAAM,GAAG,oBAAoB,sBAuM/B,CAAA;AAED,eAAO,MAAM,gBAAgB,UACpB,cAAc,CAAC,OAAO,UAAU,CAAC;;;;EAKzC,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { type ComponentProps } from 'react';
|
|
2
|
-
import { EventUserRoles } from '../types';
|
|
3
|
-
import { IEmailConfig } from '../utils';
|
|
4
|
-
import { IEvent } from './types';
|
|
5
|
-
import type { WithUnsubscribeToken } from './utils';
|
|
6
|
-
type IProps = {
|
|
7
|
-
host?: IEmailConfig;
|
|
8
|
-
name: string;
|
|
9
|
-
event: Pick<IEvent, 'name' | 'backgroundImage' | 'eventId'> & {
|
|
10
|
-
inviteId: string;
|
|
11
|
-
role: EventUserRoles[];
|
|
12
|
-
};
|
|
13
|
-
style?: {
|
|
14
|
-
background: string;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
declare const InviteEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
|
|
19
|
-
export declare const renderInviteEmail: (props: ComponentProps<typeof InviteEmail>) => Promise<{
|
|
20
|
-
html: string;
|
|
21
|
-
plainText: string;
|
|
22
|
-
subject: string;
|
|
23
|
-
}>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=invite-email.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite-email.d.ts","sourceRoot":"","sources":["../../src/email/invite-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAAc,cAAc,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAgDjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC,GAAG;QAC5D,QAAQ,EAAE,MAAM,CAAA;QAChB,IAAI,EAAE,cAAc,EAAE,CAAA;KACvB,CAAA;IACD,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,WAAW,oDAMd,MAAM,GAAG,oBAAoB,sBAqG/B,CAAA;AAED,eAAO,MAAM,iBAAiB,UACrB,cAAc,CAAC,OAAO,WAAW,CAAC;;;;EAK1C,CAAA"}
|
package/dist/email/types.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { IEventDoc } from '../types';
|
|
2
|
-
import { NftActivityType } from '../types';
|
|
3
|
-
export declare const offerTradeTypes: readonly [NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE];
|
|
4
|
-
export declare const tradeTypes: readonly [NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE];
|
|
5
|
-
export declare const offerTypes: readonly [NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT];
|
|
6
|
-
export declare const bidTypes: readonly [NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID];
|
|
7
|
-
export declare const depositTypes: readonly ["deposit", "withdrawDeposit"];
|
|
8
|
-
export declare const verifyEmailTypes: readonly ["verifyEmail"];
|
|
9
|
-
export type IOfferTradeTypes = (typeof offerTradeTypes)[number];
|
|
10
|
-
export type ITradeTypes = (typeof tradeTypes)[number];
|
|
11
|
-
export type IDepositTypes = (typeof depositTypes)[number];
|
|
12
|
-
export type IBidTypes = (typeof bidTypes)[number];
|
|
13
|
-
export type IOfferTypes = (typeof offerTypes)[number];
|
|
14
|
-
export type IVerifyEmailTypes = (typeof verifyEmailTypes)[number];
|
|
15
|
-
declare const emailActivityTypes: readonly [NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE, NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE, NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT, "deposit", "withdrawDeposit", NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID, "verifyEmail"];
|
|
16
|
-
export type IEmailActivityType = (typeof emailActivityTypes)[number];
|
|
17
|
-
export declare enum NotificationAssetType {
|
|
18
|
-
NFT = "nft",
|
|
19
|
-
USER = "user",
|
|
20
|
-
CHAT = "chat"
|
|
21
|
-
}
|
|
22
|
-
export interface IBaseNotification {
|
|
23
|
-
id: string;
|
|
24
|
-
isRead: boolean;
|
|
25
|
-
txHash: string;
|
|
26
|
-
source: string;
|
|
27
|
-
activityType: IEmailActivityType | '';
|
|
28
|
-
message?: string;
|
|
29
|
-
asset: {
|
|
30
|
-
type: NotificationAssetType;
|
|
31
|
-
collection?: string;
|
|
32
|
-
identifier?: string;
|
|
33
|
-
address?: string;
|
|
34
|
-
name?: string;
|
|
35
|
-
url?: string;
|
|
36
|
-
};
|
|
37
|
-
activity: {
|
|
38
|
-
price?: number;
|
|
39
|
-
paymentToken?: string;
|
|
40
|
-
quantity?: number;
|
|
41
|
-
buyer?: string;
|
|
42
|
-
seller?: string;
|
|
43
|
-
previousBidder?: string;
|
|
44
|
-
deadline?: number;
|
|
45
|
-
unreadCount?: number;
|
|
46
|
-
};
|
|
47
|
-
owner: string;
|
|
48
|
-
timestamp: number;
|
|
49
|
-
}
|
|
50
|
-
export interface INotification extends Omit<IBaseNotification, 'asset'> {
|
|
51
|
-
asset: Omit<IBaseNotification['asset'], 'url'> & {
|
|
52
|
-
url: string[];
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface IEvent {
|
|
56
|
-
name: string;
|
|
57
|
-
backgroundImage: string;
|
|
58
|
-
time: string;
|
|
59
|
-
location: IEventDoc['location'];
|
|
60
|
-
eventId: string;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
63
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/email/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,eAAO,MAAM,eAAe,4EAGlB,CAAA;AAEV,eAAO,MAAM,UAAU,2FAIb,CAAA;AAEV,eAAO,MAAM,UAAU,uEAGb,CAAA;AAEV,eAAO,MAAM,QAAQ,yEAGX,CAAA;AAEV,eAAO,MAAM,YAAY,yCAA0C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,EAAE,MAAM,CAAA;QACd,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACrE,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CACnE;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
package/dist/email/utils.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import React, { type PropsWithChildren, type ReactElement } from 'react';
|
|
3
|
-
import { Button, Heading, Link, Text } from '@react-email/components';
|
|
4
|
-
export declare const MEDIA = "https://media.xoxno.com";
|
|
5
|
-
export type WithUnsubscribeToken = {
|
|
6
|
-
unsubscribeToken: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const defaultBodyStyle: {
|
|
9
|
-
background: string;
|
|
10
|
-
backgroundColor: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const GeneralEmail: ({ title, children, HOST, unsubscribeToken, }: {
|
|
13
|
-
title: string;
|
|
14
|
-
HOST: string;
|
|
15
|
-
} & WithUnsubscribeToken & {
|
|
16
|
-
children: ({ unsubscribeSection, }: {
|
|
17
|
-
unsubscribeSection: ReactNode;
|
|
18
|
-
}) => ReactNode;
|
|
19
|
-
}) => React.JSX.Element;
|
|
20
|
-
export declare const headingStyle: {
|
|
21
|
-
color: "#FFF";
|
|
22
|
-
fontFamily: "Heading, Verdana";
|
|
23
|
-
textAlign: "center";
|
|
24
|
-
fontSize: string;
|
|
25
|
-
fontStyle: "normal";
|
|
26
|
-
fontWeight: "600";
|
|
27
|
-
lineHeight: string;
|
|
28
|
-
};
|
|
29
|
-
export declare const smallHeadingStyle: {
|
|
30
|
-
color: "#FFF";
|
|
31
|
-
fontFamily: "Button, Verdana";
|
|
32
|
-
textAlign: "center";
|
|
33
|
-
fontSize: string;
|
|
34
|
-
fontStyle: "normal";
|
|
35
|
-
fontWeight: "500";
|
|
36
|
-
lineHeight: string;
|
|
37
|
-
};
|
|
38
|
-
export declare const bodyStyle: {
|
|
39
|
-
color: "#D0D0D0";
|
|
40
|
-
textAlign: "center";
|
|
41
|
-
fontFamily: "Body, Verdana";
|
|
42
|
-
fontSize: string;
|
|
43
|
-
fontStyle: "normal";
|
|
44
|
-
fontWeight: "400";
|
|
45
|
-
lineHeight: string;
|
|
46
|
-
};
|
|
47
|
-
export declare const hintStyle: {
|
|
48
|
-
color: "#D0D0D0";
|
|
49
|
-
textAlign: "center";
|
|
50
|
-
fontFamily: "Body, Verdana";
|
|
51
|
-
fontSize: string;
|
|
52
|
-
fontStyle: "normal";
|
|
53
|
-
fontWeight: "300";
|
|
54
|
-
lineHeight: string;
|
|
55
|
-
};
|
|
56
|
-
export declare const highlightStyle: {
|
|
57
|
-
color: "#FFF";
|
|
58
|
-
fontFamily: "Body, Verdana";
|
|
59
|
-
fontSize: string;
|
|
60
|
-
fontStyle: "normal";
|
|
61
|
-
fontWeight: "500";
|
|
62
|
-
lineHeight: string;
|
|
63
|
-
};
|
|
64
|
-
declare const locales: readonly ["en", "de"];
|
|
65
|
-
type ILocale = (typeof locales)[number];
|
|
66
|
-
export type Translations<T = object> = {
|
|
67
|
-
namespace: string;
|
|
68
|
-
translations: {
|
|
69
|
-
en: T;
|
|
70
|
-
} & Partial<{
|
|
71
|
-
[key in Exclude<ILocale, 'en'>]: Partial<T>;
|
|
72
|
-
}>;
|
|
73
|
-
};
|
|
74
|
-
export declare function renderGenericEmail(Email: ReactElement): Promise<{
|
|
75
|
-
html: string;
|
|
76
|
-
plainText: string;
|
|
77
|
-
subject: string;
|
|
78
|
-
}>;
|
|
79
|
-
export declare function FixedHeading({ children, ...props }: ComponentProps<typeof Heading>): React.JSX.Element;
|
|
80
|
-
export declare function FixedText({ children, ...props }: ComponentProps<typeof Text>): React.JSX.Element;
|
|
81
|
-
export declare function FixedLink({ children, disableFix, ...props }: ComponentProps<typeof Link> & {
|
|
82
|
-
disableFix?: boolean;
|
|
83
|
-
}): React.JSX.Element;
|
|
84
|
-
export declare function FixedButton({ children, ...props }: ComponentProps<typeof Button>): React.JSX.Element;
|
|
85
|
-
export declare function Center({ children }: PropsWithChildren): React.JSX.Element;
|
|
86
|
-
export declare function MsFix({ backgroundColor, backgroundImage, }: {
|
|
87
|
-
backgroundColor: string;
|
|
88
|
-
backgroundImage?: string;
|
|
89
|
-
}): React.JSX.Element;
|
|
90
|
-
export declare function ThankYou({ text, isThankYou, }: {
|
|
91
|
-
text: ReactNode;
|
|
92
|
-
isThankYou?: boolean;
|
|
93
|
-
}): React.JSX.Element;
|
|
94
|
-
export {};
|
|
95
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/email/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAA;AAEd,OAA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