@dbx-tools/shared-email-template 0.9.95 → 0.9.105
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/README.md +12 -2
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
Universal React Email presentation shared by dbx-tools server and browser email
|
|
4
4
|
surfaces.
|
|
5
5
|
|
|
6
|
+
## Quick Start
|
|
7
|
+
|
|
8
|
+
Render the same branded document in SMTP delivery and browser previews:
|
|
9
|
+
|
|
10
|
+
```tsx
|
|
11
|
+
import { EmailDocument } from "@dbx-tools/shared-email-template";
|
|
12
|
+
|
|
13
|
+
<EmailDocument subject="Incident update" body="## Resolved\nAll systems are healthy." />;
|
|
14
|
+
```
|
|
15
|
+
|
|
6
16
|
Key features:
|
|
7
17
|
|
|
8
18
|
- Responsive React Email document with email-safe inline styling.
|
|
@@ -11,7 +21,7 @@ Key features:
|
|
|
11
21
|
- Consumer brand overrides without coupling templates to AppKit or SMTP.
|
|
12
22
|
- Rich content rendered consistently in the inbox and browser.
|
|
13
23
|
|
|
14
|
-
##
|
|
24
|
+
## Runtime Support
|
|
15
25
|
|
|
16
26
|
The presentation layer has two consumers with incompatible dependency needs, so
|
|
17
27
|
it lives on its own:
|
|
@@ -29,7 +39,7 @@ This package depends on neither AppKit nor SMTP nor the DOM, so any runtime that
|
|
|
29
39
|
can render React can produce the same branded email — including callers outside
|
|
30
40
|
AppKit entirely.
|
|
31
41
|
|
|
32
|
-
##
|
|
42
|
+
## Template Options
|
|
33
43
|
|
|
34
44
|
```tsx
|
|
35
45
|
import { EmailDocument } from "@dbx-tools/shared-email-template";
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/shared-email-template";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.105";
|
|
7
7
|
export * as template from "./src/template.tsx";
|
|
8
8
|
export { emailBrandFromContext, defaultEmailBrand, resolveEmailBrand, normalizeEmailMarkdown, EmailBody, EmailCard, EmailDocument } from "./src/template.tsx";
|
|
9
9
|
export type { EmailBrand, ResolvedEmailBrand, EmailBodyProps, EmailDocumentProps } from "./src/template.tsx";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/shared-email-template";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.105";
|
|
3
3
|
export * as template from "./src/template.tsx";
|
|
4
4
|
export { emailBrandFromContext, defaultEmailBrand, resolveEmailBrand, normalizeEmailMarkdown, EmailBody, EmailCard, EmailDocument } from "./src/template.tsx";
|
|
5
5
|
export type { EmailBrand, ResolvedEmailBrand, EmailBodyProps, EmailDocumentProps } from "./src/template.tsx";
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/shared-email-template";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.105";
|
|
6
6
|
export * as template from "./src/template.js";
|
|
7
7
|
export { emailBrandFromContext, defaultEmailBrand, resolveEmailBrand, normalizeEmailMarkdown, EmailBody, EmailCard, EmailDocument } from "./src/template.js";
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI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DYXJkLCBFbWFpbERvY3VtZW50IH0gZnJvbSBcIi4vc3JjL3RlbXBsYXRlLnRzeFwiO1xuZXhwb3J0IHR5cGUgeyBFbWFpbEJyYW5kLCBSZXNvbHZlZEVtYWlsQnJhbmQsIEVtYWlsQm9keVByb3BzLCBFbWFpbERvY3VtZW50UHJvcHMgfSBmcm9tIFwiLi9zcmMvdGVtcGxhdGUudHN4XCI7XG4iXX0=
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"typescript": "^5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
26
|
+
"@dbx-tools/shared-core": "^0.9.105",
|
|
27
27
|
"@react-email/components": "^1.0.12",
|
|
28
28
|
"react": "~19.2.4"
|
|
29
29
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"./package.json": "./package.json"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"version": "0.9.
|
|
48
|
+
"version": "0.9.105",
|
|
49
49
|
"types": "./lib/index.d.ts",
|
|
50
50
|
"dbxToolsConfig": {
|
|
51
51
|
"tags": [
|