promote-email-templates 0.0.19 → 0.1.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/.react-email/.eslintrc.js +52 -0
- package/.react-email/.prettierignore +3 -0
- package/.react-email/.prettierrc.js +8 -0
- package/.react-email/license.md +7 -0
- package/.react-email/next.config.js +36 -0
- package/.react-email/package.json +1 -0
- package/.react-email/postcss.config.js +8 -0
- package/.react-email/readme.md +44 -0
- package/.react-email/src/actions/get-email-path-from-slug.ts +26 -0
- package/.react-email/src/actions/get-emails-directory-metadata.spec.ts +73 -0
- package/.react-email/src/actions/get-emails-directory-metadata.ts +91 -0
- package/.react-email/src/actions/render-email-by-path.tsx +59 -0
- package/.react-email/src/app/favicon.ico +0 -0
- package/.react-email/src/app/globals.css +35 -0
- package/.react-email/src/app/inter.ts +7 -0
- package/.react-email/src/app/layout.tsx +36 -0
- package/.react-email/src/app/logo.png +0 -0
- package/.react-email/src/app/page.tsx +47 -0
- package/.react-email/src/app/preview/[...slug]/page.tsx +65 -0
- package/.react-email/src/app/preview/[...slug]/preview.tsx +141 -0
- package/.react-email/src/app/preview/[...slug]/rendering-error.tsx +40 -0
- package/.react-email/src/components/button.tsx +90 -0
- package/.react-email/src/components/code-container.tsx +145 -0
- package/.react-email/src/components/code.tsx +112 -0
- package/.react-email/src/components/heading.tsx +113 -0
- package/.react-email/src/components/icons/icon-arrow-down.tsx +16 -0
- package/.react-email/src/components/icons/icon-base.tsx +24 -0
- package/.react-email/src/components/icons/icon-button.tsx +23 -0
- package/.react-email/src/components/icons/icon-check.tsx +19 -0
- package/.react-email/src/components/icons/icon-clipboard.tsx +40 -0
- package/.react-email/src/components/icons/icon-download.tsx +19 -0
- package/.react-email/src/components/icons/icon-file.tsx +19 -0
- package/.react-email/src/components/icons/icon-folder-open.tsx +19 -0
- package/.react-email/src/components/icons/icon-folder.tsx +18 -0
- package/.react-email/src/components/icons/icon-hide-sidebar.tsx +23 -0
- package/.react-email/src/components/icons/icon-monitor.tsx +19 -0
- package/.react-email/src/components/icons/icon-phone.tsx +26 -0
- package/.react-email/src/components/icons/icon-source.tsx +19 -0
- package/.react-email/src/components/index.ts +7 -0
- package/.react-email/src/components/logo.tsx +64 -0
- package/.react-email/src/components/send.tsx +135 -0
- package/.react-email/src/components/shell.tsx +115 -0
- package/.react-email/src/components/sidebar/index.ts +1 -0
- package/.react-email/src/components/sidebar/sidebar-directory-children.tsx +134 -0
- package/.react-email/src/components/sidebar/sidebar-directory.tsx +106 -0
- package/.react-email/src/components/sidebar/sidebar.tsx +45 -0
- package/.react-email/src/components/text.tsx +99 -0
- package/.react-email/src/components/tooltip-content.tsx +32 -0
- package/.react-email/src/components/tooltip.tsx +19 -0
- package/.react-email/src/components/topbar.tsx +161 -0
- package/.react-email/src/contexts/emails.tsx +127 -0
- package/.react-email/src/hooks/use-hot-reload.ts +35 -0
- package/.react-email/src/hooks/use-rendering-metadata.ts +36 -0
- package/.react-email/src/utils/cn.ts +6 -0
- package/.react-email/src/utils/constants.ts +6 -0
- package/.react-email/src/utils/copy-text-to-clipboard.ts +7 -0
- package/.react-email/src/utils/emails-directory-absolute-path.ts +34 -0
- package/.react-email/src/utils/get-email-component.ts +108 -0
- package/.react-email/src/utils/improve-error-with-sourcemap.ts +55 -0
- package/.react-email/src/utils/index.ts +5 -0
- package/.react-email/src/utils/language-map.ts +7 -0
- package/.react-email/src/utils/static-node-modules-for-vm.ts +92 -0
- package/.react-email/src/utils/types/as.ts +26 -0
- package/.react-email/src/utils/types/email-template.ts +8 -0
- package/.react-email/src/utils/types/error-object.ts +11 -0
- package/.react-email/src/utils/types/hot-reload-change.ts +6 -0
- package/.react-email/src/utils/types/hot-reload-event.ts +6 -0
- package/.react-email/src/utils/unreachable.ts +8 -0
- package/.react-email/tailwind.config.ts +94 -0
- package/dist/index.d.mts +217 -83
- package/dist/index.d.ts +217 -83
- package/dist/index.js +362 -105
- package/dist/index.mjs +359 -105
- package/package.json +1 -1
- package/emails/admin/abort-order-request.tsx +0 -58
- package/emails/admin/index.ts +0 -2
- package/emails/admin/revert-payment-request-admin.tsx +0 -54
- package/emails/all/index.ts +0 -1
- package/emails/all/welcome.tsx +0 -104
- package/emails/brand/evidences-accepted-brand.tsx +0 -59
- package/emails/brand/evidences-submitted-brand.tsx +0 -65
- package/emails/brand/index.ts +0 -6
- package/emails/brand/new-order-created-brand.tsx +0 -74
- package/emails/brand/order-accepted-brand.tsx +0 -63
- package/emails/brand/order-cancelled-brand.tsx +0 -68
- package/emails/brand/order-rejected-brand.tsx +0 -79
- package/emails/creator/evidences-approved-creator.tsx +0 -62
- package/emails/creator/evidences-rejected-creator.tsx +0 -74
- package/emails/creator/index.ts +0 -5
- package/emails/creator/new-order-created-creator.tsx +0 -70
- package/emails/creator/order-cancelled-creator.tsx +0 -69
- package/emails/creator/order-payment-creator.tsx +0 -58
- package/emails/index.ts +0 -5
- package/emails/shared/components/base-head.tsx +0 -19
- package/emails/shared/components/comment-component.tsx +0 -32
- package/emails/shared/components/footer.tsx +0 -84
- package/emails/shared/components/header.tsx +0 -24
- package/emails/shared/components/new-order-info.tsx +0 -60
- package/emails/shared/components/payment-amount.tsx +0 -37
- package/emails/shared/components/user-Info.tsx +0 -55
- package/emails/shared/index.ts +0 -3
- package/emails/shared/styles.ts +0 -72
- package/emails/shared/types.ts +0 -179
- package/emails/shared/values.ts +0 -19
package/dist/index.d.ts
CHANGED
|
@@ -161,10 +161,78 @@ interface NewOrderCreatedBrandProps {
|
|
|
161
161
|
photo: string;
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
+
interface NewJobCreatedBrandProps {
|
|
165
|
+
brand: {
|
|
166
|
+
name: string;
|
|
167
|
+
};
|
|
168
|
+
campaign: {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
job: {
|
|
173
|
+
id: string;
|
|
174
|
+
createdAt: string;
|
|
175
|
+
jobCommission: string;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
interface NewJobApplicationsReceivedBrandProps {
|
|
179
|
+
brand: {
|
|
180
|
+
name: string;
|
|
181
|
+
};
|
|
182
|
+
campaign: {
|
|
183
|
+
name: string;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
job: {
|
|
187
|
+
id: string;
|
|
188
|
+
jobCommission: string;
|
|
189
|
+
};
|
|
190
|
+
jobApplication: {
|
|
191
|
+
id: string;
|
|
192
|
+
desired_budget?: number;
|
|
193
|
+
observations?: string;
|
|
194
|
+
};
|
|
195
|
+
creatorCandidate: {
|
|
196
|
+
name: string;
|
|
197
|
+
photo: string;
|
|
198
|
+
username: string;
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
interface NewJobApplicationUnapprovedCreatorProps {
|
|
202
|
+
creator: {
|
|
203
|
+
name: string;
|
|
204
|
+
email: string;
|
|
205
|
+
};
|
|
206
|
+
campaign: {
|
|
207
|
+
name: string;
|
|
208
|
+
description: string;
|
|
209
|
+
};
|
|
210
|
+
jobApplication: {
|
|
211
|
+
id: string;
|
|
212
|
+
rejectionReason?: string;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
164
215
|
interface WelcomeTemplateProps {
|
|
165
216
|
name?: string;
|
|
166
217
|
userType: USER_ROLES;
|
|
167
218
|
}
|
|
219
|
+
interface NewMessageNotificationProps {
|
|
220
|
+
recipient: {
|
|
221
|
+
name: string;
|
|
222
|
+
};
|
|
223
|
+
sender: {
|
|
224
|
+
name: string;
|
|
225
|
+
photo: string;
|
|
226
|
+
userType: USER_ROLES;
|
|
227
|
+
username: string;
|
|
228
|
+
};
|
|
229
|
+
message: {
|
|
230
|
+
content: string;
|
|
231
|
+
createdAt: string;
|
|
232
|
+
};
|
|
233
|
+
chatRoomId: string;
|
|
234
|
+
conversationPath: string;
|
|
235
|
+
}
|
|
168
236
|
|
|
169
237
|
declare function AbortOrderRequest(props: AbortOrderRequestProps): react_jsx_runtime.JSX.Element;
|
|
170
238
|
declare namespace AbortOrderRequest {
|
|
@@ -186,6 +254,91 @@ declare namespace RevertPaymentRequestAdmin {
|
|
|
186
254
|
};
|
|
187
255
|
}
|
|
188
256
|
|
|
257
|
+
declare const colors: {
|
|
258
|
+
primary: string;
|
|
259
|
+
white: string;
|
|
260
|
+
black: string;
|
|
261
|
+
grey: string;
|
|
262
|
+
grey01: string;
|
|
263
|
+
};
|
|
264
|
+
declare const rootStyles: {
|
|
265
|
+
width: string;
|
|
266
|
+
height: string;
|
|
267
|
+
backgroundColor: string;
|
|
268
|
+
fontFamily: string;
|
|
269
|
+
};
|
|
270
|
+
declare const baseContentContainer: {
|
|
271
|
+
padding: string;
|
|
272
|
+
maxWidth: string;
|
|
273
|
+
};
|
|
274
|
+
declare const link: {
|
|
275
|
+
color: string;
|
|
276
|
+
textDecoration: string;
|
|
277
|
+
fontWeight: string;
|
|
278
|
+
opacity: number;
|
|
279
|
+
};
|
|
280
|
+
declare const main: {
|
|
281
|
+
backgroundColor: string;
|
|
282
|
+
maxWidth: string;
|
|
283
|
+
width: string;
|
|
284
|
+
height: string;
|
|
285
|
+
marginLeft: string;
|
|
286
|
+
marginRight: string;
|
|
287
|
+
};
|
|
288
|
+
declare const baseContainer: {
|
|
289
|
+
width: string;
|
|
290
|
+
height: string;
|
|
291
|
+
padding: string;
|
|
292
|
+
border: string;
|
|
293
|
+
borderRadius: string;
|
|
294
|
+
};
|
|
295
|
+
declare const button: {
|
|
296
|
+
fontSize: string;
|
|
297
|
+
backgroundColor: string;
|
|
298
|
+
display: string;
|
|
299
|
+
color: string;
|
|
300
|
+
padding: string;
|
|
301
|
+
width: string;
|
|
302
|
+
borderRadius: string;
|
|
303
|
+
justifyContent: string;
|
|
304
|
+
margin: string;
|
|
305
|
+
textAlign: "center";
|
|
306
|
+
fontWeight: string;
|
|
307
|
+
};
|
|
308
|
+
declare const baseText: {
|
|
309
|
+
color: string;
|
|
310
|
+
fontSize: string;
|
|
311
|
+
lineHeight: string;
|
|
312
|
+
};
|
|
313
|
+
declare const centerBlock: {
|
|
314
|
+
display: string;
|
|
315
|
+
margin: string;
|
|
316
|
+
};
|
|
317
|
+
declare const centerText: {
|
|
318
|
+
textAlign: "center";
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
declare const appBaseUrl = "https://promote.co.mz";
|
|
322
|
+
declare const assetsBasePath = "https://s3.us-east-2.amazonaws.com/promote-co-mz/assets";
|
|
323
|
+
declare const appRoutes: {
|
|
324
|
+
homePageRoute: string;
|
|
325
|
+
creatorsList: string;
|
|
326
|
+
creatorPrivateProfile: string;
|
|
327
|
+
termsAndConditions: string;
|
|
328
|
+
jobsList: string;
|
|
329
|
+
creatorOrderDetails: (orderId: string) => string;
|
|
330
|
+
brandOrderDetails: (orderId: string) => string;
|
|
331
|
+
brandJobDetails: (jobId: string) => string;
|
|
332
|
+
adminOrderDetails: (orderId: string) => string;
|
|
333
|
+
creatorPublicProfile: (username: string) => string;
|
|
334
|
+
brandConversation: (conversationPath: string, chatRoomId: string) => string;
|
|
335
|
+
};
|
|
336
|
+
declare const socialNetworkLinks: {
|
|
337
|
+
linkedin: string;
|
|
338
|
+
instagram: string;
|
|
339
|
+
facebook: string;
|
|
340
|
+
};
|
|
341
|
+
|
|
189
342
|
declare function OrderEvidencesAcceptedBrand(props: OrderEvidencesAcceptedBrandProps): react_jsx_runtime.JSX.Element;
|
|
190
343
|
declare namespace OrderEvidencesAcceptedBrand {
|
|
191
344
|
var PreviewProps: {
|
|
@@ -292,6 +445,51 @@ declare namespace OrderRejectedBrand {
|
|
|
292
445
|
};
|
|
293
446
|
}
|
|
294
447
|
|
|
448
|
+
declare function NewJobCreatedBrand(props: NewJobCreatedBrandProps): react_jsx_runtime.JSX.Element;
|
|
449
|
+
declare namespace NewJobCreatedBrand {
|
|
450
|
+
var PreviewProps: {
|
|
451
|
+
brand: {
|
|
452
|
+
name: string;
|
|
453
|
+
};
|
|
454
|
+
campaign: {
|
|
455
|
+
name: string;
|
|
456
|
+
description: string;
|
|
457
|
+
};
|
|
458
|
+
job: {
|
|
459
|
+
id: string;
|
|
460
|
+
createdAt: string;
|
|
461
|
+
jobCommission: string;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
declare function NewJobApplicationsReceivedBrand(props: NewJobApplicationsReceivedBrandProps): react_jsx_runtime.JSX.Element;
|
|
467
|
+
declare namespace NewJobApplicationsReceivedBrand {
|
|
468
|
+
var PreviewProps: {
|
|
469
|
+
brand: {
|
|
470
|
+
name: string;
|
|
471
|
+
};
|
|
472
|
+
campaign: {
|
|
473
|
+
name: string;
|
|
474
|
+
description: string;
|
|
475
|
+
};
|
|
476
|
+
job: {
|
|
477
|
+
id: string;
|
|
478
|
+
jobCommission: string;
|
|
479
|
+
};
|
|
480
|
+
jobApplication: {
|
|
481
|
+
id: string;
|
|
482
|
+
desired_budget: number;
|
|
483
|
+
observations: string;
|
|
484
|
+
};
|
|
485
|
+
creatorCandidate: {
|
|
486
|
+
name: string;
|
|
487
|
+
photo: string;
|
|
488
|
+
username: string;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
|
|
295
493
|
declare function EvidenceApprovedCreator(props: EvidenceApprovedCreatorProps): react_jsx_runtime.JSX.Element;
|
|
296
494
|
declare namespace EvidenceApprovedCreator {
|
|
297
495
|
var PreviewProps: {
|
|
@@ -374,94 +572,30 @@ declare namespace NewOrderCreatedCreator {
|
|
|
374
572
|
};
|
|
375
573
|
}
|
|
376
574
|
|
|
377
|
-
declare
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
declare const link: {
|
|
395
|
-
color: string;
|
|
396
|
-
textDecoration: string;
|
|
397
|
-
fontWeight: string;
|
|
398
|
-
opacity: number;
|
|
399
|
-
};
|
|
400
|
-
declare const main: {
|
|
401
|
-
backgroundColor: string;
|
|
402
|
-
maxWidth: string;
|
|
403
|
-
width: string;
|
|
404
|
-
height: string;
|
|
405
|
-
marginLeft: string;
|
|
406
|
-
marginRight: string;
|
|
407
|
-
};
|
|
408
|
-
declare const baseContainer: {
|
|
409
|
-
width: string;
|
|
410
|
-
height: string;
|
|
411
|
-
padding: string;
|
|
412
|
-
border: string;
|
|
413
|
-
borderRadius: string;
|
|
414
|
-
};
|
|
415
|
-
declare const button: {
|
|
416
|
-
fontSize: string;
|
|
417
|
-
backgroundColor: string;
|
|
418
|
-
display: string;
|
|
419
|
-
color: string;
|
|
420
|
-
padding: string;
|
|
421
|
-
width: string;
|
|
422
|
-
borderRadius: string;
|
|
423
|
-
justifyContent: string;
|
|
424
|
-
margin: string;
|
|
425
|
-
textAlign: "center";
|
|
426
|
-
fontWeight: string;
|
|
427
|
-
};
|
|
428
|
-
declare const baseText: {
|
|
429
|
-
color: string;
|
|
430
|
-
fontSize: string;
|
|
431
|
-
lineHeight: string;
|
|
432
|
-
};
|
|
433
|
-
declare const centerBlock: {
|
|
434
|
-
display: string;
|
|
435
|
-
margin: string;
|
|
436
|
-
};
|
|
437
|
-
declare const centerText: {
|
|
438
|
-
textAlign: "center";
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
declare const appBaseUrl = "https://promote.co.mz";
|
|
442
|
-
declare const assetsBasePath = "https://s3.us-east-2.amazonaws.com/promote-mz.com/assets";
|
|
443
|
-
declare const appRoutes: {
|
|
444
|
-
homePageRoute: string;
|
|
445
|
-
creatorsList: string;
|
|
446
|
-
creatorPrivateProfile: string;
|
|
447
|
-
termsAndConditions: string;
|
|
448
|
-
creatorOrderDetails: (orderId: string) => string;
|
|
449
|
-
brandOrderDetails: (orderId: string) => string;
|
|
450
|
-
adminOrderDetails: (orderId: string) => string;
|
|
451
|
-
creatorPublicProfile: (username: string) => string;
|
|
452
|
-
};
|
|
453
|
-
declare const socialNetworkLinks: {
|
|
454
|
-
linkedin: string;
|
|
455
|
-
instagram: string;
|
|
456
|
-
facebook: string;
|
|
457
|
-
};
|
|
575
|
+
declare function NewJobApplicationUnapprovedCreator(props: NewJobApplicationUnapprovedCreatorProps): react_jsx_runtime.JSX.Element;
|
|
576
|
+
declare namespace NewJobApplicationUnapprovedCreator {
|
|
577
|
+
var PreviewProps: {
|
|
578
|
+
creator: {
|
|
579
|
+
name: string;
|
|
580
|
+
email: string;
|
|
581
|
+
};
|
|
582
|
+
campaign: {
|
|
583
|
+
name: string;
|
|
584
|
+
description: string;
|
|
585
|
+
};
|
|
586
|
+
jobApplication: {
|
|
587
|
+
id: string;
|
|
588
|
+
rejectionReason: string;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
}
|
|
458
592
|
|
|
459
593
|
declare function Welcome({ name, userType }: WelcomeTemplateProps): react_jsx_runtime.JSX.Element;
|
|
460
594
|
declare namespace Welcome {
|
|
461
595
|
var PreviewProps: {
|
|
462
596
|
name: string;
|
|
463
|
-
userType: USER_ROLES.
|
|
597
|
+
userType: USER_ROLES.CREATOR;
|
|
464
598
|
};
|
|
465
599
|
}
|
|
466
600
|
|
|
467
|
-
export { AbortOrderRequest, type AbortOrderRequestProps, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, 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 };
|
|
601
|
+
export { AbortOrderRequest, type AbortOrderRequestProps, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, NewJobApplicationUnapprovedCreator, type NewJobApplicationUnapprovedCreatorProps, NewJobApplicationsReceivedBrand, type NewJobApplicationsReceivedBrandProps, NewJobCreatedBrand, type NewJobCreatedBrandProps, 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 };
|