@learncard/email-templates 1.2.0 → 1.2.2

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 (92) hide show
  1. package/dist/i18n.d.ts +15 -0
  2. package/dist/i18n.d.ts.map +1 -1
  3. package/dist/i18n.js +31 -0
  4. package/dist/i18n.js.map +1 -1
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/previews/account-secured-scenarios.d.ts +6 -0
  9. package/dist/previews/account-secured-scenarios.d.ts.map +1 -0
  10. package/dist/previews/account-secured-scenarios.js +7 -0
  11. package/dist/previews/account-secured-scenarios.js.map +1 -0
  12. package/dist/previews/escrow-hold-cancelled-scenarios.d.ts +6 -0
  13. package/dist/previews/escrow-hold-cancelled-scenarios.d.ts.map +1 -0
  14. package/dist/previews/escrow-hold-cancelled-scenarios.js +7 -0
  15. package/dist/previews/escrow-hold-cancelled-scenarios.js.map +1 -0
  16. package/dist/previews/escrow-hold-released-scenarios.d.ts +6 -0
  17. package/dist/previews/escrow-hold-released-scenarios.d.ts.map +1 -0
  18. package/dist/previews/escrow-hold-released-scenarios.js +7 -0
  19. package/dist/previews/escrow-hold-released-scenarios.js.map +1 -0
  20. package/dist/previews/escrow-hold-reminder-scenarios.d.ts +6 -0
  21. package/dist/previews/escrow-hold-reminder-scenarios.d.ts.map +1 -0
  22. package/dist/previews/escrow-hold-reminder-scenarios.js +7 -0
  23. package/dist/previews/escrow-hold-reminder-scenarios.js.map +1 -0
  24. package/dist/previews/escrow-hold-started-scenarios.d.ts +6 -0
  25. package/dist/previews/escrow-hold-started-scenarios.d.ts.map +1 -0
  26. package/dist/previews/escrow-hold-started-scenarios.js +7 -0
  27. package/dist/previews/escrow-hold-started-scenarios.js.map +1 -0
  28. package/dist/previews/escrow-pin-locked-scenarios.d.ts +6 -0
  29. package/dist/previews/escrow-pin-locked-scenarios.d.ts.map +1 -0
  30. package/dist/previews/escrow-pin-locked-scenarios.js +7 -0
  31. package/dist/previews/escrow-pin-locked-scenarios.js.map +1 -0
  32. package/dist/previews/escrow-pin-sign-in-scenarios.d.ts +6 -0
  33. package/dist/previews/escrow-pin-sign-in-scenarios.d.ts.map +1 -0
  34. package/dist/previews/escrow-pin-sign-in-scenarios.js +7 -0
  35. package/dist/previews/escrow-pin-sign-in-scenarios.js.map +1 -0
  36. package/dist/render.d.ts +45 -0
  37. package/dist/render.d.ts.map +1 -1
  38. package/dist/render.js +67 -1
  39. package/dist/render.js.map +1 -1
  40. package/dist/templates/account-secured.d.ts +27 -0
  41. package/dist/templates/account-secured.d.ts.map +1 -0
  42. package/dist/templates/account-secured.js +118 -0
  43. package/dist/templates/account-secured.js.map +1 -0
  44. package/dist/templates/escrow-hold-cancelled.d.ts +23 -0
  45. package/dist/templates/escrow-hold-cancelled.d.ts.map +1 -0
  46. package/dist/templates/escrow-hold-cancelled.js +131 -0
  47. package/dist/templates/escrow-hold-cancelled.js.map +1 -0
  48. package/dist/templates/escrow-hold-released.d.ts +21 -0
  49. package/dist/templates/escrow-hold-released.d.ts.map +1 -0
  50. package/dist/templates/escrow-hold-released.js +92 -0
  51. package/dist/templates/escrow-hold-released.js.map +1 -0
  52. package/dist/templates/escrow-hold-reminder.d.ts +21 -0
  53. package/dist/templates/escrow-hold-reminder.d.ts.map +1 -0
  54. package/dist/templates/escrow-hold-reminder.js +92 -0
  55. package/dist/templates/escrow-hold-reminder.js.map +1 -0
  56. package/dist/templates/escrow-hold-started.d.ts +25 -0
  57. package/dist/templates/escrow-hold-started.d.ts.map +1 -0
  58. package/dist/templates/escrow-hold-started.js +96 -0
  59. package/dist/templates/escrow-hold-started.js.map +1 -0
  60. package/dist/templates/escrow-pin-locked.d.ts +24 -0
  61. package/dist/templates/escrow-pin-locked.d.ts.map +1 -0
  62. package/dist/templates/escrow-pin-locked.js +97 -0
  63. package/dist/templates/escrow-pin-locked.js.map +1 -0
  64. package/dist/templates/escrow-pin-sign-in.d.ts +24 -0
  65. package/dist/templates/escrow-pin-sign-in.d.ts.map +1 -0
  66. package/dist/templates/escrow-pin-sign-in.js +96 -0
  67. package/dist/templates/escrow-pin-sign-in.js.map +1 -0
  68. package/dist/templates/index.d.ts +21 -28
  69. package/dist/templates/index.d.ts.map +1 -1
  70. package/dist/templates/index.js +20 -9
  71. package/dist/templates/index.js.map +1 -1
  72. package/package.json +2 -2
  73. package/src/__tests__/i18n.test.ts +62 -1
  74. package/src/__tests__/render.test.ts +306 -0
  75. package/src/i18n.ts +33 -0
  76. package/src/index.ts +8 -0
  77. package/src/previews/account-secured-scenarios.tsx +41 -0
  78. package/src/previews/escrow-hold-cancelled-scenarios.tsx +79 -0
  79. package/src/previews/escrow-hold-released-scenarios.tsx +58 -0
  80. package/src/previews/escrow-hold-reminder-scenarios.tsx +52 -0
  81. package/src/previews/escrow-hold-started-scenarios.tsx +67 -0
  82. package/src/previews/escrow-pin-locked-scenarios.tsx +60 -0
  83. package/src/previews/escrow-pin-sign-in-scenarios.tsx +52 -0
  84. package/src/render.ts +162 -0
  85. package/src/templates/account-secured.tsx +236 -0
  86. package/src/templates/escrow-hold-cancelled.tsx +212 -0
  87. package/src/templates/escrow-hold-released.tsx +184 -0
  88. package/src/templates/escrow-hold-reminder.tsx +184 -0
  89. package/src/templates/escrow-hold-started.tsx +216 -0
  90. package/src/templates/escrow-pin-locked.tsx +233 -0
  91. package/src/templates/escrow-pin-sign-in.tsx +197 -0
  92. package/src/templates/index.ts +100 -25
@@ -1,49 +1,124 @@
1
- export { VerificationCode, getVerificationCodeSubject } from './verification-code';
2
- export type { VerificationCodeProps, VerificationCodeVariant } from './verification-code';
1
+ // One export declaration per template module. Projects that resolve this package
2
+ // through its `development` condition (source) typecheck without `jsx`, and TypeScript
3
+ // reports TS6142 once per declaration that imports a .tsx module from this .ts file;
4
+ // a separate `export type` line for the same module would add a second report.
3
5
 
4
- export { InboxClaim, getInboxClaimSubject } from './inbox-claim';
5
- export type { InboxClaimProps } from './inbox-claim';
6
+ export {
7
+ VerificationCode,
8
+ getVerificationCodeSubject,
9
+ type VerificationCodeProps,
10
+ type VerificationCodeVariant,
11
+ } from './verification-code';
6
12
 
7
- export { GuardianApproval, getGuardianApprovalSubject } from './guardian-approval';
8
- export type { GuardianApprovalProps } from './guardian-approval';
13
+ export { InboxClaim, getInboxClaimSubject, type InboxClaimProps } from './inbox-claim';
9
14
 
10
- export { AccountApproved, getAccountApprovedSubject } from './account-approved';
11
- export type { AccountApprovedProps } from './account-approved';
15
+ export {
16
+ GuardianApproval,
17
+ getGuardianApprovalSubject,
18
+ type GuardianApprovalProps,
19
+ } from './guardian-approval';
12
20
 
13
- export { RecoveryKey, getRecoveryKeySubject } from './recovery-key';
14
- export type { RecoveryKeyProps } from './recovery-key';
21
+ export {
22
+ AccountApproved,
23
+ getAccountApprovedSubject,
24
+ type AccountApprovedProps,
25
+ } from './account-approved';
15
26
 
16
- export { EndorsementRequest, getEndorsementRequestSubject } from './endorsement-request';
17
- export type { EndorsementRequestProps } from './endorsement-request';
27
+ export { RecoveryKey, getRecoveryKeySubject, type RecoveryKeyProps } from './recovery-key';
28
+
29
+ export {
30
+ EndorsementRequest,
31
+ getEndorsementRequestSubject,
32
+ type EndorsementRequestProps,
33
+ } from './endorsement-request';
18
34
 
19
35
  export {
20
36
  CredentialAwaitingGuardian,
21
37
  getCredentialAwaitingGuardianSubject,
38
+ type CredentialAwaitingGuardianProps,
22
39
  } from './credential-awaiting-guardian';
23
- export type { CredentialAwaitingGuardianProps } from './credential-awaiting-guardian';
24
40
 
25
- export { GuardianApprovedClaim, getGuardianApprovedClaimSubject } from './guardian-approved-claim';
26
- export type { GuardianApprovedClaimProps } from './guardian-approved-claim';
41
+ export {
42
+ GuardianApprovedClaim,
43
+ getGuardianApprovedClaimSubject,
44
+ type GuardianApprovedClaimProps,
45
+ } from './guardian-approved-claim';
27
46
 
28
47
  export {
29
48
  GuardianCredentialApproval,
30
49
  getGuardianCredentialApprovalSubject,
50
+ type GuardianCredentialApprovalProps,
31
51
  } from './guardian-credential-approval';
32
- export type { GuardianCredentialApprovalProps } from './guardian-credential-approval';
33
52
 
34
- export { GuardianEmailOtp, getGuardianEmailOtpSubject } from './guardian-email-otp';
35
- export type { GuardianEmailOtpProps } from './guardian-email-otp';
53
+ export {
54
+ GuardianEmailOtp,
55
+ getGuardianEmailOtpSubject,
56
+ type GuardianEmailOtpProps,
57
+ } from './guardian-email-otp';
36
58
 
37
59
  export {
38
60
  GuardianRejectedCredential,
39
61
  getGuardianRejectedCredentialSubject,
62
+ type GuardianRejectedCredentialProps,
40
63
  } from './guardian-rejected-credential';
41
- export type { GuardianRejectedCredentialProps } from './guardian-rejected-credential';
42
64
 
43
- export { EmailVerification, getEmailVerificationSubject } from './email-verification';
44
- export type { EmailVerificationProps } from './email-verification';
65
+ export {
66
+ EmailVerification,
67
+ getEmailVerificationSubject,
68
+ type EmailVerificationProps,
69
+ } from './email-verification';
70
+
71
+ export {
72
+ CredentialUpdated,
73
+ getCredentialUpdatedSubject,
74
+ type CredentialUpdatedProps,
75
+ } from './credential-updated';
45
76
 
46
- export { CredentialUpdated, getCredentialUpdatedSubject } from './credential-updated';
47
- export type { CredentialUpdatedProps } from './credential-updated';
48
- export { AccountSignInChanged, getAccountSignInChangedSubject } from './account-sign-in-changed';
49
- export type { AccountSignInChangedProps } from './account-sign-in-changed';
77
+ export {
78
+ AccountSignInChanged,
79
+ getAccountSignInChangedSubject,
80
+ type AccountSignInChangedProps,
81
+ } from './account-sign-in-changed';
82
+
83
+ export {
84
+ EscrowHoldStarted,
85
+ getEscrowHoldStartedSubject,
86
+ type EscrowHoldStartedProps,
87
+ } from './escrow-hold-started';
88
+
89
+ export {
90
+ EscrowHoldReminder,
91
+ getEscrowHoldReminderSubject,
92
+ type EscrowHoldReminderProps,
93
+ } from './escrow-hold-reminder';
94
+
95
+ export {
96
+ EscrowHoldReleased,
97
+ getEscrowHoldReleasedSubject,
98
+ type EscrowHoldReleasedProps,
99
+ } from './escrow-hold-released';
100
+
101
+ export {
102
+ EscrowHoldCancelled,
103
+ getEscrowHoldCancelledSubject,
104
+ type EscrowHoldCancelledProps,
105
+ type EscrowHoldCancelledReason,
106
+ } from './escrow-hold-cancelled';
107
+
108
+ export {
109
+ EscrowPinLocked,
110
+ getEscrowPinLockedSubject,
111
+ type EscrowPinLockedProps,
112
+ } from './escrow-pin-locked';
113
+
114
+ export {
115
+ EscrowPinSignIn,
116
+ getEscrowPinSignInSubject,
117
+ type EscrowPinSignInProps,
118
+ } from './escrow-pin-sign-in';
119
+
120
+ export {
121
+ AccountSecured,
122
+ getAccountSecuredSubject,
123
+ type AccountSecuredProps,
124
+ } from './account-secured';