promote-email-templates 0.1.3 → 0.1.5

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 CHANGED
@@ -223,9 +223,6 @@ interface NewMessageNotificationProps {
223
223
  };
224
224
  sender: {
225
225
  name: string;
226
- photo: string;
227
- userType: USER_ROLES;
228
- username: string;
229
226
  };
230
227
  message: {
231
228
  content: string;
@@ -608,9 +605,6 @@ declare namespace NewMessageNotification {
608
605
  };
609
606
  sender: {
610
607
  name: string;
611
- photo: string;
612
- userType: USER_ROLES;
613
- username: string;
614
608
  };
615
609
  message: {
616
610
  content: string;
package/dist/index.d.ts CHANGED
@@ -223,9 +223,6 @@ interface NewMessageNotificationProps {
223
223
  };
224
224
  sender: {
225
225
  name: string;
226
- photo: string;
227
- userType: USER_ROLES;
228
- username: string;
229
226
  };
230
227
  message: {
231
228
  content: string;
@@ -608,9 +605,6 @@ declare namespace NewMessageNotification {
608
605
  };
609
606
  sender: {
610
607
  name: string;
611
- photo: string;
612
- userType: USER_ROLES;
613
- username: string;
614
608
  };
615
609
  message: {
616
610
  content: string;
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ var appRoutes = {
141
141
  brandJobDetails: (jobId) => `${appBaseUrl}/brands/jobs/${jobId}`,
142
142
  adminOrderDetails: (orderId) => `${appBaseUrl}/admin/orders/${orderId}`,
143
143
  creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}`,
144
- brandConversation: (conversationPath, chatRoomId) => `${appBaseUrl}/${conversationPath}?chatRoomId=${chatRoomId}`
144
+ brandConversation: (conversationPath, chatRoomId) => `${appBaseUrl}${conversationPath}?chatRoomId=${chatRoomId}`
145
145
  };
146
146
  var socialNetworkLinks = {
147
147
  linkedin: "https://www.linkedin.com/company/promotemz",
@@ -1302,7 +1302,6 @@ function NewMessageNotification(props) {
1302
1302
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Preview, { children: "Nova mensagem recebida \u{1F195}" }),
1303
1303
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Body, { style: { ...main, ...baseContainer }, children: [
1304
1304
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Header, {}),
1305
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UserInfo, { photo: props.sender.photo, name: props.sender.name, userType: props.sender.userType, username: props.sender.username }),
1306
1305
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Container, { style: { ...baseContentContainer }, children: [
1307
1306
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Text, { style: baseText, children: [
1308
1307
  "Ol\xE1, ",
@@ -1317,7 +1316,7 @@ function NewMessageNotification(props) {
1317
1316
  ] })
1318
1317
  ] }),
1319
1318
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Container, { style: messageContainer, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CommentComponent, { title: `Mensagem enviada em ${props.message.createdAt}:`, comment: props.message.content }) }),
1320
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Link, { href: `${appRoutes.brandConversation(props.conversationPath, props.chatRoomId)}`, style: { ...button, width: "150px" }, children: "VER CONVERSA" }) }),
1319
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Container, { style: { ...baseContentContainer }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Link, { href: appRoutes.brandConversation(props.conversationPath, props.chatRoomId), style: { ...button, width: "150px" }, children: "VER CONVERSA" }) }),
1321
1320
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Footer, {})
1322
1321
  ] })
1323
1322
  ] });
@@ -1333,10 +1332,7 @@ NewMessageNotification.PreviewProps = {
1333
1332
  email: "test@email.com"
1334
1333
  },
1335
1334
  sender: {
1336
- name: "Promote",
1337
- photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg",
1338
- userType: "brand" /* BRAND */,
1339
- username: "promote"
1335
+ name: "Promote"
1340
1336
  },
1341
1337
  message: {
1342
1338
  content: "Ol\xE1, Jo\xE3o Ant\xF3nio, tudo bem? Estou a ver a sua proposta e gostaria de saber se poderia me enviar mais informa\xE7\xF5es sobre o projeto.",
package/dist/index.mjs CHANGED
@@ -83,7 +83,7 @@ var appRoutes = {
83
83
  brandJobDetails: (jobId) => `${appBaseUrl}/brands/jobs/${jobId}`,
84
84
  adminOrderDetails: (orderId) => `${appBaseUrl}/admin/orders/${orderId}`,
85
85
  creatorPublicProfile: (username) => `${appBaseUrl}/content-creators/${username}`,
86
- brandConversation: (conversationPath, chatRoomId) => `${appBaseUrl}/${conversationPath}?chatRoomId=${chatRoomId}`
86
+ brandConversation: (conversationPath, chatRoomId) => `${appBaseUrl}${conversationPath}?chatRoomId=${chatRoomId}`
87
87
  };
88
88
  var socialNetworkLinks = {
89
89
  linkedin: "https://www.linkedin.com/company/promotemz",
@@ -1244,7 +1244,6 @@ function NewMessageNotification(props) {
1244
1244
  /* @__PURE__ */ jsx25(Preview18, { children: "Nova mensagem recebida \u{1F195}" }),
1245
1245
  /* @__PURE__ */ jsxs23(Body18, { style: { ...main, ...baseContainer }, children: [
1246
1246
  /* @__PURE__ */ jsx25(Header, {}),
1247
- /* @__PURE__ */ jsx25(UserInfo, { photo: props.sender.photo, name: props.sender.name, userType: props.sender.userType, username: props.sender.username }),
1248
1247
  /* @__PURE__ */ jsxs23(Container23, { style: { ...baseContentContainer }, children: [
1249
1248
  /* @__PURE__ */ jsxs23(Text23, { style: baseText, children: [
1250
1249
  "Ol\xE1, ",
@@ -1259,7 +1258,7 @@ function NewMessageNotification(props) {
1259
1258
  ] })
1260
1259
  ] }),
1261
1260
  /* @__PURE__ */ jsx25(Container23, { style: messageContainer, children: /* @__PURE__ */ jsx25(CommentComponent, { title: `Mensagem enviada em ${props.message.createdAt}:`, comment: props.message.content }) }),
1262
- /* @__PURE__ */ jsx25(Container23, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx25(Link21, { href: `${appRoutes.brandConversation(props.conversationPath, props.chatRoomId)}`, style: { ...button, width: "150px" }, children: "VER CONVERSA" }) }),
1261
+ /* @__PURE__ */ jsx25(Container23, { style: { ...baseContentContainer }, children: /* @__PURE__ */ jsx25(Link21, { href: appRoutes.brandConversation(props.conversationPath, props.chatRoomId), style: { ...button, width: "150px" }, children: "VER CONVERSA" }) }),
1263
1262
  /* @__PURE__ */ jsx25(Footer, {})
1264
1263
  ] })
1265
1264
  ] });
@@ -1275,10 +1274,7 @@ NewMessageNotification.PreviewProps = {
1275
1274
  email: "test@email.com"
1276
1275
  },
1277
1276
  sender: {
1278
- name: "Promote",
1279
- photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg",
1280
- userType: "brand" /* BRAND */,
1281
- username: "promote"
1277
+ name: "Promote"
1282
1278
  },
1283
1279
  message: {
1284
1280
  content: "Ol\xE1, Jo\xE3o Ant\xF3nio, tudo bem? Estou a ver a sua proposta e gostaria de saber se poderia me enviar mais informa\xE7\xF5es sobre o projeto.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promote-email-templates",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Promote Email Templates",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",