promote-email-templates 0.1.6 → 0.1.8
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.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +27 -3
- package/dist/index.mjs +20 -0
- package/package.json +17 -14
- package/.react-email/.eslintrc.js +0 -52
- package/.react-email/.prettierignore +0 -3
- package/.react-email/.prettierrc.js +0 -8
- package/.react-email/license.md +0 -7
- package/.react-email/next.config.js +0 -36
- package/.react-email/package.json +0 -1
- package/.react-email/postcss.config.js +0 -8
- package/.react-email/readme.md +0 -44
- package/.react-email/src/actions/get-email-path-from-slug.ts +0 -26
- package/.react-email/src/actions/get-emails-directory-metadata.spec.ts +0 -73
- package/.react-email/src/actions/get-emails-directory-metadata.ts +0 -91
- package/.react-email/src/actions/render-email-by-path.tsx +0 -59
- package/.react-email/src/app/favicon.ico +0 -0
- package/.react-email/src/app/globals.css +0 -35
- package/.react-email/src/app/inter.ts +0 -7
- package/.react-email/src/app/layout.tsx +0 -36
- package/.react-email/src/app/logo.png +0 -0
- package/.react-email/src/app/page.tsx +0 -47
- package/.react-email/src/app/preview/[...slug]/page.tsx +0 -65
- package/.react-email/src/app/preview/[...slug]/preview.tsx +0 -141
- package/.react-email/src/app/preview/[...slug]/rendering-error.tsx +0 -40
- package/.react-email/src/components/button.tsx +0 -90
- package/.react-email/src/components/code-container.tsx +0 -145
- package/.react-email/src/components/code.tsx +0 -112
- package/.react-email/src/components/heading.tsx +0 -113
- package/.react-email/src/components/icons/icon-arrow-down.tsx +0 -16
- package/.react-email/src/components/icons/icon-base.tsx +0 -24
- package/.react-email/src/components/icons/icon-button.tsx +0 -23
- package/.react-email/src/components/icons/icon-check.tsx +0 -19
- package/.react-email/src/components/icons/icon-clipboard.tsx +0 -40
- package/.react-email/src/components/icons/icon-download.tsx +0 -19
- package/.react-email/src/components/icons/icon-file.tsx +0 -19
- package/.react-email/src/components/icons/icon-folder-open.tsx +0 -19
- package/.react-email/src/components/icons/icon-folder.tsx +0 -18
- package/.react-email/src/components/icons/icon-hide-sidebar.tsx +0 -23
- package/.react-email/src/components/icons/icon-monitor.tsx +0 -19
- package/.react-email/src/components/icons/icon-phone.tsx +0 -26
- package/.react-email/src/components/icons/icon-source.tsx +0 -19
- package/.react-email/src/components/index.ts +0 -7
- package/.react-email/src/components/logo.tsx +0 -64
- package/.react-email/src/components/send.tsx +0 -135
- package/.react-email/src/components/shell.tsx +0 -115
- package/.react-email/src/components/sidebar/index.ts +0 -1
- package/.react-email/src/components/sidebar/sidebar-directory-children.tsx +0 -134
- package/.react-email/src/components/sidebar/sidebar-directory.tsx +0 -106
- package/.react-email/src/components/sidebar/sidebar.tsx +0 -45
- package/.react-email/src/components/text.tsx +0 -99
- package/.react-email/src/components/tooltip-content.tsx +0 -32
- package/.react-email/src/components/tooltip.tsx +0 -19
- package/.react-email/src/components/topbar.tsx +0 -161
- package/.react-email/src/contexts/emails.tsx +0 -127
- package/.react-email/src/hooks/use-hot-reload.ts +0 -35
- package/.react-email/src/hooks/use-rendering-metadata.ts +0 -36
- package/.react-email/src/utils/cn.ts +0 -6
- package/.react-email/src/utils/constants.ts +0 -6
- package/.react-email/src/utils/copy-text-to-clipboard.ts +0 -7
- package/.react-email/src/utils/emails-directory-absolute-path.ts +0 -34
- package/.react-email/src/utils/get-email-component.ts +0 -108
- package/.react-email/src/utils/improve-error-with-sourcemap.ts +0 -55
- package/.react-email/src/utils/index.ts +0 -5
- package/.react-email/src/utils/language-map.ts +0 -7
- package/.react-email/src/utils/static-node-modules-for-vm.ts +0 -92
- package/.react-email/src/utils/types/as.ts +0 -26
- package/.react-email/src/utils/types/email-template.ts +0 -8
- package/.react-email/src/utils/types/error-object.ts +0 -11
- package/.react-email/src/utils/types/hot-reload-change.ts +0 -6
- package/.react-email/src/utils/types/hot-reload-event.ts +0 -6
- package/.react-email/src/utils/unreachable.ts +0 -8
- package/.react-email/tailwind.config.ts +0 -94
package/dist/index.d.mts
CHANGED
|
@@ -242,6 +242,8 @@ declare namespace AbortOrderRequest {
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
declare const AbortOrderRequestText: (props: AbortOrderRequestProps) => Promise<string>;
|
|
246
|
+
|
|
245
247
|
declare function RevertPaymentRequestAdmin(props: RevertPaymentRequestAdminProps): react_jsx_runtime.JSX.Element;
|
|
246
248
|
declare namespace RevertPaymentRequestAdmin {
|
|
247
249
|
var PreviewProps: {
|
|
@@ -252,6 +254,8 @@ declare namespace RevertPaymentRequestAdmin {
|
|
|
252
254
|
};
|
|
253
255
|
}
|
|
254
256
|
|
|
257
|
+
declare const RevertPaymentRequestAdminText: (props: RevertPaymentRequestAdminProps) => Promise<string>;
|
|
258
|
+
|
|
255
259
|
declare const colors: {
|
|
256
260
|
primary: string;
|
|
257
261
|
white: string;
|
|
@@ -596,6 +600,8 @@ declare namespace Welcome {
|
|
|
596
600
|
};
|
|
597
601
|
}
|
|
598
602
|
|
|
603
|
+
declare const WelcomeText: (props: WelcomeTemplateProps) => Promise<string>;
|
|
604
|
+
|
|
599
605
|
declare function NewMessageNotification(props: NewMessageNotificationProps): react_jsx_runtime.JSX.Element;
|
|
600
606
|
declare namespace NewMessageNotification {
|
|
601
607
|
var PreviewProps: {
|
|
@@ -614,5 +620,6 @@ declare namespace NewMessageNotification {
|
|
|
614
620
|
chatRoomId: string;
|
|
615
621
|
};
|
|
616
622
|
}
|
|
623
|
+
declare const NewMessageNotificationText: (props: NewMessageNotificationProps) => Promise<string>;
|
|
617
624
|
|
|
618
|
-
export { AbortOrderRequest, type AbortOrderRequestProps, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, NewJobApplicationUnapprovedCreator, type NewJobApplicationUnapprovedCreatorProps, NewJobApplicationsReceivedBrand, type NewJobApplicationsReceivedBrandProps, NewJobCreatedBrand, type NewJobCreatedBrandProps, NewMessageNotification, type NewMessageNotificationProps, NewOrderCreatedBrand, type NewOrderCreatedBrandProps, NewOrderCreatedCreator, type NewOrderCreatedCreatorProps, OrderAcceptedBrand, type OrderAcceptedBrandProps, OrderCancelledBrand, type OrderCancelledBrandProps, OrderCancelledCreator, type OrderCancelledCreatorProps, OrderEvidencesAcceptedBrand, type OrderEvidencesAcceptedBrandProps, type OrderOrderPaymentCreatorProps, OrderPaymentCreator, OrderRejectedBrand, type OrderRejectedBrandProps, RevertPaymentRequestAdmin, type RevertPaymentRequestAdminProps, USER_ROLES, Welcome, type WelcomeTemplateProps, appBaseUrl, appRoutes, assetsBasePath, baseContainer, baseContentContainer, baseText, button, centerBlock, centerText, colors, link, main, rootStyles, socialNetworkLinks };
|
|
625
|
+
export { AbortOrderRequest, type AbortOrderRequestProps, AbortOrderRequestText, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, NewJobApplicationUnapprovedCreator, type NewJobApplicationUnapprovedCreatorProps, NewJobApplicationsReceivedBrand, type NewJobApplicationsReceivedBrandProps, NewJobCreatedBrand, type NewJobCreatedBrandProps, NewMessageNotification, type NewMessageNotificationProps, NewMessageNotificationText, NewOrderCreatedBrand, type NewOrderCreatedBrandProps, NewOrderCreatedCreator, type NewOrderCreatedCreatorProps, OrderAcceptedBrand, type OrderAcceptedBrandProps, OrderCancelledBrand, type OrderCancelledBrandProps, OrderCancelledCreator, type OrderCancelledCreatorProps, OrderEvidencesAcceptedBrand, type OrderEvidencesAcceptedBrandProps, type OrderOrderPaymentCreatorProps, OrderPaymentCreator, OrderRejectedBrand, type OrderRejectedBrandProps, RevertPaymentRequestAdmin, type RevertPaymentRequestAdminProps, RevertPaymentRequestAdminText, USER_ROLES, Welcome, type WelcomeTemplateProps, WelcomeText, appBaseUrl, appRoutes, assetsBasePath, baseContainer, baseContentContainer, baseText, button, centerBlock, centerText, colors, link, main, rootStyles, socialNetworkLinks };
|
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,8 @@ declare namespace AbortOrderRequest {
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
declare const AbortOrderRequestText: (props: AbortOrderRequestProps) => Promise<string>;
|
|
246
|
+
|
|
245
247
|
declare function RevertPaymentRequestAdmin(props: RevertPaymentRequestAdminProps): react_jsx_runtime.JSX.Element;
|
|
246
248
|
declare namespace RevertPaymentRequestAdmin {
|
|
247
249
|
var PreviewProps: {
|
|
@@ -252,6 +254,8 @@ declare namespace RevertPaymentRequestAdmin {
|
|
|
252
254
|
};
|
|
253
255
|
}
|
|
254
256
|
|
|
257
|
+
declare const RevertPaymentRequestAdminText: (props: RevertPaymentRequestAdminProps) => Promise<string>;
|
|
258
|
+
|
|
255
259
|
declare const colors: {
|
|
256
260
|
primary: string;
|
|
257
261
|
white: string;
|
|
@@ -596,6 +600,8 @@ declare namespace Welcome {
|
|
|
596
600
|
};
|
|
597
601
|
}
|
|
598
602
|
|
|
603
|
+
declare const WelcomeText: (props: WelcomeTemplateProps) => Promise<string>;
|
|
604
|
+
|
|
599
605
|
declare function NewMessageNotification(props: NewMessageNotificationProps): react_jsx_runtime.JSX.Element;
|
|
600
606
|
declare namespace NewMessageNotification {
|
|
601
607
|
var PreviewProps: {
|
|
@@ -614,5 +620,6 @@ declare namespace NewMessageNotification {
|
|
|
614
620
|
chatRoomId: string;
|
|
615
621
|
};
|
|
616
622
|
}
|
|
623
|
+
declare const NewMessageNotificationText: (props: NewMessageNotificationProps) => Promise<string>;
|
|
617
624
|
|
|
618
|
-
export { AbortOrderRequest, type AbortOrderRequestProps, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, NewJobApplicationUnapprovedCreator, type NewJobApplicationUnapprovedCreatorProps, NewJobApplicationsReceivedBrand, type NewJobApplicationsReceivedBrandProps, NewJobCreatedBrand, type NewJobCreatedBrandProps, NewMessageNotification, type NewMessageNotificationProps, NewOrderCreatedBrand, type NewOrderCreatedBrandProps, NewOrderCreatedCreator, type NewOrderCreatedCreatorProps, OrderAcceptedBrand, type OrderAcceptedBrandProps, OrderCancelledBrand, type OrderCancelledBrandProps, OrderCancelledCreator, type OrderCancelledCreatorProps, OrderEvidencesAcceptedBrand, type OrderEvidencesAcceptedBrandProps, type OrderOrderPaymentCreatorProps, OrderPaymentCreator, OrderRejectedBrand, type OrderRejectedBrandProps, RevertPaymentRequestAdmin, type RevertPaymentRequestAdminProps, USER_ROLES, Welcome, type WelcomeTemplateProps, appBaseUrl, appRoutes, assetsBasePath, baseContainer, baseContentContainer, baseText, button, centerBlock, centerText, colors, link, main, rootStyles, socialNetworkLinks };
|
|
625
|
+
export { AbortOrderRequest, type AbortOrderRequestProps, AbortOrderRequestText, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, NewJobApplicationUnapprovedCreator, type NewJobApplicationUnapprovedCreatorProps, NewJobApplicationsReceivedBrand, type NewJobApplicationsReceivedBrandProps, NewJobCreatedBrand, type NewJobCreatedBrandProps, NewMessageNotification, type NewMessageNotificationProps, NewMessageNotificationText, NewOrderCreatedBrand, type NewOrderCreatedBrandProps, NewOrderCreatedCreator, type NewOrderCreatedCreatorProps, OrderAcceptedBrand, type OrderAcceptedBrandProps, OrderCancelledBrand, type OrderCancelledBrandProps, OrderCancelledCreator, type OrderCancelledCreatorProps, OrderEvidencesAcceptedBrand, type OrderEvidencesAcceptedBrandProps, type OrderOrderPaymentCreatorProps, OrderPaymentCreator, OrderRejectedBrand, type OrderRejectedBrandProps, RevertPaymentRequestAdmin, type RevertPaymentRequestAdminProps, RevertPaymentRequestAdminText, USER_ROLES, Welcome, type WelcomeTemplateProps, WelcomeText, appBaseUrl, appRoutes, assetsBasePath, baseContainer, baseContentContainer, baseText, button, centerBlock, centerText, colors, link, main, rootStyles, socialNetworkLinks };
|
package/dist/index.js
CHANGED
|
@@ -18,9 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// emails/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
AbortOrderRequest: () => AbortOrderRequest,
|
|
24
|
+
AbortOrderRequestText: () => AbortOrderRequestText,
|
|
24
25
|
EvidenceApprovedCreator: () => EvidenceApprovedCreator,
|
|
25
26
|
EvidencesRejectedCreator: () => EvidencesRejectedCreator,
|
|
26
27
|
EvidencesSubmittedBrand: () => EvidencesSubmittedBrand,
|
|
@@ -28,6 +29,7 @@ __export(emails_exports, {
|
|
|
28
29
|
NewJobApplicationsReceivedBrand: () => NewJobApplicationsReceivedBrand,
|
|
29
30
|
NewJobCreatedBrand: () => NewJobCreatedBrand,
|
|
30
31
|
NewMessageNotification: () => NewMessageNotification,
|
|
32
|
+
NewMessageNotificationText: () => NewMessageNotificationText,
|
|
31
33
|
NewOrderCreatedBrand: () => NewOrderCreatedBrand,
|
|
32
34
|
NewOrderCreatedCreator: () => NewOrderCreatedCreator,
|
|
33
35
|
OrderAcceptedBrand: () => OrderAcceptedBrand,
|
|
@@ -37,8 +39,10 @@ __export(emails_exports, {
|
|
|
37
39
|
OrderPaymentCreator: () => OrderPaymentCreator,
|
|
38
40
|
OrderRejectedBrand: () => OrderRejectedBrand,
|
|
39
41
|
RevertPaymentRequestAdmin: () => RevertPaymentRequestAdmin,
|
|
42
|
+
RevertPaymentRequestAdminText: () => RevertPaymentRequestAdminText,
|
|
40
43
|
USER_ROLES: () => USER_ROLES,
|
|
41
44
|
Welcome: () => Welcome,
|
|
45
|
+
WelcomeText: () => WelcomeText,
|
|
42
46
|
appBaseUrl: () => appBaseUrl,
|
|
43
47
|
appRoutes: () => appRoutes,
|
|
44
48
|
assetsBasePath: () => assetsBasePath,
|
|
@@ -54,7 +58,7 @@ __export(emails_exports, {
|
|
|
54
58
|
rootStyles: () => rootStyles,
|
|
55
59
|
socialNetworkLinks: () => socialNetworkLinks
|
|
56
60
|
});
|
|
57
|
-
module.exports = __toCommonJS(
|
|
61
|
+
module.exports = __toCommonJS(index_exports);
|
|
58
62
|
|
|
59
63
|
// emails/admin/abort-order-request.tsx
|
|
60
64
|
var import_components5 = require("@react-email/components");
|
|
@@ -277,6 +281,7 @@ var userPhoto = {
|
|
|
277
281
|
};
|
|
278
282
|
|
|
279
283
|
// emails/admin/abort-order-request.tsx
|
|
284
|
+
var import_render = require("@react-email/render");
|
|
280
285
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
281
286
|
function AbortOrderRequest(props) {
|
|
282
287
|
const requestedBy = {
|
|
@@ -318,6 +323,9 @@ AbortOrderRequest.PreviewProps = {
|
|
|
318
323
|
},
|
|
319
324
|
requestedBy: "creator" /* CREATOR */
|
|
320
325
|
};
|
|
326
|
+
var AbortOrderRequestText = (props) => {
|
|
327
|
+
return (0, import_render.render)(AbortOrderRequest(props), { plainText: true });
|
|
328
|
+
};
|
|
321
329
|
|
|
322
330
|
// emails/admin/revert-payment-request-admin.tsx
|
|
323
331
|
var import_components7 = require("@react-email/components");
|
|
@@ -356,6 +364,7 @@ var amount = {
|
|
|
356
364
|
};
|
|
357
365
|
|
|
358
366
|
// emails/admin/revert-payment-request-admin.tsx
|
|
367
|
+
var import_render2 = require("@react-email/render");
|
|
359
368
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
360
369
|
function RevertPaymentRequestAdmin(props) {
|
|
361
370
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_components7.Html, { style: rootStyles, children: [
|
|
@@ -389,6 +398,9 @@ RevertPaymentRequestAdmin.PreviewProps = {
|
|
|
389
398
|
},
|
|
390
399
|
totalAmount: "1000,00"
|
|
391
400
|
};
|
|
401
|
+
var RevertPaymentRequestAdminText = (props) => {
|
|
402
|
+
return (0, import_render2.render)(RevertPaymentRequestAdmin(props), { plainText: true });
|
|
403
|
+
};
|
|
392
404
|
|
|
393
405
|
// emails/brand/evidences-accepted-brand.tsx
|
|
394
406
|
var import_components8 = require("@react-email/components");
|
|
@@ -1208,6 +1220,7 @@ var baseText2 = {
|
|
|
1208
1220
|
|
|
1209
1221
|
// emails/all/welcome.tsx
|
|
1210
1222
|
var import_components24 = require("@react-email/components");
|
|
1223
|
+
var import_render3 = require("@react-email/render");
|
|
1211
1224
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1212
1225
|
function Welcome({ name, userType }) {
|
|
1213
1226
|
const content2 = {
|
|
@@ -1292,9 +1305,13 @@ var textInfo = {
|
|
|
1292
1305
|
textAlign: "justify",
|
|
1293
1306
|
whiteSpace: "pre-line"
|
|
1294
1307
|
};
|
|
1308
|
+
var WelcomeText = (props) => {
|
|
1309
|
+
return (0, import_render3.render)(Welcome(props), { plainText: true });
|
|
1310
|
+
};
|
|
1295
1311
|
|
|
1296
1312
|
// emails/all/new-message-notification.tsx
|
|
1297
1313
|
var import_components25 = require("@react-email/components");
|
|
1314
|
+
var import_render4 = require("@react-email/render");
|
|
1298
1315
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1299
1316
|
function NewMessageNotification(props) {
|
|
1300
1317
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Html, { style: rootStyles, children: [
|
|
@@ -1341,9 +1358,13 @@ NewMessageNotification.PreviewProps = {
|
|
|
1341
1358
|
conversationPath: "/conversations",
|
|
1342
1359
|
chatRoomId: "123"
|
|
1343
1360
|
};
|
|
1361
|
+
var NewMessageNotificationText = (props) => {
|
|
1362
|
+
return (0, import_render4.render)(NewMessageNotification(props), { plainText: true });
|
|
1363
|
+
};
|
|
1344
1364
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1345
1365
|
0 && (module.exports = {
|
|
1346
1366
|
AbortOrderRequest,
|
|
1367
|
+
AbortOrderRequestText,
|
|
1347
1368
|
EvidenceApprovedCreator,
|
|
1348
1369
|
EvidencesRejectedCreator,
|
|
1349
1370
|
EvidencesSubmittedBrand,
|
|
@@ -1351,6 +1372,7 @@ NewMessageNotification.PreviewProps = {
|
|
|
1351
1372
|
NewJobApplicationsReceivedBrand,
|
|
1352
1373
|
NewJobCreatedBrand,
|
|
1353
1374
|
NewMessageNotification,
|
|
1375
|
+
NewMessageNotificationText,
|
|
1354
1376
|
NewOrderCreatedBrand,
|
|
1355
1377
|
NewOrderCreatedCreator,
|
|
1356
1378
|
OrderAcceptedBrand,
|
|
@@ -1360,8 +1382,10 @@ NewMessageNotification.PreviewProps = {
|
|
|
1360
1382
|
OrderPaymentCreator,
|
|
1361
1383
|
OrderRejectedBrand,
|
|
1362
1384
|
RevertPaymentRequestAdmin,
|
|
1385
|
+
RevertPaymentRequestAdminText,
|
|
1363
1386
|
USER_ROLES,
|
|
1364
1387
|
Welcome,
|
|
1388
|
+
WelcomeText,
|
|
1365
1389
|
appBaseUrl,
|
|
1366
1390
|
appRoutes,
|
|
1367
1391
|
assetsBasePath,
|
package/dist/index.mjs
CHANGED
|
@@ -219,6 +219,7 @@ var userPhoto = {
|
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
// emails/admin/abort-order-request.tsx
|
|
222
|
+
import { render } from "@react-email/render";
|
|
222
223
|
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
223
224
|
function AbortOrderRequest(props) {
|
|
224
225
|
const requestedBy = {
|
|
@@ -260,6 +261,9 @@ AbortOrderRequest.PreviewProps = {
|
|
|
260
261
|
},
|
|
261
262
|
requestedBy: "creator" /* CREATOR */
|
|
262
263
|
};
|
|
264
|
+
var AbortOrderRequestText = (props) => {
|
|
265
|
+
return render(AbortOrderRequest(props), { plainText: true });
|
|
266
|
+
};
|
|
263
267
|
|
|
264
268
|
// emails/admin/revert-payment-request-admin.tsx
|
|
265
269
|
import { Body as Body2, Container as Container6, Html as Html2, Link as Link5, Preview as Preview2, Text as Text5 } from "@react-email/components";
|
|
@@ -298,6 +302,7 @@ var amount = {
|
|
|
298
302
|
};
|
|
299
303
|
|
|
300
304
|
// emails/admin/revert-payment-request-admin.tsx
|
|
305
|
+
import { render as render2 } from "@react-email/render";
|
|
301
306
|
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
302
307
|
function RevertPaymentRequestAdmin(props) {
|
|
303
308
|
return /* @__PURE__ */ jsxs5(Html2, { style: rootStyles, children: [
|
|
@@ -331,6 +336,9 @@ RevertPaymentRequestAdmin.PreviewProps = {
|
|
|
331
336
|
},
|
|
332
337
|
totalAmount: "1000,00"
|
|
333
338
|
};
|
|
339
|
+
var RevertPaymentRequestAdminText = (props) => {
|
|
340
|
+
return render2(RevertPaymentRequestAdmin(props), { plainText: true });
|
|
341
|
+
};
|
|
334
342
|
|
|
335
343
|
// emails/brand/evidences-accepted-brand.tsx
|
|
336
344
|
import { Body as Body3, Container as Container7, Html as Html3, Link as Link6, Preview as Preview3, Text as Text6 } from "@react-email/components";
|
|
@@ -1150,6 +1158,7 @@ var baseText2 = {
|
|
|
1150
1158
|
|
|
1151
1159
|
// emails/all/welcome.tsx
|
|
1152
1160
|
import { Body as Body17, Container as Container22, Heading as Heading3, Html as Html17, Img as Img4, Link as Link20, Preview as Preview17, Text as Text22 } from "@react-email/components";
|
|
1161
|
+
import { render as render3 } from "@react-email/render";
|
|
1153
1162
|
import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1154
1163
|
function Welcome({ name, userType }) {
|
|
1155
1164
|
const content2 = {
|
|
@@ -1234,9 +1243,13 @@ var textInfo = {
|
|
|
1234
1243
|
textAlign: "justify",
|
|
1235
1244
|
whiteSpace: "pre-line"
|
|
1236
1245
|
};
|
|
1246
|
+
var WelcomeText = (props) => {
|
|
1247
|
+
return render3(Welcome(props), { plainText: true });
|
|
1248
|
+
};
|
|
1237
1249
|
|
|
1238
1250
|
// emails/all/new-message-notification.tsx
|
|
1239
1251
|
import { Body as Body18, Container as Container23, Html as Html18, Link as Link21, Preview as Preview18, Text as Text23 } from "@react-email/components";
|
|
1252
|
+
import { render as render4 } from "@react-email/render";
|
|
1240
1253
|
import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1241
1254
|
function NewMessageNotification(props) {
|
|
1242
1255
|
return /* @__PURE__ */ jsxs23(Html18, { style: rootStyles, children: [
|
|
@@ -1283,8 +1296,12 @@ NewMessageNotification.PreviewProps = {
|
|
|
1283
1296
|
conversationPath: "/conversations",
|
|
1284
1297
|
chatRoomId: "123"
|
|
1285
1298
|
};
|
|
1299
|
+
var NewMessageNotificationText = (props) => {
|
|
1300
|
+
return render4(NewMessageNotification(props), { plainText: true });
|
|
1301
|
+
};
|
|
1286
1302
|
export {
|
|
1287
1303
|
AbortOrderRequest,
|
|
1304
|
+
AbortOrderRequestText,
|
|
1288
1305
|
EvidenceApprovedCreator,
|
|
1289
1306
|
EvidencesRejectedCreator,
|
|
1290
1307
|
EvidencesSubmittedBrand,
|
|
@@ -1292,6 +1309,7 @@ export {
|
|
|
1292
1309
|
NewJobApplicationsReceivedBrand,
|
|
1293
1310
|
NewJobCreatedBrand,
|
|
1294
1311
|
NewMessageNotification,
|
|
1312
|
+
NewMessageNotificationText,
|
|
1295
1313
|
NewOrderCreatedBrand,
|
|
1296
1314
|
NewOrderCreatedCreator,
|
|
1297
1315
|
OrderAcceptedBrand,
|
|
@@ -1301,8 +1319,10 @@ export {
|
|
|
1301
1319
|
OrderPaymentCreator,
|
|
1302
1320
|
OrderRejectedBrand,
|
|
1303
1321
|
RevertPaymentRequestAdmin,
|
|
1322
|
+
RevertPaymentRequestAdminText,
|
|
1304
1323
|
USER_ROLES,
|
|
1305
1324
|
Welcome,
|
|
1325
|
+
WelcomeText,
|
|
1306
1326
|
appBaseUrl,
|
|
1307
1327
|
appRoutes,
|
|
1308
1328
|
assetsBasePath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promote-email-templates",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Promote Email Templates",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,20 +13,23 @@
|
|
|
13
13
|
"build:tsup": "tsup"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@react-email/components": "0.0.
|
|
17
|
-
"react": "
|
|
18
|
-
"
|
|
16
|
+
"@react-email/components": "0.0.41",
|
|
17
|
+
"@react-email/render": "^1.1.2",
|
|
18
|
+
"postcss": "^8.5.3",
|
|
19
|
+
"react": "19.1.0",
|
|
20
|
+
"react-dom": "19.1.0",
|
|
21
|
+
"react-email": "4.0.15"
|
|
19
22
|
},
|
|
20
23
|
"devDependencies": {
|
|
21
|
-
"@types/react": "
|
|
22
|
-
"@types/react-dom": "
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
24
|
-
"@typescript-eslint/parser": "^
|
|
25
|
-
"eslint": "^
|
|
26
|
-
"eslint-config-prettier": "^
|
|
27
|
-
"eslint-plugin-prettier": "^
|
|
28
|
-
"prettier": "3.
|
|
29
|
-
"tsup": "^8.0
|
|
30
|
-
"typescript": "^5.
|
|
24
|
+
"@types/react": "19.1.5",
|
|
25
|
+
"@types/react-dom": "19.1.5",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
27
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
28
|
+
"eslint": "^9.27.0",
|
|
29
|
+
"eslint-config-prettier": "^10.1.5",
|
|
30
|
+
"eslint-plugin-prettier": "^2.7.0",
|
|
31
|
+
"prettier": "3.5.3",
|
|
32
|
+
"tsup": "^8.5.0",
|
|
33
|
+
"typescript": "^5.8.3"
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const { resolve } = require('node:path');
|
|
2
|
-
|
|
3
|
-
const project = resolve(process.cwd(), './tsconfig.json');
|
|
4
|
-
|
|
5
|
-
/** @type {import('eslint').ESLint.ConfigData} */
|
|
6
|
-
module.exports = {
|
|
7
|
-
extends: [
|
|
8
|
-
"@vercel/style-guide/eslint/node",
|
|
9
|
-
"@vercel/style-guide/eslint/browser",
|
|
10
|
-
"@vercel/style-guide/eslint/typescript",
|
|
11
|
-
"@vercel/style-guide/eslint/react",
|
|
12
|
-
"@vercel/style-guide/eslint/next",
|
|
13
|
-
"eslint-config-turbo",
|
|
14
|
-
]
|
|
15
|
-
.map(require.resolve)
|
|
16
|
-
.concat(["eslint-config-prettier"]),
|
|
17
|
-
parserOptions: {
|
|
18
|
-
project,
|
|
19
|
-
},
|
|
20
|
-
globals: {
|
|
21
|
-
React: true,
|
|
22
|
-
JSX: true,
|
|
23
|
-
},
|
|
24
|
-
settings: {
|
|
25
|
-
"import/resolver": {
|
|
26
|
-
typescript: {
|
|
27
|
-
project,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
ignorePatterns: ['cli/', 'cli/index.mjs', "node_modules/", "dist/"],
|
|
32
|
-
rules: {
|
|
33
|
-
"@next/next/no-img-element": "off",
|
|
34
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
35
|
-
"import/no-default-export": "off",
|
|
36
|
-
"jsx-a11y/no-autofocus": "off",
|
|
37
|
-
"no-alert": "off",
|
|
38
|
-
"react/no-array-index-key": "off",
|
|
39
|
-
"react/function-component-definition": [
|
|
40
|
-
2,
|
|
41
|
-
{
|
|
42
|
-
namedComponents: "arrow-function",
|
|
43
|
-
unnamedComponents: "arrow-function",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
'import/no-cycle': 'off',
|
|
47
|
-
'import/no-extraneous-dependencies': 'off',
|
|
48
|
-
'turbo/no-undeclared-env-vars': 'off',
|
|
49
|
-
'eslint-comments/require-description': 'off',
|
|
50
|
-
'no-console': 'off',
|
|
51
|
-
},
|
|
52
|
-
};
|
package/.react-email/license.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright 2024 Plus Five Five, Inc
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const path = require('path');
|
|
3
|
-
/** @type {import('next').NextConfig} */
|
|
4
|
-
module.exports = {
|
|
5
|
-
env: {
|
|
6
|
-
...{"NEXT_PUBLIC_EMAILS_DIR_RELATIVE_PATH":"./emails","NEXT_PUBLIC_CLI_PACKAGE_LOCATION":"PLACEHOLDER","NEXT_PUBLIC_OS_PATH_SEPARATOR":"/","NEXT_PUBLIC_USER_PROJECT_LOCATION":"PLACEHOLDER","NEXT_PUBLIC_IS_BUILDING":"true"},
|
|
7
|
-
NEXT_PUBLIC_USER_PROJECT_LOCATION: path.resolve(process.cwd(), '../'),
|
|
8
|
-
NEXT_PUBLIC_CLI_PACKAGE_LOCATION: process.cwd(),
|
|
9
|
-
},
|
|
10
|
-
// this is needed so that the code for building emails works properly
|
|
11
|
-
webpack: (
|
|
12
|
-
/** @type {import('webpack').Configuration & { externals: string[] }} */
|
|
13
|
-
config,
|
|
14
|
-
{ isServer }
|
|
15
|
-
) => {
|
|
16
|
-
if (isServer) {
|
|
17
|
-
config.externals.push('esbuild');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return config;
|
|
21
|
-
},
|
|
22
|
-
typescript: {
|
|
23
|
-
ignoreBuildErrors: true
|
|
24
|
-
},
|
|
25
|
-
eslint: {
|
|
26
|
-
ignoreDuringBuilds: true
|
|
27
|
-
},
|
|
28
|
-
experimental: {
|
|
29
|
-
webpackBuildWorker: true,
|
|
30
|
-
serverComponentsExternalPackages: [
|
|
31
|
-
'@react-email/components',
|
|
32
|
-
'@react-email/render',
|
|
33
|
-
'@react-email/tailwind',
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"react-email","version":"2.1.0","description":"A live preview of your emails right in your browser.","bin":{"email":"./cli/index.js"},"license":"MIT","repository":{"type":"git","url":"https://github.com/resend/react-email.git","directory":"packages/react-email"},"keywords":["react","email"],"engines":{"node":">=18.0.0"},"dependencies":{"@radix-ui/colors":"1.0.1","@radix-ui/react-collapsible":"1.0.3","@radix-ui/react-popover":"1.0.6","@radix-ui/react-slot":"1.0.2","@radix-ui/react-toggle-group":"1.0.4","@radix-ui/react-tooltip":"1.0.6","@react-email/components":"0.0.15","@react-email/render":"0.0.12","@swc/core":"1.3.101","@types/react":"^18.2.0","@types/react-dom":"^18.2.0","@types/webpack":"5.28.5","autoprefixer":"10.4.14","chalk":"4.1.2","chokidar":"3.5.3","clsx":"2.1.0","commander":"11.1.0","debounce":"2.0.0","esbuild":"0.19.11","eslint-config-prettier":"9.0.0","eslint-config-turbo":"1.10.12","framer-motion":"10.17.4","glob":"10.3.4","log-symbols":"4.1.0","mime-types":"2.1.35","next":"14.1.0","normalize-path":"3.0.0","ora":"5.4.1","postcss":"8.4.35","prism-react-renderer":"2.1.0","react":"^18.2.0","react-dom":"^18.2.0","shelljs":"0.8.5","socket.io":"4.7.3","socket.io-client":"4.7.3","sonner":"1.3.1","source-map-js":"1.0.2","stacktrace-parser":"0.1.10","tailwind-merge":"2.2.0","tailwindcss":"3.4.0","tree-cli":"0.6.7","typescript":"5.1.6","sharp":"0.33.2"},"devDependencies":{"@types/fs-extra":"11.0.1","@types/mime-types":"2.1.4","@types/node":"18.0.0","@types/normalize-path":"3.0.2","@types/shelljs":"0.8.15","@vercel/style-guide":"5.1.0","eslint":"8.50.0","tsup":"7.2.0","tsx":"4.7.0","vitest":"1.1.3","watch":"1.0.2"},"scripts":{"build":"next build","dev":"tsup --watch","test":"vitest run","clean":"rm -rf dist","lint":"eslint . && tsc","start":"next start"}}
|
package/.react-email/readme.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<div align="center"><strong>React Email</strong></div>
|
|
4
|
-
<div align="center">The next generation of writing emails.<br />High-quality, unstyled components for creating emails.</div>
|
|
5
|
-
<br />
|
|
6
|
-
<div align="center">
|
|
7
|
-
<a href="https://react.email">Website</a>
|
|
8
|
-
<span> · </span>
|
|
9
|
-
<a href="https://github.com/resend/react-email">GitHub</a>
|
|
10
|
-
<span> · </span>
|
|
11
|
-
<a href="https://react.email/discord">Discord</a>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
## Getting started
|
|
15
|
-
|
|
16
|
-
To get started, open a new shell and run:
|
|
17
|
-
|
|
18
|
-
```sh
|
|
19
|
-
npx create-email
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
This will create a new folder called `emails` with a few email templates.
|
|
23
|
-
|
|
24
|
-
## Commands
|
|
25
|
-
|
|
26
|
-
### `email dev`
|
|
27
|
-
|
|
28
|
-
Starts a local development server that will watch your files and automatically rebuild your email when you make changes.
|
|
29
|
-
|
|
30
|
-
```sh
|
|
31
|
-
npx react-email dev
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### `email export`
|
|
35
|
-
|
|
36
|
-
Generates the plain HTML files of your emails into a `out` directory.
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
npx react-email export
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## License
|
|
43
|
-
|
|
44
|
-
MIT License
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use server';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import { emailsDirectoryAbsolutePath } from '../utils/emails-directory-absolute-path';
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
7
|
-
export const getEmailPathFromSlug = async (slug: string) => {
|
|
8
|
-
if (['.tsx', '.jsx', '.js'].includes(path.extname(slug)))
|
|
9
|
-
return path.join(emailsDirectoryAbsolutePath, slug);
|
|
10
|
-
|
|
11
|
-
const pathWithoutExtension = path.join(emailsDirectoryAbsolutePath, slug);
|
|
12
|
-
|
|
13
|
-
if (fs.existsSync(`${pathWithoutExtension}.tsx`)) {
|
|
14
|
-
return `${pathWithoutExtension}.tsx`;
|
|
15
|
-
} else if (fs.existsSync(`${pathWithoutExtension}.jsx`)) {
|
|
16
|
-
return `${pathWithoutExtension}.jsx`;
|
|
17
|
-
} else if (fs.existsSync(`${pathWithoutExtension}.js`)) {
|
|
18
|
-
return `${pathWithoutExtension}.jsx`;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
throw new Error(
|
|
22
|
-
`Could not find your email file based on the slug by guessing the file extension. Tried .tsx, .jsx and .js.
|
|
23
|
-
|
|
24
|
-
This is most likely not an issue with the preview server. It most likely is that the email doesn't exist.`,
|
|
25
|
-
);
|
|
26
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { getEmailsDirectoryMetadata } from './get-emails-directory-metadata';
|
|
3
|
-
|
|
4
|
-
test('getEmailsDirectoryMetadata on demo emails', async () => {
|
|
5
|
-
const emailsDirectoryPath = path.resolve(
|
|
6
|
-
__dirname,
|
|
7
|
-
'../../../../apps/demo/emails/',
|
|
8
|
-
);
|
|
9
|
-
expect(await getEmailsDirectoryMetadata(emailsDirectoryPath)).toEqual({
|
|
10
|
-
absolutePath: emailsDirectoryPath,
|
|
11
|
-
directoryName: 'emails',
|
|
12
|
-
emailFilenames: [],
|
|
13
|
-
subDirectories: [
|
|
14
|
-
{
|
|
15
|
-
absolutePath: `${emailsDirectoryPath}/magic-links`,
|
|
16
|
-
directoryName: 'magic-links',
|
|
17
|
-
emailFilenames: [
|
|
18
|
-
'aws-verify-email',
|
|
19
|
-
'linear-login-code',
|
|
20
|
-
'notion-magic-link',
|
|
21
|
-
'plaid-verify-identity',
|
|
22
|
-
'raycast-magic-link',
|
|
23
|
-
'slack-confirm',
|
|
24
|
-
],
|
|
25
|
-
subDirectories: [],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
absolutePath: `${emailsDirectoryPath}/newsletters`,
|
|
29
|
-
directoryName: 'newsletters',
|
|
30
|
-
emailFilenames: [
|
|
31
|
-
'codepen-challengers',
|
|
32
|
-
'google-play-policy-update',
|
|
33
|
-
'stack-overflow-tips',
|
|
34
|
-
],
|
|
35
|
-
subDirectories: [],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
absolutePath: `${emailsDirectoryPath}/notifications`,
|
|
39
|
-
directoryName: 'notifications',
|
|
40
|
-
emailFilenames: [
|
|
41
|
-
'github-access-token',
|
|
42
|
-
'vercel-invite-user',
|
|
43
|
-
'yelp-recent-login',
|
|
44
|
-
],
|
|
45
|
-
subDirectories: [],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
absolutePath: `${emailsDirectoryPath}/receipts`,
|
|
49
|
-
directoryName: 'receipts',
|
|
50
|
-
emailFilenames: ['apple-receipt', 'nike-receipt'],
|
|
51
|
-
subDirectories: [],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
absolutePath: `${emailsDirectoryPath}/reset-password`,
|
|
55
|
-
directoryName: 'reset-password',
|
|
56
|
-
emailFilenames: ['dropbox-reset-password', 'twitch-reset-password'],
|
|
57
|
-
subDirectories: [],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
absolutePath: `${emailsDirectoryPath}/reviews`,
|
|
61
|
-
directoryName: 'reviews',
|
|
62
|
-
emailFilenames: ['airbnb-review', 'amazon-review'],
|
|
63
|
-
subDirectories: [],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
absolutePath: `${emailsDirectoryPath}/welcome`,
|
|
67
|
-
directoryName: 'welcome',
|
|
68
|
-
emailFilenames: ['koala-welcome', 'netlify-welcome', 'stripe-welcome'],
|
|
69
|
-
subDirectories: [],
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
});
|
|
73
|
-
});
|