sitero 0.0.26 → 0.0.28
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/src/cms/client/interfaces/components/resources/post/post-card.js +2 -2
- package/dist/src/core/server/infrastructure/email/send-email.js +8 -4
- package/dist/types/src/cms/client/interfaces/components/resources/post/post-card.d.ts +1 -0
- package/dist/types/src/cms/client/interfaces/components/resources/post/post-card.d.ts.map +1 -1
- package/dist/types/src/core/server/infrastructure/email/send-email.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -93,7 +93,7 @@ function createPostCard({
|
|
|
93
93
|
className: cn(className),
|
|
94
94
|
style: {
|
|
95
95
|
width: WIDTH,
|
|
96
|
-
height: enableProductControl ? "296px" : HEIGHT
|
|
96
|
+
height: enableProductControl ? "296px" : strategy.removeCoverImage ? "none" : HEIGHT
|
|
97
97
|
},
|
|
98
98
|
href,
|
|
99
99
|
openNewTab,
|
|
@@ -156,7 +156,7 @@ function createPostCard({
|
|
|
156
156
|
}
|
|
157
157
|
)
|
|
158
158
|
] }),
|
|
159
|
-
children: /* @__PURE__ */ jsx(
|
|
159
|
+
children: !strategy.removeCoverImage && /* @__PURE__ */ jsx(
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
162
|
className: cn(
|
|
@@ -3,11 +3,15 @@ function createSendEmail({
|
|
|
3
3
|
logger
|
|
4
4
|
}) {
|
|
5
5
|
return async function sendEmail(options) {
|
|
6
|
+
const normalizedOptions = {
|
|
7
|
+
...options,
|
|
8
|
+
to: options.to.trim()
|
|
9
|
+
};
|
|
6
10
|
try {
|
|
7
11
|
const info = await transporter.sendMail(options);
|
|
8
12
|
logger.info("Email sent", {
|
|
9
|
-
to:
|
|
10
|
-
subject:
|
|
13
|
+
to: normalizedOptions.to,
|
|
14
|
+
subject: normalizedOptions.subject,
|
|
11
15
|
messageId: info.messageId,
|
|
12
16
|
accepted: info.accepted,
|
|
13
17
|
rejected: info.rejected
|
|
@@ -15,8 +19,8 @@ function createSendEmail({
|
|
|
15
19
|
return info;
|
|
16
20
|
} catch (error) {
|
|
17
21
|
logger.error("Email failed", {
|
|
18
|
-
to:
|
|
19
|
-
subject:
|
|
22
|
+
to: normalizedOptions.to,
|
|
23
|
+
subject: normalizedOptions.subject,
|
|
20
24
|
error
|
|
21
25
|
});
|
|
22
26
|
throw error;
|
|
@@ -6,6 +6,7 @@ import { type InputProps } from "../../ui/inputs";
|
|
|
6
6
|
export type PostCardStrategy = {
|
|
7
7
|
titleFields?: (keyof PostTranslation)[];
|
|
8
8
|
contentFields?: (keyof PostTranslation)[];
|
|
9
|
+
removeCoverImage?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export interface PostCardProps {
|
|
11
12
|
post: PostListCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-card.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/cms/client/interfaces/components/resources/post/post-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAazD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,CAAC;IACxC,aAAa,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"post-card.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/cms/client/interfaces/components/resources/post/post-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAQ,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAazD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,CAAC;IACxC,aAAa,CAAC,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,CAAC;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,UAAU,GACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC/C,IAC0B,yJAetB,aAAa,6CA+IjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-email.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/server/infrastructure/email/send-email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,iBAAiB,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,EAAE,MAAM,CAAC;CAChB,IAEG,SAAS,gBAAgB,KACxB,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"send-email.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/server/infrastructure/email/send-email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,iBAAiB,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,EAAE,MAAM,CAAC;CAChB,IAEG,SAAS,gBAAgB,KACxB,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CA4B9C"}
|