promote-email-templates 0.0.2 → 0.0.3

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.
Files changed (74) hide show
  1. package/.react-email/.eslintrc.js +52 -0
  2. package/.react-email/.prettierignore +3 -0
  3. package/.react-email/.prettierrc.js +8 -0
  4. package/.react-email/license.md +7 -0
  5. package/.react-email/next.config.js +36 -0
  6. package/.react-email/package.json +1 -0
  7. package/.react-email/postcss.config.js +8 -0
  8. package/.react-email/readme.md +44 -0
  9. package/.react-email/src/actions/get-email-path-from-slug.ts +26 -0
  10. package/.react-email/src/actions/get-emails-directory-metadata.spec.ts +73 -0
  11. package/.react-email/src/actions/get-emails-directory-metadata.ts +91 -0
  12. package/.react-email/src/actions/render-email-by-path.tsx +59 -0
  13. package/.react-email/src/app/favicon.ico +0 -0
  14. package/.react-email/src/app/globals.css +35 -0
  15. package/.react-email/src/app/inter.ts +7 -0
  16. package/.react-email/src/app/layout.tsx +36 -0
  17. package/.react-email/src/app/logo.png +0 -0
  18. package/.react-email/src/app/page.tsx +47 -0
  19. package/.react-email/src/app/preview/[...slug]/page.tsx +65 -0
  20. package/.react-email/src/app/preview/[...slug]/preview.tsx +141 -0
  21. package/.react-email/src/app/preview/[...slug]/rendering-error.tsx +40 -0
  22. package/.react-email/src/components/button.tsx +90 -0
  23. package/.react-email/src/components/code-container.tsx +145 -0
  24. package/.react-email/src/components/code.tsx +112 -0
  25. package/.react-email/src/components/heading.tsx +113 -0
  26. package/.react-email/src/components/icons/icon-arrow-down.tsx +16 -0
  27. package/.react-email/src/components/icons/icon-base.tsx +24 -0
  28. package/.react-email/src/components/icons/icon-button.tsx +23 -0
  29. package/.react-email/src/components/icons/icon-check.tsx +19 -0
  30. package/.react-email/src/components/icons/icon-clipboard.tsx +40 -0
  31. package/.react-email/src/components/icons/icon-download.tsx +19 -0
  32. package/.react-email/src/components/icons/icon-file.tsx +19 -0
  33. package/.react-email/src/components/icons/icon-folder-open.tsx +19 -0
  34. package/.react-email/src/components/icons/icon-folder.tsx +18 -0
  35. package/.react-email/src/components/icons/icon-hide-sidebar.tsx +23 -0
  36. package/.react-email/src/components/icons/icon-monitor.tsx +19 -0
  37. package/.react-email/src/components/icons/icon-phone.tsx +26 -0
  38. package/.react-email/src/components/icons/icon-source.tsx +19 -0
  39. package/.react-email/src/components/index.ts +7 -0
  40. package/.react-email/src/components/logo.tsx +64 -0
  41. package/.react-email/src/components/send.tsx +135 -0
  42. package/.react-email/src/components/shell.tsx +115 -0
  43. package/.react-email/src/components/sidebar/index.ts +1 -0
  44. package/.react-email/src/components/sidebar/sidebar-directory-children.tsx +134 -0
  45. package/.react-email/src/components/sidebar/sidebar-directory.tsx +106 -0
  46. package/.react-email/src/components/sidebar/sidebar.tsx +45 -0
  47. package/.react-email/src/components/text.tsx +99 -0
  48. package/.react-email/src/components/tooltip-content.tsx +32 -0
  49. package/.react-email/src/components/tooltip.tsx +19 -0
  50. package/.react-email/src/components/topbar.tsx +161 -0
  51. package/.react-email/src/contexts/emails.tsx +127 -0
  52. package/.react-email/src/hooks/use-hot-reload.ts +35 -0
  53. package/.react-email/src/hooks/use-rendering-metadata.ts +36 -0
  54. package/.react-email/src/utils/cn.ts +6 -0
  55. package/.react-email/src/utils/constants.ts +6 -0
  56. package/.react-email/src/utils/copy-text-to-clipboard.ts +7 -0
  57. package/.react-email/src/utils/emails-directory-absolute-path.ts +34 -0
  58. package/.react-email/src/utils/get-email-component.ts +108 -0
  59. package/.react-email/src/utils/improve-error-with-sourcemap.ts +55 -0
  60. package/.react-email/src/utils/index.ts +5 -0
  61. package/.react-email/src/utils/language-map.ts +7 -0
  62. package/.react-email/src/utils/static-node-modules-for-vm.ts +92 -0
  63. package/.react-email/src/utils/types/as.ts +26 -0
  64. package/.react-email/src/utils/types/email-template.ts +8 -0
  65. package/.react-email/src/utils/types/error-object.ts +11 -0
  66. package/.react-email/src/utils/types/hot-reload-change.ts +6 -0
  67. package/.react-email/src/utils/types/hot-reload-event.ts +6 -0
  68. package/.react-email/src/utils/unreachable.ts +8 -0
  69. package/.react-email/tailwind.config.ts +94 -0
  70. package/dist/index.d.mts +208 -82
  71. package/dist/index.d.ts +208 -82
  72. package/dist/index.js +292 -91
  73. package/dist/index.mjs +289 -91
  74. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -46,7 +46,7 @@ var button = {
46
46
  display: "block",
47
47
  color: colors.white,
48
48
  padding: "15px 20px",
49
- width: "auto",
49
+ width: "fit-content",
50
50
  borderRadius: "8px",
51
51
  justifyContent: "center",
52
52
  margin: "0 auto",
@@ -77,8 +77,10 @@ var appRoutes = {
77
77
  creatorsList: `${appBaseUrl}/content-creators`,
78
78
  creatorPrivateProfile: `${appBaseUrl}/content-creators/profile`,
79
79
  termsAndConditions: `${appBaseUrl}/terms-and-conditions`,
80
+ jobsList: `${appBaseUrl}/jobs`,
80
81
  creatorOrderDetails: (orderId) => `${appBaseUrl}/content-creators/profile/orders/${orderId}`,
81
82
  brandOrderDetails: (orderId) => `${appBaseUrl}/brands/orders/${orderId}`,
83
+ brandJobDetails: (jobId) => `${appBaseUrl}/brands/jobs/${jobId}`,
82
84
  adminOrderDetails: (orderId) => `${appBaseUrl}/admin/orders/${orderId}`,
83
85
  creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}`
84
86
  };
@@ -438,7 +440,7 @@ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
438
440
  function NewOrderInfo(props) {
439
441
  return /* @__PURE__ */ jsxs8(Section2, { children: [
440
442
  /* @__PURE__ */ jsxs8(Row2, { style: rowItem, children: [
441
- /* @__PURE__ */ jsx10(Column2, { children: /* @__PURE__ */ jsx10(Text8, { style: leftText, children: "Paconte:" }) }),
443
+ /* @__PURE__ */ jsx10(Column2, { children: /* @__PURE__ */ jsx10(Text8, { style: leftText, children: "Pacote:" }) }),
442
444
  /* @__PURE__ */ jsx10(Column2, { align: "right", children: /* @__PURE__ */ jsx10(Text8, { style: rightText, children: props.packageName }) })
443
445
  ] }),
444
446
  /* @__PURE__ */ jsxs8(Row2, { style: rowItem, children: [
@@ -715,33 +717,169 @@ var reasonContainer2 = {
715
717
  margin: "30px 0"
716
718
  };
717
719
 
718
- // emails/creator/evidences-approved-creator.tsx
720
+ // emails/brand/new-job-created-brand.tsx
719
721
  import { Body as Body9, Container as Container14, Html as Html9, Link as Link12, Preview as Preview9, Text as Text14 } from "@react-email/components";
720
722
  import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
721
- function EvidenceApprovedCreator(props) {
723
+ function NewJobCreatedBrand(props) {
722
724
  return /* @__PURE__ */ jsxs14(Html9, { style: rootStyles, children: [
723
725
  /* @__PURE__ */ jsx16(BaseHead, {}),
724
- /* @__PURE__ */ jsx16(Preview9, { children: "Evid\xEAncia aprovada \u2705" }),
726
+ /* @__PURE__ */ jsx16(Preview9, { children: "Novo Job Publicado" }),
725
727
  /* @__PURE__ */ jsxs14(Body9, { style: { ...main, ...baseContainer }, children: [
726
728
  /* @__PURE__ */ jsx16(Header, {}),
727
- /* @__PURE__ */ jsx16(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
728
729
  /* @__PURE__ */ jsxs14(Container14, { style: { ...baseContentContainer }, children: [
729
730
  /* @__PURE__ */ jsxs14(Text14, { style: baseText, children: [
731
+ "Ol\xE1, ",
732
+ props.brand.name,
733
+ ","
734
+ ] }),
735
+ /* @__PURE__ */ jsxs14(Text14, { style: baseText, children: [
736
+ "Parab\xE9ns \u{1F389}, publicou com sucesso o novo job para a campanha ",
737
+ " ",
738
+ /* @__PURE__ */ jsxs14("span", { style: link, children: [
739
+ props.campaign.name,
740
+ "."
741
+ ] }),
742
+ /* @__PURE__ */ jsx16("br", {}),
743
+ " Por favor, revise os detalhes abaixo \u{1F680}:"
744
+ ] })
745
+ ] }),
746
+ /* @__PURE__ */ jsx16(Container14, { style: jobDetails, children: /* @__PURE__ */ jsx16(NewOrderInfo, { orderCreatedAt: props.job.createdAt, packageName: props.campaign.name, packagePrice: props.job.jobCommission }) }),
747
+ /* @__PURE__ */ jsx16(Container14, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx16(Link12, { href: appRoutes.brandJobDetails(props.job.id), style: { ...button, width: "120px" }, children: "VER JOB" }) }),
748
+ /* @__PURE__ */ jsx16(Footer, {})
749
+ ] })
750
+ ] });
751
+ }
752
+ NewJobCreatedBrand.PreviewProps = {
753
+ brand: {
754
+ name: "Vodacom Mz"
755
+ },
756
+ campaign: {
757
+ name: "Megas ate dormir",
758
+ description: "Ganhe megas so por publicar uma foto com a vodacom",
759
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
760
+ },
761
+ job: {
762
+ id: "1",
763
+ createdAt: "20 de Agosto, 2021",
764
+ jobCommission: "1000"
765
+ }
766
+ };
767
+ var jobDetails = {
768
+ ...baseContentContainer,
769
+ marginTop: "30px",
770
+ marginBottom: "40px"
771
+ };
772
+
773
+ // emails/brand/new-job-application-received-brand.tsx
774
+ import { Body as Body10, Container as Container15, Html as Html10, Link as Link13, Preview as Preview10, Text as Text15 } from "@react-email/components";
775
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
776
+ function NewJobApplicationsReceivedBrand(props) {
777
+ return /* @__PURE__ */ jsxs15(Html10, { style: rootStyles, children: [
778
+ /* @__PURE__ */ jsx17(BaseHead, {}),
779
+ /* @__PURE__ */ jsx17(Preview10, { children: "Nova Candidatura Recebida para o Job" }),
780
+ /* @__PURE__ */ jsxs15(Body10, { style: { ...main, ...baseContainer }, children: [
781
+ /* @__PURE__ */ jsx17(Header, {}),
782
+ /* @__PURE__ */ jsxs15(Container15, { style: { ...baseContentContainer }, children: [
783
+ /* @__PURE__ */ jsxs15(Text15, { style: baseText, children: [
784
+ "Ol\xE1, ",
785
+ props.brand.name,
786
+ ","
787
+ ] }),
788
+ /* @__PURE__ */ jsxs15(Text15, { style: baseText, children: [
789
+ "Voc\xEA recebeu uma nova candidatura para o job da campanha",
790
+ " ",
791
+ /* @__PURE__ */ jsxs15("span", { style: link, children: [
792
+ props.campaign.name,
793
+ "."
794
+ ] }),
795
+ /* @__PURE__ */ jsx17("br", {}),
796
+ " Revise os detalhes da candidatura abaixo \u{1F680}:"
797
+ ] })
798
+ ] }),
799
+ /* @__PURE__ */ jsx17(
800
+ UserInfo,
801
+ {
802
+ photo: props.creatorCandidate.photo,
803
+ name: props.creatorCandidate.name,
804
+ userType: "creator" /* CREATOR */,
805
+ username: props.creatorCandidate.username
806
+ }
807
+ ),
808
+ /* @__PURE__ */ jsxs15(Container15, { style: jobDetails2, children: [
809
+ /* @__PURE__ */ jsxs15(Text15, { style: baseText, children: [
810
+ /* @__PURE__ */ jsx17("strong", { children: "Or\xE7amento desejado:" }),
811
+ " ",
812
+ props.jobApplication.desired_budget ? `MZN ${props.jobApplication.desired_budget}` : "N\xE3o informado"
813
+ ] }),
814
+ /* @__PURE__ */ jsxs15(Text15, { style: baseText, children: [
815
+ /* @__PURE__ */ jsx17("strong", { children: "Observa\xE7\xF5es:" }),
816
+ " ",
817
+ props.jobApplication.observations || "Nenhuma observa\xE7\xE3o"
818
+ ] })
819
+ ] }),
820
+ /* @__PURE__ */ jsx17(Container15, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx17(Link13, { href: appRoutes.brandJobDetails(props.job.id), style: { ...button }, children: "VER CANDIDATURA" }) }),
821
+ /* @__PURE__ */ jsx17(Footer, {})
822
+ ] })
823
+ ] });
824
+ }
825
+ NewJobApplicationsReceivedBrand.PreviewProps = {
826
+ brand: {
827
+ name: "Vodacom Mz"
828
+ },
829
+ campaign: {
830
+ name: "Megas at\xE9 Dormir",
831
+ description: "Ganhe megas s\xF3 por publicar uma foto com a Vodacom",
832
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg"
833
+ },
834
+ job: {
835
+ id: "1",
836
+ createdAt: "20 de Agosto, 2021",
837
+ jobCommission: "1000"
838
+ },
839
+ jobApplication: {
840
+ id: "1",
841
+ desired_budget: 1500,
842
+ observations: "Gostaria de discutir mais sobre os requisitos da campanha."
843
+ },
844
+ creatorCandidate: {
845
+ name: "Jo\xE3o Silva",
846
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/creator-photo.jpg",
847
+ username: "joaosilva"
848
+ }
849
+ };
850
+ var jobDetails2 = {
851
+ ...baseContentContainer,
852
+ marginTop: "30px",
853
+ marginBottom: "40px"
854
+ };
855
+
856
+ // emails/creator/evidences-approved-creator.tsx
857
+ import { Body as Body11, Container as Container16, Html as Html11, Link as Link14, Preview as Preview11, Text as Text16 } from "@react-email/components";
858
+ import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
859
+ function EvidenceApprovedCreator(props) {
860
+ return /* @__PURE__ */ jsxs16(Html11, { style: rootStyles, children: [
861
+ /* @__PURE__ */ jsx18(BaseHead, {}),
862
+ /* @__PURE__ */ jsx18(Preview11, { children: "Evid\xEAncia aprovada \u2705" }),
863
+ /* @__PURE__ */ jsxs16(Body11, { style: { ...main, ...baseContainer }, children: [
864
+ /* @__PURE__ */ jsx18(Header, {}),
865
+ /* @__PURE__ */ jsx18(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
866
+ /* @__PURE__ */ jsxs16(Container16, { style: { ...baseContentContainer }, children: [
867
+ /* @__PURE__ */ jsxs16(Text16, { style: baseText, children: [
730
868
  "Ol\xE1, ",
731
869
  props.creator.name,
732
870
  " \u{1F38A},"
733
871
  ] }),
734
- /* @__PURE__ */ jsxs14(Text14, { style: baseText, children: [
872
+ /* @__PURE__ */ jsxs16(Text16, { style: baseText, children: [
735
873
  "Actualiza\xE7\xF5es, a",
736
874
  " ",
737
- /* @__PURE__ */ jsx16(Link12, { href: appRoutes.creatorOrderDetails(props.evidenceLink), target: "_blank", style: link, children: "evid\xEAncia" }),
875
+ /* @__PURE__ */ jsx18(Link14, { href: appRoutes.creatorOrderDetails(props.evidenceLink), target: "_blank", style: link, children: "evid\xEAncia" }),
738
876
  " ",
739
877
  "que submeteste foi aprovada pela marca \u{1F389}."
740
878
  ] }),
741
- /* @__PURE__ */ jsx16(Text14, { style: baseText, children: "Aguarde pela aprova\xE7\xE3o total por parte da marca para receberes o pagamento. Se tiveres alguma d\xFAvida, n\xE3o hesites em contactar" })
879
+ /* @__PURE__ */ jsx18(Text16, { style: baseText, children: "Aguarde pela aprova\xE7\xE3o total por parte da marca para receberes o pagamento. Se tiveres alguma d\xFAvida, n\xE3o hesites em contactar" })
742
880
  ] }),
743
- /* @__PURE__ */ jsx16(Container14, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ jsx16(Link12, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
744
- /* @__PURE__ */ jsx16(Footer, {})
881
+ /* @__PURE__ */ jsx18(Container16, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ jsx18(Link14, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
882
+ /* @__PURE__ */ jsx18(Footer, {})
745
883
  ] })
746
884
  ] });
747
885
  }
@@ -760,34 +898,34 @@ EvidenceApprovedCreator.PreviewProps = {
760
898
  };
761
899
 
762
900
  // emails/creator/evidences-rejected-creator.tsx
763
- import { Body as Body10, Container as Container15, Html as Html10, Link as Link13, Preview as Preview10, Text as Text15 } from "@react-email/components";
764
- import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
901
+ import { Body as Body12, Container as Container17, Html as Html12, Link as Link15, Preview as Preview12, Text as Text17 } from "@react-email/components";
902
+ import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
765
903
  function EvidencesRejectedCreator(props) {
766
- return /* @__PURE__ */ jsxs15(Html10, { style: rootStyles, children: [
767
- /* @__PURE__ */ jsx17(BaseHead, {}),
768
- /* @__PURE__ */ jsx17(Preview10, { children: "Evi\xEAncia rejeitada \u274C" }),
769
- /* @__PURE__ */ jsxs15(Body10, { style: { ...main, ...baseContainer }, children: [
770
- /* @__PURE__ */ jsx17(Header, {}),
771
- /* @__PURE__ */ jsx17(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
772
- /* @__PURE__ */ jsxs15(Container15, { style: { ...baseContentContainer }, children: [
773
- /* @__PURE__ */ jsxs15(Text15, { style: baseText, children: [
904
+ return /* @__PURE__ */ jsxs17(Html12, { style: rootStyles, children: [
905
+ /* @__PURE__ */ jsx19(BaseHead, {}),
906
+ /* @__PURE__ */ jsx19(Preview12, { children: "Evi\xEAncia rejeitada \u274C" }),
907
+ /* @__PURE__ */ jsxs17(Body12, { style: { ...main, ...baseContainer }, children: [
908
+ /* @__PURE__ */ jsx19(Header, {}),
909
+ /* @__PURE__ */ jsx19(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
910
+ /* @__PURE__ */ jsxs17(Container17, { style: { ...baseContentContainer }, children: [
911
+ /* @__PURE__ */ jsxs17(Text17, { style: baseText, children: [
774
912
  "Ol\xE1, ",
775
913
  props.creator.name,
776
914
  ","
777
915
  ] }),
778
- /* @__PURE__ */ jsxs15(Text15, { style: baseText, children: [
916
+ /* @__PURE__ */ jsxs17(Text17, { style: baseText, children: [
779
917
  "A",
780
918
  " ",
781
- /* @__PURE__ */ jsx17(Link13, { href: props.evidenceLink, target: "_blank", style: link, children: "evid\xEAncia" }),
919
+ /* @__PURE__ */ jsx19(Link15, { href: props.evidenceLink, target: "_blank", style: link, children: "evid\xEAncia" }),
782
920
  " ",
783
921
  "foi rejeitada \u274C pela marca.",
784
- /* @__PURE__ */ jsx17("br", {}),
922
+ /* @__PURE__ */ jsx19("br", {}),
785
923
  "Por favor, reveja o motivo da rejei\xE7\xE3o e submeta novamente."
786
924
  ] })
787
925
  ] }),
788
- props.reason && /* @__PURE__ */ jsx17("div", { style: reasonContainer3, children: /* @__PURE__ */ jsx17(CommentComponent, { title: "Motivo da rejei\xE7\xE3o:", comment: props.reason, danger: true }) }),
789
- /* @__PURE__ */ jsx17(Container15, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx17(Link13, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "200px" }, children: "VER PEDIDO" }) }),
790
- /* @__PURE__ */ jsx17(Footer, {})
926
+ props.reason && /* @__PURE__ */ jsx19("div", { style: reasonContainer3, children: /* @__PURE__ */ jsx19(CommentComponent, { title: "Motivo da rejei\xE7\xE3o:", comment: props.reason, danger: true }) }),
927
+ /* @__PURE__ */ jsx19(Container17, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx19(Link15, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "200px" }, children: "VER PEDIDO" }) }),
928
+ /* @__PURE__ */ jsx19(Footer, {})
791
929
  ] })
792
930
  ] });
793
931
  }
@@ -812,37 +950,37 @@ var reasonContainer3 = {
812
950
  };
813
951
 
814
952
  // emails/creator/order-cancelled-creator.tsx
815
- import { Body as Body11, Container as Container16, Html as Html11, Link as Link14, Preview as Preview11, Text as Text16 } from "@react-email/components";
816
- import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
953
+ import { Body as Body13, Container as Container18, Html as Html13, Link as Link16, Preview as Preview13, Text as Text18 } from "@react-email/components";
954
+ import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
817
955
  function OrderCancelledCreator(props) {
818
- return /* @__PURE__ */ jsxs16(Html11, { style: rootStyles, children: [
819
- /* @__PURE__ */ jsx18(BaseHead, {}),
820
- /* @__PURE__ */ jsx18(Preview11, { children: "Pedido cancelado \u274C" }),
821
- /* @__PURE__ */ jsxs16(Body11, { style: { ...main, ...baseContainer }, children: [
822
- /* @__PURE__ */ jsx18(Header, {}),
823
- /* @__PURE__ */ jsx18(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
824
- /* @__PURE__ */ jsxs16(Container16, { style: { ...baseContentContainer }, children: [
825
- /* @__PURE__ */ jsxs16(Text16, { style: baseText, children: [
956
+ return /* @__PURE__ */ jsxs18(Html13, { style: rootStyles, children: [
957
+ /* @__PURE__ */ jsx20(BaseHead, {}),
958
+ /* @__PURE__ */ jsx20(Preview13, { children: "Pedido cancelado \u274C" }),
959
+ /* @__PURE__ */ jsxs18(Body13, { style: { ...main, ...baseContainer }, children: [
960
+ /* @__PURE__ */ jsx20(Header, {}),
961
+ /* @__PURE__ */ jsx20(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
962
+ /* @__PURE__ */ jsxs18(Container18, { style: { ...baseContentContainer }, children: [
963
+ /* @__PURE__ */ jsxs18(Text18, { style: baseText, children: [
826
964
  "Ol\xE1, ",
827
965
  props.creator.name,
828
966
  ","
829
967
  ] }),
830
- /* @__PURE__ */ jsxs16(Text16, { style: baseText, children: [
968
+ /* @__PURE__ */ jsxs18(Text18, { style: baseText, children: [
831
969
  "Infelizmente o",
832
970
  " ",
833
- /* @__PURE__ */ jsxs16(Link14, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
971
+ /* @__PURE__ */ jsxs18(Link16, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
834
972
  "pedido #",
835
973
  props.order.id
836
974
  ] }),
837
975
  " ",
838
976
  "foi cancelado \u274C antes da sua conclus\xE3o.",
839
- /* @__PURE__ */ jsx18("br", {}),
977
+ /* @__PURE__ */ jsx20("br", {}),
840
978
  "Agradecemos a sua disponibilidade e esperamos que a pr\xF3xima oportunidade seja um sucesso \u{1F44C}\u{1F3FD}\u{1F44C}\u{1F3FD}!"
841
979
  ] })
842
980
  ] }),
843
- props.reason && /* @__PURE__ */ jsx18("div", { style: reasonContainer4, children: /* @__PURE__ */ jsx18(CommentComponent, { title: "Motivo do cancelamento:", comment: props.reason, danger: true }) }),
844
- /* @__PURE__ */ jsx18(Container16, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx18(Link14, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
845
- /* @__PURE__ */ jsx18(Footer, {})
981
+ props.reason && /* @__PURE__ */ jsx20("div", { style: reasonContainer4, children: /* @__PURE__ */ jsx20(CommentComponent, { title: "Motivo do cancelamento:", comment: props.reason, danger: true }) }),
982
+ /* @__PURE__ */ jsx20(Container18, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx20(Link16, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
983
+ /* @__PURE__ */ jsx20(Footer, {})
846
984
  ] })
847
985
  ] });
848
986
  }
@@ -862,35 +1000,35 @@ var reasonContainer4 = {
862
1000
  };
863
1001
 
864
1002
  // emails/creator/order-payment-creator.tsx
865
- import { Body as Body12, Container as Container17, Html as Html12, Link as Link15, Preview as Preview12, Text as Text17 } from "@react-email/components";
866
- import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
1003
+ import { Body as Body14, Container as Container19, Html as Html14, Link as Link17, Preview as Preview14, Text as Text19 } from "@react-email/components";
1004
+ import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
867
1005
  function OrderPaymentCreator(props) {
868
- return /* @__PURE__ */ jsxs17(Html12, { style: rootStyles, children: [
869
- /* @__PURE__ */ jsx19(BaseHead, {}),
870
- /* @__PURE__ */ jsx19(Preview12, { children: "Pagamento Liberado \u2705" }),
871
- /* @__PURE__ */ jsxs17(Body12, { style: { ...main, ...baseContainer }, children: [
872
- /* @__PURE__ */ jsx19(Header, {}),
873
- /* @__PURE__ */ jsx19(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
874
- /* @__PURE__ */ jsxs17(Container17, { style: { ...baseContentContainer }, children: [
875
- /* @__PURE__ */ jsxs17(Text17, { style: baseText, children: [
1006
+ return /* @__PURE__ */ jsxs19(Html14, { style: rootStyles, children: [
1007
+ /* @__PURE__ */ jsx21(BaseHead, {}),
1008
+ /* @__PURE__ */ jsx21(Preview14, { children: "Pagamento Liberado \u2705" }),
1009
+ /* @__PURE__ */ jsxs19(Body14, { style: { ...main, ...baseContainer }, children: [
1010
+ /* @__PURE__ */ jsx21(Header, {}),
1011
+ /* @__PURE__ */ jsx21(UserInfo, { photo: `${assetsBasePath}/icons/logo-icon-colored.png`, name: "Promote Team", userType: "brand" /* BRAND */ }),
1012
+ /* @__PURE__ */ jsxs19(Container19, { style: { ...baseContentContainer }, children: [
1013
+ /* @__PURE__ */ jsxs19(Text19, { style: baseText, children: [
876
1014
  "Ol\xE1, ",
877
1015
  props.creator.name,
878
1016
  " \u{1F38A},"
879
1017
  ] }),
880
- /* @__PURE__ */ jsxs17(Text17, { style: baseText, children: [
1018
+ /* @__PURE__ */ jsxs19(Text19, { style: baseText, children: [
881
1019
  "Boas Not\xEDcias \u{1F389}, est\xE1 em processamento o pagamento da",
882
1020
  " ",
883
- /* @__PURE__ */ jsxs17(Link15, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
1021
+ /* @__PURE__ */ jsxs19(Link17, { href: appRoutes.creatorOrderDetails(props.order.id), target: "_blank", style: link, children: [
884
1022
  "ordem #",
885
1023
  props.order.id
886
1024
  ] }),
887
1025
  " "
888
1026
  ] }),
889
- /* @__PURE__ */ jsx19(Text17, { style: baseText, children: "Espera-se que dentro de 24h o pagamento seja conclu\xEDdo, agradecemos por confiar na Promote." })
1027
+ /* @__PURE__ */ jsx21(Text19, { style: baseText, children: "Espera-se que dentro de 24h o pagamento seja conclu\xEDdo, agradecemos por confiar na Promote." })
890
1028
  ] }),
891
- /* @__PURE__ */ jsx19(PaymentAmount, { totalAmount: props.totalAmount }),
892
- /* @__PURE__ */ jsx19(Container17, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ jsx19(Link15, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
893
- /* @__PURE__ */ jsx19(Footer, {})
1029
+ /* @__PURE__ */ jsx21(PaymentAmount, { totalAmount: props.totalAmount }),
1030
+ /* @__PURE__ */ jsx21(Container19, { style: { ...baseContentContainer, marginTop: "25px" }, children: /* @__PURE__ */ jsx21(Link17, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "150px" }, children: "VER PEDIDO" }) }),
1031
+ /* @__PURE__ */ jsx21(Footer, {})
894
1032
  ] })
895
1033
  ] });
896
1034
  }
@@ -905,32 +1043,32 @@ OrderPaymentCreator.PreviewProps = {
905
1043
  };
906
1044
 
907
1045
  // emails/creator/new-order-created-creator.tsx
908
- import { Body as Body13, Container as Container18, Html as Html13, Link as Link16, Preview as Preview13, Text as Text18 } from "@react-email/components";
909
- import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
1046
+ import { Body as Body15, Container as Container20, Html as Html15, Link as Link18, Preview as Preview15, Text as Text20 } from "@react-email/components";
1047
+ import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
910
1048
  function NewOrderCreatedCreator(props) {
911
- return /* @__PURE__ */ jsxs18(Html13, { style: rootStyles, children: [
912
- /* @__PURE__ */ jsx20(BaseHead, {}),
913
- /* @__PURE__ */ jsx20(Preview13, { children: "Novo Pedido Recebido" }),
914
- /* @__PURE__ */ jsxs18(Body13, { style: { ...main, ...baseContainer }, children: [
915
- /* @__PURE__ */ jsx20(Header, {}),
916
- /* @__PURE__ */ jsx20(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
917
- /* @__PURE__ */ jsxs18(Container18, { style: { ...baseContentContainer }, children: [
918
- /* @__PURE__ */ jsxs18(Text18, { style: baseText, children: [
1049
+ return /* @__PURE__ */ jsxs20(Html15, { style: rootStyles, children: [
1050
+ /* @__PURE__ */ jsx22(BaseHead, {}),
1051
+ /* @__PURE__ */ jsx22(Preview15, { children: "Novo Pedido Recebido" }),
1052
+ /* @__PURE__ */ jsxs20(Body15, { style: { ...main, ...baseContainer }, children: [
1053
+ /* @__PURE__ */ jsx22(Header, {}),
1054
+ /* @__PURE__ */ jsx22(UserInfo, { photo: props.brand.photo, name: props.brand.name, userType: "brand" /* BRAND */ }),
1055
+ /* @__PURE__ */ jsxs20(Container20, { style: { ...baseContentContainer }, children: [
1056
+ /* @__PURE__ */ jsxs20(Text20, { style: baseText, children: [
919
1057
  "Ol\xE1, ",
920
1058
  props.creator.name,
921
1059
  ","
922
1060
  ] }),
923
- /* @__PURE__ */ jsxs18(Text18, { style: baseText, children: [
1061
+ /* @__PURE__ */ jsxs20(Text20, { style: baseText, children: [
924
1062
  "Parab\xE9ns \u{1F389}, voc\xEA recebeu um novo pedido da empresa ",
925
- /* @__PURE__ */ jsx20("span", { style: { color: colors.primary }, children: props.brand.name }),
1063
+ /* @__PURE__ */ jsx22("span", { style: { color: colors.primary }, children: props.brand.name }),
926
1064
  ".",
927
- /* @__PURE__ */ jsx20("br", {}),
1065
+ /* @__PURE__ */ jsx22("br", {}),
928
1066
  " Por favor, revise os detalhes abaixo \u{1F680}:"
929
1067
  ] })
930
1068
  ] }),
931
- /* @__PURE__ */ jsx20(Container18, { style: orderDetails2, children: /* @__PURE__ */ jsx20(NewOrderInfo, { orderCreatedAt: props.order.createdAt, packageName: props.package.name, packagePrice: props.package.price }) }),
932
- /* @__PURE__ */ jsx20(Container18, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx20(Link16, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO" }) }),
933
- /* @__PURE__ */ jsx20(Footer, {})
1069
+ /* @__PURE__ */ jsx22(Container20, { style: orderDetails2, children: /* @__PURE__ */ jsx22(NewOrderInfo, { orderCreatedAt: props.order.createdAt, packageName: props.package.name, packagePrice: props.package.price }) }),
1070
+ /* @__PURE__ */ jsx22(Container20, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx22(Link18, { href: appRoutes.creatorOrderDetails(props.order.id), style: { ...button, width: "120px" }, children: "VER PEDIDO" }) }),
1071
+ /* @__PURE__ */ jsx22(Footer, {})
934
1072
  ] })
935
1073
  ] });
936
1074
  }
@@ -957,9 +1095,66 @@ var orderDetails2 = {
957
1095
  marginBottom: "40px"
958
1096
  };
959
1097
 
1098
+ // emails/creator/new-job-application-unapproved-creator.tsx
1099
+ import { Body as Body16, Container as Container21, Html as Html16, Link as Link19, Preview as Preview16, Text as Text21 } from "@react-email/components";
1100
+ import { jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
1101
+ function NewJobApplicationUnapprovedCreator(props) {
1102
+ return /* @__PURE__ */ jsxs21(Html16, { style: rootStyles, children: [
1103
+ /* @__PURE__ */ jsx23(BaseHead, {}),
1104
+ /* @__PURE__ */ jsx23(Preview16, { children: "Actualiza\xE7\xE3o sobre sua candidatura ao job" }),
1105
+ /* @__PURE__ */ jsxs21(Body16, { style: { ...main, ...baseContainer }, children: [
1106
+ /* @__PURE__ */ jsx23(Header, {}),
1107
+ /* @__PURE__ */ jsxs21(Container21, { style: { ...baseContentContainer }, children: [
1108
+ /* @__PURE__ */ jsxs21(Text21, { style: baseText2, children: [
1109
+ "Ol\xE1, ",
1110
+ props.creator.name,
1111
+ ","
1112
+ ] }),
1113
+ /* @__PURE__ */ jsxs21(Text21, { style: baseText2, children: [
1114
+ "Infelizmente, sua candidatura para o job da campanha",
1115
+ " ",
1116
+ /* @__PURE__ */ jsx23("span", { style: link, children: props.campaign.name }),
1117
+ " n\xE3o foi aprovada.",
1118
+ /* @__PURE__ */ jsx23("br", {}),
1119
+ "Agradecemos por seu interesse e participa\xE7\xE3o!"
1120
+ ] }),
1121
+ props.jobApplication.rejectionReason && /* @__PURE__ */ jsxs21(Text21, { style: baseText2, children: [
1122
+ /* @__PURE__ */ jsx23("strong", { children: "Motivo:" }),
1123
+ " ",
1124
+ props.jobApplication.rejectionReason
1125
+ ] }),
1126
+ /* @__PURE__ */ jsx23(Text21, { style: baseText2, children: "N\xE3o desanime! Continue acompanhando outras oportunidades que possam surgir na plataforma. \u{1F680}" })
1127
+ ] }),
1128
+ /* @__PURE__ */ jsx23(Container21, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx23(Link19, { href: appRoutes.jobsList, style: { ...button }, children: "VER OUTRAS OPORTUNIDADES" }) }),
1129
+ /* @__PURE__ */ jsx23(Footer, {})
1130
+ ] })
1131
+ ] });
1132
+ }
1133
+ NewJobApplicationUnapprovedCreator.PreviewProps = {
1134
+ creator: {
1135
+ name: "K\xE1tia Vanessa",
1136
+ email: "katia@example.com",
1137
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/creator-photo.jpg"
1138
+ },
1139
+ campaign: {
1140
+ name: "Megas at\xE9 Dormir",
1141
+ description: "Ganhe megas s\xF3 por publicar uma foto com a Vodacom",
1142
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/campaign-photo.jpg"
1143
+ },
1144
+ jobApplication: {
1145
+ id: "1",
1146
+ rejectionReason: "N\xE3o atingiu os requisitos esperados para o job."
1147
+ }
1148
+ };
1149
+ var baseText2 = {
1150
+ fontSize: "16px",
1151
+ lineHeight: "24px",
1152
+ color: "#333"
1153
+ };
1154
+
960
1155
  // emails/all/welcome.tsx
961
- import { Body as Body14, Container as Container19, Heading as Heading3, Html as Html14, Img as Img4, Link as Link17, Preview as Preview14, Text as Text19 } from "@react-email/components";
962
- import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
1156
+ 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";
1157
+ import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
963
1158
  function Welcome({ name, userType }) {
964
1159
  const content2 = {
965
1160
  ["brand" /* BRAND */]: {
@@ -971,31 +1166,31 @@ function Welcome({ name, userType }) {
971
1166
  description: " Obrigado por se registrar. Estamos muito felizes por t\xEA-lo a bordo. Explore nossa plataforma e descubra as melhores marcas para colaborar."
972
1167
  }
973
1168
  };
974
- return /* @__PURE__ */ jsxs19(Html14, { style: rootStyles, children: [
975
- /* @__PURE__ */ jsx21(BaseHead, {}),
976
- /* @__PURE__ */ jsx21(Preview14, { children: "Bem-vindo a Promote" }),
977
- /* @__PURE__ */ jsxs19(Body14, { style: { ...main, ...baseContainer }, children: [
978
- /* @__PURE__ */ jsxs19(Container19, { style: headContainer, children: [
979
- /* @__PURE__ */ jsx21(Img4, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
980
- /* @__PURE__ */ jsx21(Img4, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Promote Logo", style: welcomeImage })
1169
+ return /* @__PURE__ */ jsxs22(Html17, { style: rootStyles, children: [
1170
+ /* @__PURE__ */ jsx24(BaseHead, {}),
1171
+ /* @__PURE__ */ jsx24(Preview17, { children: "Bem-vindo a Promote" }),
1172
+ /* @__PURE__ */ jsxs22(Body17, { style: { ...main, ...baseContainer }, children: [
1173
+ /* @__PURE__ */ jsxs22(Container22, { style: headContainer, children: [
1174
+ /* @__PURE__ */ jsx24(Img4, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
1175
+ /* @__PURE__ */ jsx24(Img4, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Promote Logo", style: welcomeImage })
981
1176
  ] }),
982
- /* @__PURE__ */ jsxs19(Container19, { style: baseContentContainer, children: [
983
- /* @__PURE__ */ jsxs19(Heading3, { as: "h1", style: title3, children: [
1177
+ /* @__PURE__ */ jsxs22(Container22, { style: baseContentContainer, children: [
1178
+ /* @__PURE__ */ jsxs22(Heading3, { as: "h1", style: title3, children: [
984
1179
  "Ol\xE1 ",
985
1180
  name || "{{nome}}",
986
1181
  " \u{1F389},"
987
1182
  ] }),
988
- /* @__PURE__ */ jsx21(Text19, { style: textInfo, children: content2[userType]?.description }),
989
- /* @__PURE__ */ jsxs19(Text19, { style: textInfo, children: [
1183
+ /* @__PURE__ */ jsx24(Text22, { style: textInfo, children: content2[userType]?.description }),
1184
+ /* @__PURE__ */ jsxs22(Text22, { style: textInfo, children: [
990
1185
  "Em caso de qualquer d\xFAvida, entre em conctato connosco atrav\xE9s do e-mail:",
991
1186
  " ",
992
- /* @__PURE__ */ jsx21(Link17, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
1187
+ /* @__PURE__ */ jsx24(Link20, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
993
1188
  " ",
994
1189
  "\u{1F680}"
995
1190
  ] })
996
1191
  ] }),
997
- /* @__PURE__ */ jsx21(Container19, { style: baseContentContainer, children: userType && /* @__PURE__ */ jsx21(Link17, { href: content2[userType]?.startLink, style: { ...button, width: "150px" }, children: "COME\xC7AR AGORA" }) }),
998
- /* @__PURE__ */ jsx21(Footer, {})
1192
+ /* @__PURE__ */ jsx24(Container22, { style: baseContentContainer, children: userType && /* @__PURE__ */ jsx24(Link20, { href: content2[userType]?.startLink, style: { ...button, width: "150px" }, children: "COME\xC7AR AGORA" }) }),
1193
+ /* @__PURE__ */ jsx24(Footer, {})
999
1194
  ] })
1000
1195
  ] });
1001
1196
  }
@@ -1040,6 +1235,9 @@ export {
1040
1235
  EvidenceApprovedCreator,
1041
1236
  EvidencesRejectedCreator,
1042
1237
  EvidencesSubmittedBrand,
1238
+ NewJobApplicationUnapprovedCreator,
1239
+ NewJobApplicationsReceivedBrand,
1240
+ NewJobCreatedBrand,
1043
1241
  NewOrderCreatedBrand,
1044
1242
  NewOrderCreatedCreator,
1045
1243
  OrderAcceptedBrand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promote-email-templates",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Promote Email Templates",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",