@maily-to/shared 0.0.2 → 2.0.0-beta.10

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 DELETED
@@ -1,213 +0,0 @@
1
-
2
- //#region src/theme.ts
3
- const allowedFallbackFonts = [
4
- "Arial",
5
- "Helvetica",
6
- "Verdana",
7
- "Georgia",
8
- "Times New Roman",
9
- "serif",
10
- "sans-serif",
11
- "monospace",
12
- "cursive",
13
- "fantasy"
14
- ];
15
- const allowedFontFormats = [
16
- "woff",
17
- "woff2",
18
- "truetype",
19
- "opentype",
20
- "embedded-opentype",
21
- "svg"
22
- ];
23
- const DEFAULT_FONT = {
24
- fallbackFontFamily: "sans-serif",
25
- fontFamily: "Inter",
26
- webFont: {
27
- url: "https://rsms.me/inter/font-files/Inter-Regular.woff2?v=3.19",
28
- format: "woff2"
29
- }
30
- };
31
- const DEFAULT_LINK_TEXT_COLOR = "#111827";
32
- const DEFAULT_RENDERER_THEME = {
33
- colors: {
34
- heading: "#111827",
35
- paragraph: "#374151",
36
- horizontal: "#EAEAEA",
37
- footer: "#64748B",
38
- blockquoteBorder: "#D1D5DB",
39
- codeBackground: "#EFEFEF",
40
- codeText: "#111827",
41
- linkCardTitle: "#111827",
42
- linkCardDescription: "#6B7280",
43
- linkCardBadgeText: "#111827",
44
- linkCardBadgeBackground: "#FEF08A",
45
- linkCardSubTitle: "#6B7280"
46
- },
47
- fontSize: {
48
- paragraph: {
49
- size: "15px",
50
- lineHeight: "26.25px"
51
- },
52
- footer: {
53
- size: "14px",
54
- lineHeight: "24px"
55
- }
56
- },
57
- container: {
58
- backgroundColor: "#ffffff",
59
- maxWidth: "600px",
60
- minWidth: "300px",
61
- paddingTop: "0.5rem",
62
- paddingRight: "0.5rem",
63
- paddingBottom: "0.5rem",
64
- paddingLeft: "0.5rem",
65
- borderRadius: "0px",
66
- borderWidth: "0px",
67
- borderColor: "transparent"
68
- },
69
- body: {
70
- backgroundColor: "#ffffff",
71
- paddingTop: "0px",
72
- paddingRight: "0px",
73
- paddingBottom: "0px",
74
- paddingLeft: "0px"
75
- },
76
- button: {
77
- backgroundColor: "#000000",
78
- color: "#ffffff",
79
- paddingTop: "10px",
80
- paddingRight: "32px",
81
- paddingBottom: "10px",
82
- paddingLeft: "32px"
83
- },
84
- link: { color: DEFAULT_LINK_TEXT_COLOR },
85
- font: DEFAULT_FONT
86
- };
87
- const DEFAULT_EDITOR_THEME = {
88
- container: {
89
- backgroundColor: "#ffffff",
90
- maxWidth: "600px",
91
- minWidth: "300px",
92
- paddingTop: "8px",
93
- paddingRight: "8px",
94
- paddingBottom: "8px",
95
- paddingLeft: "8px",
96
- borderRadius: "0px",
97
- borderWidth: "0px",
98
- borderColor: "transparent"
99
- },
100
- body: {
101
- backgroundColor: "#ffffff",
102
- paddingTop: "0px",
103
- paddingRight: "0px",
104
- paddingBottom: "0px",
105
- paddingLeft: "0px"
106
- },
107
- button: {
108
- backgroundColor: "#000000",
109
- color: "#ffffff",
110
- paddingTop: "10px",
111
- paddingRight: "32px",
112
- paddingBottom: "10px",
113
- paddingLeft: "32px"
114
- },
115
- link: { color: DEFAULT_LINK_TEXT_COLOR },
116
- font: DEFAULT_FONT
117
- };
118
-
119
- //#endregion
120
- //#region src/css-variables.ts
121
- /**
122
- * if the value is undefined, it will return an empty object
123
- * so that we don't override the default value
124
- * @param name - The name of the CSS variable
125
- * @param value - The value of the CSS variable
126
- * @returns The CSS variable value
127
- */
128
- function getVariableValue(name, value) {
129
- if (value === void 0 || value === null || value === "") return {};
130
- return { [name]: value };
131
- }
132
- /**
133
- * Get the CSS variables for the theme
134
- * @param theme - The theme
135
- * @returns The CSS variables
136
- * @example
137
- * ```ts
138
- * const theme = {
139
- * body: {
140
- * backgroundColor: 'red',
141
- * },
142
- * };
143
- *
144
- * const cssVariables = getCssVariables(theme);
145
- *
146
- * console.log(cssVariables);
147
- * // { '--mly-body-background-color': 'red' }
148
- */
149
- function getMailyCssVariables(theme) {
150
- const font = theme.font || DEFAULT_FONT;
151
- return {
152
- ...getVariableValue("--mly-body-background-color", theme.body?.backgroundColor),
153
- ...getVariableValue("--mly-body-padding-top", theme.body?.paddingTop),
154
- ...getVariableValue("--mly-body-padding-right", theme.body?.paddingRight),
155
- ...getVariableValue("--mly-body-padding-bottom", theme.body?.paddingBottom),
156
- ...getVariableValue("--mly-body-padding-left", theme.body?.paddingLeft),
157
- ...getVariableValue("--mly-container-background-color", theme.container?.backgroundColor),
158
- ...getVariableValue("--mly-container-max-width", theme.container?.maxWidth),
159
- ...getVariableValue("--mly-container-min-width", theme.container?.minWidth),
160
- ...getVariableValue("--mly-container-padding-top", theme.container?.paddingTop),
161
- ...getVariableValue("--mly-container-padding-right", theme.container?.paddingRight),
162
- ...getVariableValue("--mly-container-padding-bottom", theme.container?.paddingBottom),
163
- ...getVariableValue("--mly-container-padding-left", theme.container?.paddingLeft),
164
- ...getVariableValue("--mly-container-border-radius", theme.container?.borderRadius),
165
- ...getVariableValue("--mly-container-border-width", theme.container?.borderWidth),
166
- ...getVariableValue("--mly-container-border-color", theme.container?.borderColor),
167
- ...getVariableValue("--mly-button-background-color", theme.button?.backgroundColor),
168
- ...getVariableValue("--mly-button-text-color", theme.button?.color),
169
- ...getVariableValue("--mly-button-padding-top", theme.button?.paddingTop),
170
- ...getVariableValue("--mly-button-padding-right", theme.button?.paddingRight),
171
- ...getVariableValue("--mly-button-padding-bottom", theme.button?.paddingBottom),
172
- ...getVariableValue("--mly-button-padding-left", theme.button?.paddingLeft),
173
- ...getVariableValue("--mly-link-color", theme.link?.color),
174
- ...getVariableValue("--mly-font-family", font.fontFamily),
175
- ...getVariableValue("--mly-font-fallback-family", font.fallbackFontFamily),
176
- "--mly-font": `var(--mly-font-family), var(--mly-font-fallback-family)`
177
- };
178
- }
179
-
180
- //#endregion
181
- //#region src/font.ts
182
- function loadFont(font) {
183
- const style = fontStyle(font);
184
- const styleElement = document.createElement("style");
185
- styleElement.textContent = style;
186
- document.head.appendChild(styleElement);
187
- }
188
- function fontStyle(font) {
189
- const { fontFamily, fallbackFontFamily, webFont } = font;
190
- const src = webFont ? `src: url(${webFont.url}) format('${webFont.format}');` : "";
191
- const style = `
192
- @font-face {
193
- font-family: '${fontFamily}';
194
- font-style: normal;
195
- font-weight: 400;
196
- mso-font-alt: '${fallbackFontFamily}';
197
- ${src}
198
- }`;
199
- return style;
200
- }
201
-
202
- //#endregion
203
- exports.DEFAULT_EDITOR_THEME = DEFAULT_EDITOR_THEME;
204
- exports.DEFAULT_FONT = DEFAULT_FONT;
205
- exports.DEFAULT_LINK_TEXT_COLOR = DEFAULT_LINK_TEXT_COLOR;
206
- exports.DEFAULT_RENDERER_THEME = DEFAULT_RENDERER_THEME;
207
- exports.allowedFallbackFonts = allowedFallbackFonts;
208
- exports.allowedFontFormats = allowedFontFormats;
209
- exports.fontStyle = fontStyle;
210
- exports.getMailyCssVariables = getMailyCssVariables;
211
- exports.getVariableValue = getVariableValue;
212
- exports.loadFont = loadFont;
213
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["DEFAULT_FONT: FontProps","DEFAULT_RENDERER_THEME: RendererThemeOptions","DEFAULT_EDITOR_THEME: EditorThemeOptions","name: `--mly-${string}`","value: any","theme: EditorThemeOptions","font: Font"],"sources":["../src/theme.ts","../src/css-variables.ts","../src/font.ts"],"sourcesContent":["import type * as CSS from 'csstype';\n\nexport const allowedFallbackFonts = [\n 'Arial',\n 'Helvetica',\n 'Verdana',\n 'Georgia',\n 'Times New Roman',\n 'serif',\n 'sans-serif',\n 'monospace',\n 'cursive',\n 'fantasy',\n] as const;\n\nexport type FallbackFont = (typeof allowedFallbackFonts)[number];\n\nexport const allowedFontFormats = [\n 'woff',\n 'woff2',\n 'truetype',\n 'opentype',\n 'embedded-opentype',\n 'svg',\n] as const;\n\nexport type FontFormat = (typeof allowedFontFormats)[number];\n\ntype FontWeight = CSS.Properties['fontWeight'];\ntype FontStyle = CSS.Properties['fontStyle'];\n\nexport interface FontProps {\n /** The font you want to use. NOTE: Do not insert multiple fonts here, use fallbackFontFamily for that */\n fontFamily: string;\n /** An array is possible, but the order of the array is the priority order */\n fallbackFontFamily: FallbackFont;\n /** Not all clients support web fonts. For support check: https://www.caniemail.com/features/css-at-font-face/ */\n webFont?: {\n url: string;\n format: FontFormat;\n };\n /** Default: 'normal' */\n fontStyle?: FontStyle;\n /** Default: 400 */\n fontWeight?: FontWeight;\n}\n\nexport interface BaseThemeOptions {\n container?: Partial<\n Pick<\n CSS.Properties,\n | 'backgroundColor'\n | 'maxWidth'\n | 'minWidth'\n | 'paddingTop'\n | 'paddingRight'\n | 'paddingBottom'\n | 'paddingLeft'\n | 'borderRadius'\n | 'borderWidth'\n | 'borderColor'\n >\n >;\n body?: Partial<\n Pick<\n CSS.Properties,\n | 'backgroundColor'\n | 'paddingTop'\n | 'paddingRight'\n | 'paddingBottom'\n | 'paddingLeft'\n >\n >;\n button?: Partial<\n Pick<\n CSS.Properties,\n | 'paddingTop'\n | 'paddingRight'\n | 'paddingBottom'\n | 'paddingLeft'\n | 'backgroundColor'\n | 'color'\n >\n >;\n link?: Partial<Pick<CSS.Properties, 'color'>>;\n font?: Pick<\n FontProps,\n 'fontFamily' | 'fallbackFontFamily' | 'webFont'\n > | null;\n}\n\n/**\n * The theme options for the editor.\n * currently, we don't allow any customizations for the colors in the editor.\n * that's why we have a separate theme for the editor.\n */\nexport interface EditorThemeOptions extends BaseThemeOptions {}\n\n/**\n * The theme options for the renderer.\n * currently, we don't allow any customizations for the colors in the editor.\n * that's why we have a separate theme for the renderer.\n */\nexport interface RendererThemeOptions extends BaseThemeOptions {\n colors?: Partial<{\n heading: string;\n paragraph: string;\n horizontal: string;\n footer: string;\n blockquoteBorder: string;\n codeBackground: string;\n codeText: string;\n linkCardTitle: string;\n linkCardDescription: string;\n linkCardBadgeText: string;\n linkCardBadgeBackground: string;\n linkCardSubTitle: string;\n }>;\n fontSize?: Partial<{\n paragraph: Partial<{\n size: string;\n lineHeight: string;\n }>;\n footer: Partial<{\n size: string;\n lineHeight: string;\n }>;\n }>;\n}\n\nexport const DEFAULT_FONT: FontProps = {\n fallbackFontFamily: 'sans-serif',\n fontFamily: 'Inter',\n webFont: {\n url: 'https://rsms.me/inter/font-files/Inter-Regular.woff2?v=3.19',\n format: 'woff2',\n },\n};\n\nexport const DEFAULT_LINK_TEXT_COLOR = '#111827';\n\nexport const DEFAULT_RENDERER_THEME: RendererThemeOptions = {\n colors: {\n heading: '#111827',\n paragraph: '#374151',\n horizontal: '#EAEAEA',\n footer: '#64748B',\n blockquoteBorder: '#D1D5DB',\n codeBackground: '#EFEFEF',\n codeText: '#111827',\n linkCardTitle: '#111827',\n linkCardDescription: '#6B7280',\n linkCardBadgeText: '#111827',\n linkCardBadgeBackground: '#FEF08A',\n linkCardSubTitle: '#6B7280',\n },\n fontSize: {\n paragraph: {\n size: '15px',\n lineHeight: '26.25px',\n },\n footer: {\n size: '14px',\n lineHeight: '24px',\n },\n },\n\n container: {\n backgroundColor: '#ffffff',\n maxWidth: '600px',\n minWidth: '300px',\n paddingTop: '0.5rem',\n paddingRight: '0.5rem',\n paddingBottom: '0.5rem',\n paddingLeft: '0.5rem',\n\n borderRadius: '0px',\n borderWidth: '0px',\n borderColor: 'transparent',\n },\n body: {\n backgroundColor: '#ffffff',\n\n paddingTop: '0px',\n paddingRight: '0px',\n paddingBottom: '0px',\n paddingLeft: '0px',\n },\n button: {\n backgroundColor: '#000000',\n color: '#ffffff',\n paddingTop: '10px',\n paddingRight: '32px',\n paddingBottom: '10px',\n paddingLeft: '32px',\n },\n link: {\n color: DEFAULT_LINK_TEXT_COLOR,\n },\n font: DEFAULT_FONT,\n};\n\nexport const DEFAULT_EDITOR_THEME: EditorThemeOptions = {\n container: {\n backgroundColor: '#ffffff',\n maxWidth: '600px',\n minWidth: '300px',\n paddingTop: '8px',\n paddingRight: '8px',\n paddingBottom: '8px',\n paddingLeft: '8px',\n\n borderRadius: '0px',\n borderWidth: '0px',\n borderColor: 'transparent',\n },\n body: {\n backgroundColor: '#ffffff',\n\n paddingTop: '0px',\n paddingRight: '0px',\n paddingBottom: '0px',\n paddingLeft: '0px',\n },\n button: {\n backgroundColor: '#000000',\n color: '#ffffff',\n paddingTop: '10px',\n paddingRight: '32px',\n paddingBottom: '10px',\n paddingLeft: '32px',\n },\n link: {\n color: DEFAULT_LINK_TEXT_COLOR,\n },\n font: DEFAULT_FONT,\n};\n","import type * as CSS from 'csstype';\nimport { DEFAULT_FONT, type EditorThemeOptions } from './theme';\n\ndeclare module 'csstype' {\n interface Properties {\n [index: `--mly-${string}`]: any;\n }\n}\n\n/**\n * if the value is undefined, it will return an empty object\n * so that we don't override the default value\n * @param name - The name of the CSS variable\n * @param value - The value of the CSS variable\n * @returns The CSS variable value\n */\nexport function getVariableValue(\n name: `--mly-${string}`,\n value: any\n): CSS.Properties {\n if (value === undefined || value === null || value === '') {\n return {};\n }\n\n return {\n [name]: value,\n };\n}\n\n/**\n * Get the CSS variables for the theme\n * @param theme - The theme\n * @returns The CSS variables\n * @example\n * ```ts\n * const theme = {\n * body: {\n * backgroundColor: 'red',\n * },\n * };\n *\n * const cssVariables = getCssVariables(theme);\n *\n * console.log(cssVariables);\n * // { '--mly-body-background-color': 'red' }\n */\nexport function getMailyCssVariables(\n theme: EditorThemeOptions\n): CSS.Properties {\n const font = theme.font || DEFAULT_FONT;\n\n return {\n ...getVariableValue(\n '--mly-body-background-color',\n theme.body?.backgroundColor\n ),\n ...getVariableValue('--mly-body-padding-top', theme.body?.paddingTop),\n ...getVariableValue('--mly-body-padding-right', theme.body?.paddingRight),\n ...getVariableValue('--mly-body-padding-bottom', theme.body?.paddingBottom),\n ...getVariableValue('--mly-body-padding-left', theme.body?.paddingLeft),\n\n ...getVariableValue(\n '--mly-container-background-color',\n theme.container?.backgroundColor\n ),\n ...getVariableValue('--mly-container-max-width', theme.container?.maxWidth),\n ...getVariableValue('--mly-container-min-width', theme.container?.minWidth),\n\n ...getVariableValue(\n '--mly-container-padding-top',\n theme.container?.paddingTop\n ),\n ...getVariableValue(\n '--mly-container-padding-right',\n theme.container?.paddingRight\n ),\n ...getVariableValue(\n '--mly-container-padding-bottom',\n theme.container?.paddingBottom\n ),\n ...getVariableValue(\n '--mly-container-padding-left',\n theme.container?.paddingLeft\n ),\n\n ...getVariableValue(\n '--mly-container-border-radius',\n theme.container?.borderRadius\n ),\n ...getVariableValue(\n '--mly-container-border-width',\n theme.container?.borderWidth\n ),\n ...getVariableValue(\n '--mly-container-border-color',\n theme.container?.borderColor\n ),\n\n ...getVariableValue(\n '--mly-button-background-color',\n theme.button?.backgroundColor\n ),\n ...getVariableValue('--mly-button-text-color', theme.button?.color),\n ...getVariableValue('--mly-button-padding-top', theme.button?.paddingTop),\n ...getVariableValue(\n '--mly-button-padding-right',\n theme.button?.paddingRight\n ),\n ...getVariableValue(\n '--mly-button-padding-bottom',\n theme.button?.paddingBottom\n ),\n ...getVariableValue('--mly-button-padding-left', theme.button?.paddingLeft),\n\n ...getVariableValue('--mly-link-color', theme.link?.color),\n\n ...getVariableValue('--mly-font-family', font.fontFamily),\n ...getVariableValue('--mly-font-fallback-family', font.fallbackFontFamily),\n '--mly-font': `var(--mly-font-family), var(--mly-font-fallback-family)`,\n };\n}\n","import type { FontProps } from './theme';\n\ntype Font = Pick<FontProps, 'fontFamily' | 'fallbackFontFamily' | 'webFont'>;\n\nexport function loadFont(font: Font): void {\n const style = fontStyle(font);\n\n const styleElement = document.createElement('style');\n styleElement.textContent = style;\n document.head.appendChild(styleElement);\n}\n\nexport function fontStyle(font: Font): string {\n const { fontFamily, fallbackFontFamily, webFont } = font;\n\n const src = webFont\n ? `src: url(${webFont.url}) format('${webFont.format}');`\n : '';\n\n const style = `\n @font-face {\n font-family: '${fontFamily}';\n font-style: normal;\n font-weight: 400;\n mso-font-alt: '${fallbackFontFamily}';\n ${src}\n }`;\n\n return style;\n}\n"],"mappings":";;AAEA,MAA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