promote-email-templates 0.1.1 → 0.1.4
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 +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +4 -7
- package/dist/index.mjs +4 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -219,12 +219,10 @@ interface WelcomeTemplateProps {
|
|
|
219
219
|
interface NewMessageNotificationProps {
|
|
220
220
|
recipient: {
|
|
221
221
|
name: string;
|
|
222
|
+
email: string;
|
|
222
223
|
};
|
|
223
224
|
sender: {
|
|
224
225
|
name: string;
|
|
225
|
-
photo: string;
|
|
226
|
-
userType: USER_ROLES;
|
|
227
|
-
username: string;
|
|
228
226
|
};
|
|
229
227
|
message: {
|
|
230
228
|
content: string;
|
|
@@ -603,12 +601,10 @@ declare namespace NewMessageNotification {
|
|
|
603
601
|
var PreviewProps: {
|
|
604
602
|
recipient: {
|
|
605
603
|
name: string;
|
|
604
|
+
email: string;
|
|
606
605
|
};
|
|
607
606
|
sender: {
|
|
608
607
|
name: string;
|
|
609
|
-
photo: string;
|
|
610
|
-
userType: USER_ROLES;
|
|
611
|
-
username: string;
|
|
612
608
|
};
|
|
613
609
|
message: {
|
|
614
610
|
content: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -219,12 +219,10 @@ interface WelcomeTemplateProps {
|
|
|
219
219
|
interface NewMessageNotificationProps {
|
|
220
220
|
recipient: {
|
|
221
221
|
name: string;
|
|
222
|
+
email: string;
|
|
222
223
|
};
|
|
223
224
|
sender: {
|
|
224
225
|
name: string;
|
|
225
|
-
photo: string;
|
|
226
|
-
userType: USER_ROLES;
|
|
227
|
-
username: string;
|
|
228
226
|
};
|
|
229
227
|
message: {
|
|
230
228
|
content: string;
|
|
@@ -603,12 +601,10 @@ declare namespace NewMessageNotification {
|
|
|
603
601
|
var PreviewProps: {
|
|
604
602
|
recipient: {
|
|
605
603
|
name: string;
|
|
604
|
+
email: string;
|
|
606
605
|
};
|
|
607
606
|
sender: {
|
|
608
607
|
name: string;
|
|
609
|
-
photo: string;
|
|
610
|
-
userType: USER_ROLES;
|
|
611
|
-
username: string;
|
|
612
608
|
};
|
|
613
609
|
message: {
|
|
614
610
|
content: string;
|
package/dist/index.js
CHANGED
|
@@ -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:
|
|
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
|
] });
|
|
@@ -1329,13 +1328,11 @@ var messageContainer = {
|
|
|
1329
1328
|
};
|
|
1330
1329
|
NewMessageNotification.PreviewProps = {
|
|
1331
1330
|
recipient: {
|
|
1332
|
-
name: "Jo\xE3o Ant\xF3nio"
|
|
1331
|
+
name: "Jo\xE3o Ant\xF3nio",
|
|
1332
|
+
email: "test@email.com"
|
|
1333
1333
|
},
|
|
1334
1334
|
sender: {
|
|
1335
|
-
name: "Promote"
|
|
1336
|
-
photo: "https://s3.us-east-2.amazonaws.com/promote-mz.com/images/8c52bb92-4a8b-472f-89cb-0428b90b8b74.jpg",
|
|
1337
|
-
userType: "brand" /* BRAND */,
|
|
1338
|
-
username: "promote"
|
|
1335
|
+
name: "Promote"
|
|
1339
1336
|
},
|
|
1340
1337
|
message: {
|
|
1341
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
|
@@ -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:
|
|
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
|
] });
|
|
@@ -1271,13 +1270,11 @@ var messageContainer = {
|
|
|
1271
1270
|
};
|
|
1272
1271
|
NewMessageNotification.PreviewProps = {
|
|
1273
1272
|
recipient: {
|
|
1274
|
-
name: "Jo\xE3o Ant\xF3nio"
|
|
1273
|
+
name: "Jo\xE3o Ant\xF3nio",
|
|
1274
|
+
email: "test@email.com"
|
|
1275
1275
|
},
|
|
1276
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"
|
|
1277
|
+
name: "Promote"
|
|
1281
1278
|
},
|
|
1282
1279
|
message: {
|
|
1283
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.",
|