promote-email-templates 0.0.9 → 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/dist/index.js CHANGED
@@ -1291,6 +1291,58 @@ var textInfo = {
1291
1291
  textAlign: "justify",
1292
1292
  whiteSpace: "pre-line"
1293
1293
  };
1294
+
1295
+ // emails/all/new-message-notification.tsx
1296
+ var import_components25 = require("@react-email/components");
1297
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1298
+ function NewMessageNotification(props) {
1299
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Html, { style: rootStyles, children: [
1300
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(BaseHead, {}),
1301
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components25.Preview, { children: "Nova mensagem recebida \u{1F195}" }),
1302
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Body, { style: { ...main, ...baseContainer }, children: [
1303
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Header, {}),
1304
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UserInfo, { photo: props.sender.photo, name: props.sender.name, userType: props.sender.userType, username: props.sender.username }),
1305
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Container, { style: { ...baseContentContainer }, children: [
1306
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Text, { style: baseText, children: [
1307
+ "Ol\xE1, ",
1308
+ props.recipient.name,
1309
+ ","
1310
+ ] }),
1311
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_components25.Text, { style: baseText, children: [
1312
+ "Voc\xEA recebeu uma nova mensagem de ",
1313
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { style: link, children: props.sender.name }),
1314
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("br", {}),
1315
+ " Veja o conte\xFAdo da mensagem abaixo:"
1316
+ ] })
1317
+ ] }),
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 }) }),
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" }) }),
1320
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Footer, {})
1321
+ ] })
1322
+ ] });
1323
+ }
1324
+ var messageContainer = {
1325
+ ...baseContentContainer,
1326
+ marginTop: "20px",
1327
+ marginBottom: "20px"
1328
+ };
1329
+ NewMessageNotification.PreviewProps = {
1330
+ recipient: {
1331
+ name: "Jo\xE3o Ant\xF3nio"
1332
+ },
1333
+ sender: {
1334
+ name: "Promote",
1335
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg",
1336
+ userType: "brand" /* BRAND */,
1337
+ username: "promote"
1338
+ },
1339
+ message: {
1340
+ 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.",
1341
+ createdAt: "10 Janeiro de 2025 \xE0s 14:30"
1342
+ },
1343
+ conversationPath: "/conversations",
1344
+ chatRoomId: "123"
1345
+ };
1294
1346
  // Annotate the CommonJS export names for ESM import in node:
1295
1347
  0 && (module.exports = {
1296
1348
  AbortOrderRequest,
package/dist/index.mjs CHANGED
@@ -1234,6 +1234,58 @@ var textInfo = {
1234
1234
  textAlign: "justify",
1235
1235
  whiteSpace: "pre-line"
1236
1236
  };
1237
+
1238
+ // emails/all/new-message-notification.tsx
1239
+ import { Body as Body18, Container as Container23, Html as Html18, Link as Link21, Preview as Preview18, Text as Text23 } from "@react-email/components";
1240
+ import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
1241
+ function NewMessageNotification(props) {
1242
+ return /* @__PURE__ */ jsxs23(Html18, { style: rootStyles, children: [
1243
+ /* @__PURE__ */ jsx25(BaseHead, {}),
1244
+ /* @__PURE__ */ jsx25(Preview18, { children: "Nova mensagem recebida \u{1F195}" }),
1245
+ /* @__PURE__ */ jsxs23(Body18, { style: { ...main, ...baseContainer }, children: [
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
+ /* @__PURE__ */ jsxs23(Container23, { style: { ...baseContentContainer }, children: [
1249
+ /* @__PURE__ */ jsxs23(Text23, { style: baseText, children: [
1250
+ "Ol\xE1, ",
1251
+ props.recipient.name,
1252
+ ","
1253
+ ] }),
1254
+ /* @__PURE__ */ jsxs23(Text23, { style: baseText, children: [
1255
+ "Voc\xEA recebeu uma nova mensagem de ",
1256
+ /* @__PURE__ */ jsx25("span", { style: link, children: props.sender.name }),
1257
+ /* @__PURE__ */ jsx25("br", {}),
1258
+ " Veja o conte\xFAdo da mensagem abaixo:"
1259
+ ] })
1260
+ ] }),
1261
+ /* @__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" }) }),
1263
+ /* @__PURE__ */ jsx25(Footer, {})
1264
+ ] })
1265
+ ] });
1266
+ }
1267
+ var messageContainer = {
1268
+ ...baseContentContainer,
1269
+ marginTop: "20px",
1270
+ marginBottom: "20px"
1271
+ };
1272
+ NewMessageNotification.PreviewProps = {
1273
+ recipient: {
1274
+ name: "Jo\xE3o Ant\xF3nio"
1275
+ },
1276
+ sender: {
1277
+ name: "Promote",
1278
+ photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg",
1279
+ userType: "brand" /* BRAND */,
1280
+ username: "promote"
1281
+ },
1282
+ message: {
1283
+ 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.",
1284
+ createdAt: "10 Janeiro de 2025 \xE0s 14:30"
1285
+ },
1286
+ conversationPath: "/conversations",
1287
+ chatRoomId: "123"
1288
+ };
1237
1289
  export {
1238
1290
  AbortOrderRequest,
1239
1291
  EvidenceApprovedCreator,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promote-email-templates",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "Promote Email Templates",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",