@rudyzeinoun/email-builder 0.0.19 → 0.0.21
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 +78 -78
- package/dist/index.d.ts +78 -78
- package/dist/index.js +10 -4
- package/dist/index.mjs +10 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -75,13 +75,13 @@ var import_server = require("react-dom/server");
|
|
|
75
75
|
var import_react4 = __toESM(require("react"));
|
|
76
76
|
var import_zod4 = require("zod");
|
|
77
77
|
var import_block_avatar = require("@usewaypoint/block-avatar");
|
|
78
|
-
var import_block_button = require("@
|
|
78
|
+
var import_block_button = require("@rudyzeinoun/block-button");
|
|
79
79
|
var import_block_divider = require("@usewaypoint/block-divider");
|
|
80
|
-
var import_block_heading = require("@
|
|
81
|
-
var import_block_html = require("@
|
|
80
|
+
var import_block_heading = require("@rudyzeinoun/block-heading");
|
|
81
|
+
var import_block_html = require("@rudyzeinoun/block-html");
|
|
82
82
|
var import_block_image = require("@usewaypoint/block-image");
|
|
83
83
|
var import_block_spacer = require("@usewaypoint/block-spacer");
|
|
84
|
-
var import_block_text = require("@
|
|
84
|
+
var import_block_text = require("@rudyzeinoun/block-text");
|
|
85
85
|
var import_document_core = require("@usewaypoint/document-core");
|
|
86
86
|
|
|
87
87
|
// src/blocks/ColumnsContainer/ColumnsContainerPropsSchema.ts
|
|
@@ -141,6 +141,8 @@ function ContainerReader({ style, props, className, loopStart, loopEnd }) {
|
|
|
141
141
|
var import_zod3 = require("zod");
|
|
142
142
|
var COLOR_SCHEMA = import_zod3.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional();
|
|
143
143
|
var FONT_FAMILY_SCHEMA = import_zod3.z.enum([
|
|
144
|
+
"HELVETICA",
|
|
145
|
+
"GEORGIA",
|
|
144
146
|
"MODERN_SANS",
|
|
145
147
|
"BOOK_SANS",
|
|
146
148
|
"ORGANIC_SANS",
|
|
@@ -166,6 +168,10 @@ var import_react3 = __toESM(require("react"));
|
|
|
166
168
|
function getFontFamily(fontFamily) {
|
|
167
169
|
const f = fontFamily != null ? fontFamily : "MODERN_SANS";
|
|
168
170
|
switch (f) {
|
|
171
|
+
case "HELVETICA":
|
|
172
|
+
return "Helvetica, Arial, sans-serif";
|
|
173
|
+
case "GEORGIA":
|
|
174
|
+
return '"Georgia, "Times New Roman", Times, serif';
|
|
169
175
|
case "MODERN_SANS":
|
|
170
176
|
return '"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';
|
|
171
177
|
case "BOOK_SANS":
|
package/dist/index.mjs
CHANGED
|
@@ -38,13 +38,13 @@ import { renderToStaticMarkup as baseRenderToStaticMarkup } from "react-dom/serv
|
|
|
38
38
|
import React4, { createContext, useContext } from "react";
|
|
39
39
|
import { z as z4 } from "zod";
|
|
40
40
|
import { Avatar, AvatarPropsSchema } from "@usewaypoint/block-avatar";
|
|
41
|
-
import { Button, ButtonPropsSchema } from "@
|
|
41
|
+
import { Button, ButtonPropsSchema } from "@rudyzeinoun/block-button";
|
|
42
42
|
import { Divider, DividerPropsSchema } from "@usewaypoint/block-divider";
|
|
43
|
-
import { Heading, HeadingPropsSchema } from "@
|
|
44
|
-
import { Html, HtmlPropsSchema } from "@
|
|
43
|
+
import { Heading, HeadingPropsSchema } from "@rudyzeinoun/block-heading";
|
|
44
|
+
import { Html, HtmlPropsSchema } from "@rudyzeinoun/block-html";
|
|
45
45
|
import { Image, ImagePropsSchema } from "@usewaypoint/block-image";
|
|
46
46
|
import { Spacer, SpacerPropsSchema } from "@usewaypoint/block-spacer";
|
|
47
|
-
import { Text, TextPropsSchema } from "@
|
|
47
|
+
import { Text, TextPropsSchema } from "@rudyzeinoun/block-text";
|
|
48
48
|
import {
|
|
49
49
|
buildBlockComponent,
|
|
50
50
|
buildBlockConfigurationDictionary,
|
|
@@ -108,6 +108,8 @@ function ContainerReader({ style, props, className, loopStart, loopEnd }) {
|
|
|
108
108
|
import { z as z3 } from "zod";
|
|
109
109
|
var COLOR_SCHEMA = z3.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional();
|
|
110
110
|
var FONT_FAMILY_SCHEMA = z3.enum([
|
|
111
|
+
"HELVETICA",
|
|
112
|
+
"GEORGIA",
|
|
111
113
|
"MODERN_SANS",
|
|
112
114
|
"BOOK_SANS",
|
|
113
115
|
"ORGANIC_SANS",
|
|
@@ -133,6 +135,10 @@ import React3 from "react";
|
|
|
133
135
|
function getFontFamily(fontFamily) {
|
|
134
136
|
const f = fontFamily != null ? fontFamily : "MODERN_SANS";
|
|
135
137
|
switch (f) {
|
|
138
|
+
case "HELVETICA":
|
|
139
|
+
return "Helvetica, Arial, sans-serif";
|
|
140
|
+
case "GEORGIA":
|
|
141
|
+
return '"Georgia, "Times New Roman", Times, serif';
|
|
136
142
|
case "MODERN_SANS":
|
|
137
143
|
return '"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';
|
|
138
144
|
case "BOOK_SANS":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rudyzeinoun/email-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "React component to render email messages",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@rudyzeinoun/block-container": "^0.0.8",
|
|
30
30
|
"@usewaypoint/block-avatar": "^0.0.3",
|
|
31
|
-
"@
|
|
31
|
+
"@rudyzeinoun/block-button": "^0.0.4",
|
|
32
32
|
"@rudyzeinoun/block-columns-container": "^0.0.6",
|
|
33
33
|
"@usewaypoint/block-divider": "^0.0.4",
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
34
|
+
"@rudyzeinoun/block-heading": "^0.0.4",
|
|
35
|
+
"@rudyzeinoun/block-html": "^0.0.4",
|
|
36
36
|
"@usewaypoint/block-image": "^0.0.5",
|
|
37
37
|
"@usewaypoint/block-spacer": "^0.0.3",
|
|
38
|
-
"@
|
|
38
|
+
"@rudyzeinoun/block-text": "^0.0.7",
|
|
39
39
|
"@usewaypoint/document-core": "^0.0.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|