@hintoric/email 0.1.2 → 0.3.0

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.
Files changed (37) hide show
  1. package/README.md +3 -2
  2. package/dist/alertIcons.d.ts +29 -0
  3. package/dist/alertIcons.d.ts.map +1 -0
  4. package/dist/components/Alert.d.ts +66 -0
  5. package/dist/components/Alert.d.ts.map +1 -0
  6. package/dist/components/Layout.d.ts +10 -1
  7. package/dist/components/Layout.d.ts.map +1 -1
  8. package/dist/index.d.ts +6 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +645 -195
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles.d.ts +2 -0
  13. package/dist/styles.d.ts.map +1 -1
  14. package/dist/templates/AuthCode/AuthCodeEmail.d.ts +14 -0
  15. package/dist/templates/AuthCode/AuthCodeEmail.d.ts.map +1 -0
  16. package/dist/templates/AuthCode/index.d.ts +4 -0
  17. package/dist/templates/AuthCode/index.d.ts.map +1 -0
  18. package/dist/templates/AuthCode/messages.d.ts +4 -0
  19. package/dist/templates/AuthCode/messages.d.ts.map +1 -0
  20. package/dist/templates/AuthCode/types.d.ts +58 -0
  21. package/dist/templates/AuthCode/types.d.ts.map +1 -0
  22. package/dist/templates/AuthNoAccount/AuthNoAccountEmail.d.ts +13 -0
  23. package/dist/templates/AuthNoAccount/AuthNoAccountEmail.d.ts.map +1 -0
  24. package/dist/templates/AuthNoAccount/index.d.ts +4 -0
  25. package/dist/templates/AuthNoAccount/index.d.ts.map +1 -0
  26. package/dist/templates/AuthNoAccount/messages.d.ts +4 -0
  27. package/dist/templates/AuthNoAccount/messages.d.ts.map +1 -0
  28. package/dist/templates/AuthNoAccount/types.d.ts +47 -0
  29. package/dist/templates/AuthNoAccount/types.d.ts.map +1 -0
  30. package/dist/templates/SecurityActivityAlert/messages.d.ts.map +1 -1
  31. package/dist/templates/WaitlistWelcome/WaitlistWelcomeEmail.d.ts.map +1 -1
  32. package/dist/templates/WaitlistWelcome/messages.d.ts.map +1 -1
  33. package/dist/templates/WaitlistWelcome/types.d.ts +4 -0
  34. package/dist/templates/WaitlistWelcome/types.d.ts.map +1 -1
  35. package/dist/tokens.d.ts +1 -0
  36. package/dist/tokens.d.ts.map +1 -1
  37. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/templates/SecurityActivityAlert/messages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAO7D,eAAO,MAAM,+BAA+B,EAAE,6BAa7C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,6BAa7C,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/templates/SecurityActivityAlert/messages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAO7D,eAAO,MAAM,+BAA+B,EAAE,6BAc7C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,6BAa7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WaitlistWelcomeEmail.d.ts","sourceRoot":"","sources":["../../../src/templates/WaitlistWelcome/WaitlistWelcomeEmail.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;GAIG;AACH,8DAA8D;AAC9D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,+BAsB/D;AAED,qHAAqH;AACrH,8DAA8D;AAC9D,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,oBAAoB,+BAwBpF;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,0FAA0F;AAC1F,8DAA8D;AAC9D,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAGzG"}
1
+ {"version":3,"file":"WaitlistWelcomeEmail.d.ts","sourceRoot":"","sources":["../../../src/templates/WaitlistWelcome/WaitlistWelcomeEmail.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;GAIG;AACH,8DAA8D;AAC9D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,+BAuB/D;AAED,qHAAqH;AACrH,8DAA8D;AAC9D,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,oBAAoB,+BAwBpF;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,0FAA0F;AAC1F,8DAA8D;AAC9D,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAGzG"}
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/templates/WaitlistWelcome/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,EAAE,uBAWvC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,EAAE,uBAWvC,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/templates/WaitlistWelcome/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,EAAE,uBAYvC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,EAAE,uBAYvC,CAAC"}
@@ -19,11 +19,15 @@ export interface WaitlistWelcomeMessages {
19
19
  signoff: string;
20
20
  /** Under the card: why the reader got this mail. */
21
21
  footer: string;
22
+ /** Label of the unsubscribe link under the footer. Shown only when `unsubscribeUrl` is set. */
23
+ unsubscribe?: string;
22
24
  }
23
25
  export interface WaitlistWelcomeProps {
24
26
  messages: WaitlistWelcomeMessages;
25
27
  /** Where the button leads — normally the marketing site. */
26
28
  websiteUrl: string;
29
+ /** One-click opt-out. When set (and `messages.unsubscribe` is), the footer ends with an unsubscribe link. */
30
+ unsubscribeUrl?: string;
27
31
  /** The sender's legal line under the footer — company, address. */
28
32
  legalNotice?: string;
29
33
  /** Previews only — see `Layout`. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/templates/WaitlistWelcome/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,uBAAuB,CAAC;IAClC,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/templates/WaitlistWelcome/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,uBAAuB,CAAC;IAClC,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC"}
package/dist/tokens.d.ts CHANGED
@@ -37,6 +37,7 @@ export declare const emailSchemes: Record<EmailScheme, EmailSchemeTokens>;
37
37
  export declare const emailFonts: {
38
38
  body: string;
39
39
  heading: string;
40
+ code: string;
40
41
  };
41
42
  /** theme.css's radius scale. */
42
43
  export declare const emailRadius: {
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAClF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,WAAW,GAAG,OAAO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AAC;IAChB,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAqB/D,CAAC;AAEF,eAAO,MAAM,UAAU;;;;CAStB,CAAC;AAEF,gCAAgC;AAChC,eAAO,MAAM,WAAW;;;;;;CAA8D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hintoric/email",
3
- "version": "0.1.2",
3
+ "version": "0.3.0",
4
4
  "description": "Transactional email components in @hintoric/ui's look, built on react-email.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "vite": "^8.2.2",
48
48
  "vite-plugin-dts": "^5.1.0",
49
49
  "vitest": "^4.1.11",
50
- "@hintoric/ui": "0.10.0"
50
+ "@hintoric/ui": "0.11.0"
51
51
  },
52
52
  "dependencies": {
53
53
  "@react-email/render": "^2.1.0",