@usewaypoint/email-builder 0.0.3 → 0.0.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/LICENSE CHANGED
@@ -1,4 +1,6 @@
1
- Copyright (c) 2024 Carlos Rodriguez-Rosario
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Waypoint (Metaccountant, Inc.)
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
6
  of this software and associated documentation files (the "Software"), to deal
@@ -27,8 +27,8 @@ export default function EmailLayoutReader(props) {
27
27
  var _a, _b, _c, _d;
28
28
  const childrenIds = (_a = props.childrenIds) !== null && _a !== void 0 ? _a : [];
29
29
  return (React.createElement("div", { style: {
30
- backgroundColor: (_b = props.backdropColor) !== null && _b !== void 0 ? _b : '#EEEEEE',
31
- color: (_c = props.textColor) !== null && _c !== void 0 ? _c : '#242424',
30
+ backgroundColor: (_b = props.backdropColor) !== null && _b !== void 0 ? _b : '#F5F5F5',
31
+ color: (_c = props.textColor) !== null && _c !== void 0 ? _c : '#262626',
32
32
  fontFamily: getFontFamily(props.fontFamily),
33
33
  fontSize: '16px',
34
34
  fontWeight: '400',
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @jest-environment node
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=renderToStaticMarkup.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderToStaticMarkup.spec.d.ts","sourceRoot":"","sources":["../../src/renderers/renderToStaticMarkup.spec.tsx"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @jest-environment node
3
+ */
4
+ import renderToStaticMarkup from './renderToStaticMarkup';
5
+ describe('renderToStaticMarkup', () => {
6
+ it.only('renders into a string', () => {
7
+ const result = renderToStaticMarkup({
8
+ root: {
9
+ type: 'Container',
10
+ data: {
11
+ props: {
12
+ childrenIds: [],
13
+ },
14
+ },
15
+ },
16
+ }, { rootBlockId: 'root' });
17
+ expect(result).toEqual('<!DOCTYPE html><html><body><div></div></body></html>');
18
+ });
19
+ });
20
+ //# sourceMappingURL=renderToStaticMarkup.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderToStaticMarkup.spec.js","sourceRoot":"","sources":["../../src/renderers/renderToStaticMarkup.spec.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,IAAI,CAAC,uBAAuB,EAAE,GAAG,EAAE;QACpC,MAAM,MAAM,GAAG,oBAAoB,CACjC;YACE,IAAI,EAAE;gBACJ,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE;oBACJ,KAAK,EAAE;wBACL,WAAW,EAAE,EAAE;qBAChB;iBACF;aACF;SACF,EACD,EAAE,WAAW,EAAE,MAAM,EAAE,CACxB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,sDAAsD,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@usewaypoint/email-builder",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "React component to render email messages",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "target": "ES2022",
8
7
  "files": [
9
8
  "dist"
10
9
  ],
@@ -15,6 +14,7 @@
15
14
  "license": "MIT",
16
15
  "peerDependencies": {
17
16
  "react": "^16 || ^17 || ^18",
17
+ "react-dom": "^16 || ^17 || ^18",
18
18
  "zod": "^1 || ^2 || ^3"
19
19
  },
20
20
  "dependencies": {