promote-email-templates 0.0.5 → 0.0.6
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/.react-email/.eslintrc.js +52 -0
- package/.react-email/.prettierignore +3 -0
- package/.react-email/.prettierrc.js +8 -0
- package/.react-email/license.md +7 -0
- package/.react-email/next.config.js +36 -0
- package/.react-email/package.json +1 -0
- package/.react-email/postcss.config.js +8 -0
- package/.react-email/readme.md +44 -0
- package/.react-email/src/actions/get-email-path-from-slug.ts +26 -0
- package/.react-email/src/actions/get-emails-directory-metadata.spec.ts +73 -0
- package/.react-email/src/actions/get-emails-directory-metadata.ts +91 -0
- package/.react-email/src/actions/render-email-by-path.tsx +59 -0
- package/.react-email/src/app/favicon.ico +0 -0
- package/.react-email/src/app/globals.css +35 -0
- package/.react-email/src/app/inter.ts +7 -0
- package/.react-email/src/app/layout.tsx +36 -0
- package/.react-email/src/app/logo.png +0 -0
- package/.react-email/src/app/page.tsx +47 -0
- package/.react-email/src/app/preview/[...slug]/page.tsx +65 -0
- package/.react-email/src/app/preview/[...slug]/preview.tsx +141 -0
- package/.react-email/src/app/preview/[...slug]/rendering-error.tsx +40 -0
- package/.react-email/src/components/button.tsx +90 -0
- package/.react-email/src/components/code-container.tsx +145 -0
- package/.react-email/src/components/code.tsx +112 -0
- package/.react-email/src/components/heading.tsx +113 -0
- package/.react-email/src/components/icons/icon-arrow-down.tsx +16 -0
- package/.react-email/src/components/icons/icon-base.tsx +24 -0
- package/.react-email/src/components/icons/icon-button.tsx +23 -0
- package/.react-email/src/components/icons/icon-check.tsx +19 -0
- package/.react-email/src/components/icons/icon-clipboard.tsx +40 -0
- package/.react-email/src/components/icons/icon-download.tsx +19 -0
- package/.react-email/src/components/icons/icon-file.tsx +19 -0
- package/.react-email/src/components/icons/icon-folder-open.tsx +19 -0
- package/.react-email/src/components/icons/icon-folder.tsx +18 -0
- package/.react-email/src/components/icons/icon-hide-sidebar.tsx +23 -0
- package/.react-email/src/components/icons/icon-monitor.tsx +19 -0
- package/.react-email/src/components/icons/icon-phone.tsx +26 -0
- package/.react-email/src/components/icons/icon-source.tsx +19 -0
- package/.react-email/src/components/index.ts +7 -0
- package/.react-email/src/components/logo.tsx +64 -0
- package/.react-email/src/components/send.tsx +135 -0
- package/.react-email/src/components/shell.tsx +115 -0
- package/.react-email/src/components/sidebar/index.ts +1 -0
- package/.react-email/src/components/sidebar/sidebar-directory-children.tsx +134 -0
- package/.react-email/src/components/sidebar/sidebar-directory.tsx +106 -0
- package/.react-email/src/components/sidebar/sidebar.tsx +45 -0
- package/.react-email/src/components/text.tsx +99 -0
- package/.react-email/src/components/tooltip-content.tsx +32 -0
- package/.react-email/src/components/tooltip.tsx +19 -0
- package/.react-email/src/components/topbar.tsx +161 -0
- package/.react-email/src/contexts/emails.tsx +127 -0
- package/.react-email/src/hooks/use-hot-reload.ts +35 -0
- package/.react-email/src/hooks/use-rendering-metadata.ts +36 -0
- package/.react-email/src/utils/cn.ts +6 -0
- package/.react-email/src/utils/constants.ts +6 -0
- package/.react-email/src/utils/copy-text-to-clipboard.ts +7 -0
- package/.react-email/src/utils/emails-directory-absolute-path.ts +34 -0
- package/.react-email/src/utils/get-email-component.ts +108 -0
- package/.react-email/src/utils/improve-error-with-sourcemap.ts +55 -0
- package/.react-email/src/utils/index.ts +5 -0
- package/.react-email/src/utils/language-map.ts +7 -0
- package/.react-email/src/utils/static-node-modules-for-vm.ts +92 -0
- package/.react-email/src/utils/types/as.ts +26 -0
- package/.react-email/src/utils/types/email-template.ts +8 -0
- package/.react-email/src/utils/types/error-object.ts +11 -0
- package/.react-email/src/utils/types/hot-reload-change.ts +6 -0
- package/.react-email/src/utils/types/hot-reload-event.ts +6 -0
- package/.react-email/src/utils/unreachable.ts +8 -0
- package/.react-email/tailwind.config.ts +94 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -8
- package/dist/index.mjs +16 -8
- package/package.json +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Config } from 'tailwindcss';
|
|
2
|
+
import colors = require('@radix-ui/colors');
|
|
3
|
+
import { fontFamily } from 'tailwindcss/defaultTheme';
|
|
4
|
+
import plugin from 'tailwindcss/plugin';
|
|
5
|
+
|
|
6
|
+
const iOsHeight = plugin(({ addUtilities }) => {
|
|
7
|
+
const supportsTouchRule = '@supports (-webkit-touch-callout: none)';
|
|
8
|
+
const webkitFillAvailable = '-webkit-fill-available';
|
|
9
|
+
|
|
10
|
+
const utilities = {
|
|
11
|
+
'.min-h-screen-ios': {
|
|
12
|
+
[supportsTouchRule]: {
|
|
13
|
+
minHeight: webkitFillAvailable,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
'.h-screen-ios': {
|
|
17
|
+
[supportsTouchRule]: {
|
|
18
|
+
height: webkitFillAvailable,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// @ts-expect-error This works normally, not sure what this error is
|
|
24
|
+
addUtilities(utilities, ['responsive']);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const config: Config = {
|
|
28
|
+
content: {
|
|
29
|
+
// needs to be relative because tailwind will find the content
|
|
30
|
+
// by default based on the process's cwd
|
|
31
|
+
relative: true,
|
|
32
|
+
files: [
|
|
33
|
+
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
34
|
+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
theme: {
|
|
38
|
+
extend: {
|
|
39
|
+
backgroundImage: {
|
|
40
|
+
gradient:
|
|
41
|
+
'linear-gradient(145.37deg, rgba(255, 255, 255, 0.09) -8.75%, rgba(255, 255, 255, 0.027) 83.95%)',
|
|
42
|
+
gradientHover:
|
|
43
|
+
'linear-gradient(145.37deg, rgba(255, 255, 255, 0.1) -8.75%, rgba(255, 255, 255, 0.057) 83.95%)',
|
|
44
|
+
shine:
|
|
45
|
+
'linear-gradient(45deg, rgba(255,255,255,0) 45%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 55%,rgba(255,255,255,0) 100%)',
|
|
46
|
+
},
|
|
47
|
+
colors: {
|
|
48
|
+
cyan: {
|
|
49
|
+
1: colors.cyanDarkA.cyanA1,
|
|
50
|
+
2: colors.cyanDarkA.cyanA2,
|
|
51
|
+
3: colors.cyanDarkA.cyanA3,
|
|
52
|
+
4: colors.cyanDarkA.cyanA4,
|
|
53
|
+
5: colors.cyanDarkA.cyanA5,
|
|
54
|
+
6: colors.cyanDarkA.cyanA6,
|
|
55
|
+
7: colors.cyanDarkA.cyanA7,
|
|
56
|
+
8: colors.cyanDarkA.cyanA8,
|
|
57
|
+
9: colors.cyanDarkA.cyanA9,
|
|
58
|
+
10: colors.cyanDarkA.cyanA10,
|
|
59
|
+
11: colors.cyanDarkA.cyanA11,
|
|
60
|
+
12: colors.cyanDarkA.cyanA12,
|
|
61
|
+
},
|
|
62
|
+
slate: {
|
|
63
|
+
1: colors.slateDarkA.slateA1,
|
|
64
|
+
2: colors.slateDarkA.slateA2,
|
|
65
|
+
3: colors.slateDarkA.slateA3,
|
|
66
|
+
4: colors.slateDarkA.slateA4,
|
|
67
|
+
5: colors.slateDarkA.slateA5,
|
|
68
|
+
6: colors.slateDarkA.slateA6,
|
|
69
|
+
7: colors.slateDarkA.slateA7,
|
|
70
|
+
8: colors.slateDarkA.slateA8,
|
|
71
|
+
9: colors.slateDarkA.slateA9,
|
|
72
|
+
10: colors.slateDarkA.slateA10,
|
|
73
|
+
11: colors.slateDarkA.slateA11,
|
|
74
|
+
12: colors.slateDarkA.slateA12,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
fontFamily: {
|
|
78
|
+
sans: ['var(--font-inter)', ...fontFamily.sans],
|
|
79
|
+
},
|
|
80
|
+
keyframes: {
|
|
81
|
+
shine: {
|
|
82
|
+
'0%': { backgroundPosition: '-100%' },
|
|
83
|
+
'100%': { backgroundPosition: '100%' },
|
|
84
|
+
},
|
|
85
|
+
dash: {
|
|
86
|
+
'0%': { strokeDashoffset: '1000' },
|
|
87
|
+
'100%': { strokeDashoffset: '0' },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
plugins: [iOsHeight],
|
|
93
|
+
};
|
|
94
|
+
export default config;
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1211,20 +1211,26 @@ function Welcome({ name, userType }) {
|
|
|
1211
1211
|
const content2 = {
|
|
1212
1212
|
["brand" /* BRAND */]: {
|
|
1213
1213
|
startLink: appRoutes.creatorsList,
|
|
1214
|
-
description:
|
|
1214
|
+
description: `Agora fazes parte da Promote, a primeira plataforma de Conte\xFAdo Gerado pelo Usu\xE1rio (UGC) em Mo\xE7ambique.
|
|
1215
|
+
Como Marca, podes conectar-te com criadores e escolher os que melhor se alinham \xE0 tua vis\xE3o para criar o conte\xFAdo ideal.
|
|
1216
|
+
|
|
1217
|
+
Agradecemos pelo teu registo e vamos manter-te informado sobre atualiza\xE7\xF5es e o lan\xE7amento oficial.`
|
|
1215
1218
|
},
|
|
1216
1219
|
["creator" /* CREATOR */]: {
|
|
1217
1220
|
startLink: appRoutes.creatorPrivateProfile,
|
|
1218
|
-
description:
|
|
1221
|
+
description: `Parab\xE9ns! Agora fazes parte da Promote, a primeira plataforma de Conte\xFAdo Gerado pelo Usu\xE1rio (UGC) em Mo\xE7ambique.
|
|
1222
|
+
Como Criador, vais poder conectar-te com marcas e ag\xEAncias, mostrar o teu talento e candidatar-te a diversos projectos.
|
|
1223
|
+
|
|
1224
|
+
Agradecemos pelo teu registo e vamos manter-te informado sobre novidades e o lan\xE7amento oficial.`
|
|
1219
1225
|
}
|
|
1220
1226
|
};
|
|
1221
1227
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Html, { style: rootStyles, children: [
|
|
1222
1228
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BaseHead, {}),
|
|
1223
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Preview, { children: "Bem-vindo
|
|
1229
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Preview, { children: "Bem-vindo \xE0 Promote" }),
|
|
1224
1230
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Body, { style: { ...main, ...baseContainer }, children: [
|
|
1225
1231
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Container, { style: headContainer, children: [
|
|
1226
1232
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
|
|
1227
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Promote
|
|
1233
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Img, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Bem-vindo \xE0 Promote", style: welcomeImage })
|
|
1228
1234
|
] }),
|
|
1229
1235
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Container, { style: baseContentContainer, children: [
|
|
1230
1236
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Heading, { as: "h1", style: title3, children: [
|
|
@@ -1234,7 +1240,7 @@ function Welcome({ name, userType }) {
|
|
|
1234
1240
|
] }),
|
|
1235
1241
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Text, { style: textInfo, children: content2[userType]?.description }),
|
|
1236
1242
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components24.Text, { style: textInfo, children: [
|
|
1237
|
-
"
|
|
1243
|
+
"Se tiveres alguma d\xFAvida ou sugest\xE3o, n\xE3o hesites em contactar-nos atrav\xE9s do e-mail:",
|
|
1238
1244
|
" ",
|
|
1239
1245
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components24.Link, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
|
|
1240
1246
|
" ",
|
|
@@ -1247,8 +1253,8 @@ function Welcome({ name, userType }) {
|
|
|
1247
1253
|
] });
|
|
1248
1254
|
}
|
|
1249
1255
|
Welcome.PreviewProps = {
|
|
1250
|
-
name: "Jo\xE3o
|
|
1251
|
-
userType: "
|
|
1256
|
+
name: "Jo\xE3o Ant\xF3nio",
|
|
1257
|
+
userType: "creator" /* CREATOR */
|
|
1252
1258
|
};
|
|
1253
1259
|
var headContainer = {
|
|
1254
1260
|
...baseContentContainer,
|
|
@@ -1280,7 +1286,9 @@ var title3 = {
|
|
|
1280
1286
|
var textInfo = {
|
|
1281
1287
|
...baseText,
|
|
1282
1288
|
marginTop: "20px",
|
|
1283
|
-
marginBottom: "20px"
|
|
1289
|
+
marginBottom: "20px",
|
|
1290
|
+
textAlign: "justify",
|
|
1291
|
+
whiteSpace: "pre-line"
|
|
1284
1292
|
};
|
|
1285
1293
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1286
1294
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1154,20 +1154,26 @@ function Welcome({ name, userType }) {
|
|
|
1154
1154
|
const content2 = {
|
|
1155
1155
|
["brand" /* BRAND */]: {
|
|
1156
1156
|
startLink: appRoutes.creatorsList,
|
|
1157
|
-
description:
|
|
1157
|
+
description: `Agora fazes parte da Promote, a primeira plataforma de Conte\xFAdo Gerado pelo Usu\xE1rio (UGC) em Mo\xE7ambique.
|
|
1158
|
+
Como Marca, podes conectar-te com criadores e escolher os que melhor se alinham \xE0 tua vis\xE3o para criar o conte\xFAdo ideal.
|
|
1159
|
+
|
|
1160
|
+
Agradecemos pelo teu registo e vamos manter-te informado sobre atualiza\xE7\xF5es e o lan\xE7amento oficial.`
|
|
1158
1161
|
},
|
|
1159
1162
|
["creator" /* CREATOR */]: {
|
|
1160
1163
|
startLink: appRoutes.creatorPrivateProfile,
|
|
1161
|
-
description:
|
|
1164
|
+
description: `Parab\xE9ns! Agora fazes parte da Promote, a primeira plataforma de Conte\xFAdo Gerado pelo Usu\xE1rio (UGC) em Mo\xE7ambique.
|
|
1165
|
+
Como Criador, vais poder conectar-te com marcas e ag\xEAncias, mostrar o teu talento e candidatar-te a diversos projectos.
|
|
1166
|
+
|
|
1167
|
+
Agradecemos pelo teu registo e vamos manter-te informado sobre novidades e o lan\xE7amento oficial.`
|
|
1162
1168
|
}
|
|
1163
1169
|
};
|
|
1164
1170
|
return /* @__PURE__ */ jsxs22(Html17, { style: rootStyles, children: [
|
|
1165
1171
|
/* @__PURE__ */ jsx24(BaseHead, {}),
|
|
1166
|
-
/* @__PURE__ */ jsx24(Preview17, { children: "Bem-vindo
|
|
1172
|
+
/* @__PURE__ */ jsx24(Preview17, { children: "Bem-vindo \xE0 Promote" }),
|
|
1167
1173
|
/* @__PURE__ */ jsxs22(Body17, { style: { ...main, ...baseContainer }, children: [
|
|
1168
1174
|
/* @__PURE__ */ jsxs22(Container22, { style: headContainer, children: [
|
|
1169
1175
|
/* @__PURE__ */ jsx24(Img4, { src: `${assetsBasePath}/icons/logo-icon.png`, alt: "Promote Logo", style: promoteLogo }),
|
|
1170
|
-
/* @__PURE__ */ jsx24(Img4, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Promote
|
|
1176
|
+
/* @__PURE__ */ jsx24(Img4, { src: `${assetsBasePath}/icons/welcome-title.png`, alt: "Bem-vindo \xE0 Promote", style: welcomeImage })
|
|
1171
1177
|
] }),
|
|
1172
1178
|
/* @__PURE__ */ jsxs22(Container22, { style: baseContentContainer, children: [
|
|
1173
1179
|
/* @__PURE__ */ jsxs22(Heading3, { as: "h1", style: title3, children: [
|
|
@@ -1177,7 +1183,7 @@ function Welcome({ name, userType }) {
|
|
|
1177
1183
|
] }),
|
|
1178
1184
|
/* @__PURE__ */ jsx24(Text22, { style: textInfo, children: content2[userType]?.description }),
|
|
1179
1185
|
/* @__PURE__ */ jsxs22(Text22, { style: textInfo, children: [
|
|
1180
|
-
"
|
|
1186
|
+
"Se tiveres alguma d\xFAvida ou sugest\xE3o, n\xE3o hesites em contactar-nos atrav\xE9s do e-mail:",
|
|
1181
1187
|
" ",
|
|
1182
1188
|
/* @__PURE__ */ jsx24(Link20, { style: link, href: "mailto:help@promote.co.mz", children: "help@promote.co.mz" }),
|
|
1183
1189
|
" ",
|
|
@@ -1190,8 +1196,8 @@ function Welcome({ name, userType }) {
|
|
|
1190
1196
|
] });
|
|
1191
1197
|
}
|
|
1192
1198
|
Welcome.PreviewProps = {
|
|
1193
|
-
name: "Jo\xE3o
|
|
1194
|
-
userType: "
|
|
1199
|
+
name: "Jo\xE3o Ant\xF3nio",
|
|
1200
|
+
userType: "creator" /* CREATOR */
|
|
1195
1201
|
};
|
|
1196
1202
|
var headContainer = {
|
|
1197
1203
|
...baseContentContainer,
|
|
@@ -1223,7 +1229,9 @@ var title3 = {
|
|
|
1223
1229
|
var textInfo = {
|
|
1224
1230
|
...baseText,
|
|
1225
1231
|
marginTop: "20px",
|
|
1226
|
-
marginBottom: "20px"
|
|
1232
|
+
marginBottom: "20px",
|
|
1233
|
+
textAlign: "justify",
|
|
1234
|
+
whiteSpace: "pre-line"
|
|
1227
1235
|
};
|
|
1228
1236
|
export {
|
|
1229
1237
|
AbortOrderRequest,
|