@intelligo-dev/core 1.0.0-beta.1 → 1.0.0-beta.14
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/NOTICE +6 -0
- package/README.md +102 -0
- package/dist/attachments/errors.d.ts +7 -0
- package/dist/attachments/errors.d.ts.map +1 -0
- package/dist/attachments/errors.js +11 -0
- package/dist/attachments/errors.js.map +1 -0
- package/dist/attachments/index.d.ts +8 -0
- package/dist/attachments/index.d.ts.map +1 -0
- package/dist/attachments/index.js +7 -0
- package/dist/attachments/index.js.map +1 -0
- package/dist/attachments/service.d.ts +45 -0
- package/dist/attachments/service.d.ts.map +1 -0
- package/dist/attachments/service.js +100 -0
- package/dist/attachments/service.js.map +1 -0
- package/dist/attachments/types.d.ts +6 -0
- package/dist/attachments/types.d.ts.map +1 -0
- package/dist/attachments/types.js +2 -0
- package/dist/attachments/types.js.map +1 -0
- package/dist/conversations/errors.d.ts +2 -8
- package/dist/conversations/errors.d.ts.map +1 -1
- package/dist/conversations/errors.js +2 -8
- package/dist/conversations/errors.js.map +1 -1
- package/dist/conversations/index.d.ts +4 -12
- package/dist/conversations/index.d.ts.map +1 -1
- package/dist/conversations/index.js +2 -11
- package/dist/conversations/index.js.map +1 -1
- package/dist/conversations/service.d.ts +49 -61
- package/dist/conversations/service.d.ts.map +1 -1
- package/dist/conversations/service.js +110 -83
- package/dist/conversations/service.js.map +1 -1
- package/dist/conversations/types.d.ts +1 -4
- package/dist/conversations/types.d.ts.map +1 -1
- package/dist/conversations/types.js +0 -3
- package/dist/conversations/types.js.map +1 -1
- package/dist/db/client.d.ts +21 -10
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +43 -18
- package/dist/db/client.js.map +1 -1
- package/dist/db/index.d.ts +3 -3
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +3 -7
- package/dist/db/index.js.map +1 -1
- package/dist/db/schema/agents.d.ts +14 -51
- package/dist/db/schema/agents.d.ts.map +1 -1
- package/dist/db/schema/agents.js +9 -21
- package/dist/db/schema/agents.js.map +1 -1
- package/dist/db/schema/ai.d.ts +86 -1556
- package/dist/db/schema/ai.d.ts.map +1 -1
- package/dist/db/schema/ai.js +32 -236
- package/dist/db/schema/ai.js.map +1 -1
- package/dist/db/schema/auth.d.ts +5 -34
- package/dist/db/schema/auth.d.ts.map +1 -1
- package/dist/db/schema/auth.js +25 -56
- package/dist/db/schema/auth.js.map +1 -1
- package/dist/db/schema/billing.d.ts +339 -105
- package/dist/db/schema/billing.d.ts.map +1 -1
- package/dist/db/schema/billing.js +99 -58
- package/dist/db/schema/billing.js.map +1 -1
- package/dist/db/schema/feature-flags.d.ts +3 -12
- package/dist/db/schema/feature-flags.d.ts.map +1 -1
- package/dist/db/schema/feature-flags.js +3 -12
- package/dist/db/schema/feature-flags.js.map +1 -1
- package/dist/db/schema/identity.d.ts +12 -274
- package/dist/db/schema/identity.d.ts.map +1 -1
- package/dist/db/schema/identity.js +19 -104
- package/dist/db/schema/identity.js.map +1 -1
- package/dist/db/schema/index.d.ts +8 -15
- package/dist/db/schema/index.d.ts.map +1 -1
- package/dist/db/schema/index.js +12 -42
- package/dist/db/schema/index.js.map +1 -1
- package/dist/db/schema/notifications.d.ts +3 -17
- package/dist/db/schema/notifications.d.ts.map +1 -1
- package/dist/db/schema/notifications.js +3 -17
- package/dist/db/schema/notifications.js.map +1 -1
- package/dist/db/schema/usage.d.ts +94 -77
- package/dist/db/schema/usage.d.ts.map +1 -1
- package/dist/db/schema/usage.js +59 -89
- package/dist/db/schema/usage.js.map +1 -1
- package/dist/db/validate.d.ts +2 -11
- package/dist/db/validate.d.ts.map +1 -1
- package/dist/db/validate.js +6 -17
- package/dist/db/validate.js.map +1 -1
- package/dist/db/workspace-queries.d.ts +5 -29
- package/dist/db/workspace-queries.d.ts.map +1 -1
- package/dist/db/workspace-queries.js +5 -29
- package/dist/db/workspace-queries.js.map +1 -1
- package/dist/documents/classifier.d.ts +5 -12
- package/dist/documents/classifier.d.ts.map +1 -1
- package/dist/documents/classifier.js +16 -16
- package/dist/documents/classifier.js.map +1 -1
- package/dist/documents/errors.d.ts +2 -10
- package/dist/documents/errors.d.ts.map +1 -1
- package/dist/documents/errors.js +2 -10
- package/dist/documents/errors.js.map +1 -1
- package/dist/documents/index.d.ts +4 -13
- package/dist/documents/index.d.ts.map +1 -1
- package/dist/documents/index.js +3 -12
- package/dist/documents/index.js.map +1 -1
- package/dist/documents/service.d.ts +19 -26
- package/dist/documents/service.d.ts.map +1 -1
- package/dist/documents/service.js +44 -38
- package/dist/documents/service.js.map +1 -1
- package/dist/documents/types.d.ts +6 -10
- package/dist/documents/types.d.ts.map +1 -1
- package/dist/documents/types.js +0 -3
- package/dist/documents/types.js.map +1 -1
- package/dist/email/brand.d.ts +17 -0
- package/dist/email/brand.d.ts.map +1 -0
- package/dist/email/brand.js +9 -0
- package/dist/email/brand.js.map +1 -0
- package/dist/email/index.d.ts +4 -4
- package/dist/email/index.js +4 -4
- package/dist/email/provider.d.ts +1 -7
- package/dist/email/provider.d.ts.map +1 -1
- package/dist/email/provider.js +10 -19
- package/dist/email/provider.js.map +1 -1
- package/dist/email/send.d.ts +12 -12
- package/dist/email/send.d.ts.map +1 -1
- package/dist/email/send.js +5 -19
- package/dist/email/send.js.map +1 -1
- package/dist/email/senders.d.ts +17 -30
- package/dist/email/senders.d.ts.map +1 -1
- package/dist/email/senders.js +33 -47
- package/dist/email/senders.js.map +1 -1
- package/dist/email/templates/base-layout.d.ts +1 -1
- package/dist/email/templates/base-layout.d.ts.map +1 -1
- package/dist/email/templates/base-layout.js +4 -6
- package/dist/email/templates/base-layout.js.map +1 -1
- package/dist/email/templates/index.d.ts +10 -10
- package/dist/email/templates/index.d.ts.map +1 -1
- package/dist/email/templates/index.js +10 -16
- package/dist/email/templates/index.js.map +1 -1
- package/dist/email/templates/password-reset.d.ts +2 -2
- package/dist/email/templates/password-reset.d.ts.map +1 -1
- package/dist/email/templates/password-reset.js +10 -22
- package/dist/email/templates/password-reset.js.map +1 -1
- package/dist/email/templates/payment-failed.d.ts +2 -2
- package/dist/email/templates/payment-failed.d.ts.map +1 -1
- package/dist/email/templates/payment-failed.js +11 -24
- package/dist/email/templates/payment-failed.js.map +1 -1
- package/dist/email/templates/quota-warning.d.ts +4 -4
- package/dist/email/templates/quota-warning.d.ts.map +1 -1
- package/dist/email/templates/quota-warning.js +19 -39
- package/dist/email/templates/quota-warning.js.map +1 -1
- package/dist/email/templates/subscription-confirmed.d.ts +2 -2
- package/dist/email/templates/subscription-confirmed.d.ts.map +1 -1
- package/dist/email/templates/subscription-confirmed.js +13 -28
- package/dist/email/templates/subscription-confirmed.js.map +1 -1
- package/dist/email/templates/trial-expiry.d.ts +2 -2
- package/dist/email/templates/trial-expiry.d.ts.map +1 -1
- package/dist/email/templates/trial-expiry.js +12 -36
- package/dist/email/templates/trial-expiry.js.map +1 -1
- package/dist/email/templates/trial-warning.d.ts +2 -2
- package/dist/email/templates/trial-warning.d.ts.map +1 -1
- package/dist/email/templates/trial-warning.js +15 -32
- package/dist/email/templates/trial-warning.js.map +1 -1
- package/dist/email/templates/verify-email.d.ts +2 -2
- package/dist/email/templates/verify-email.d.ts.map +1 -1
- package/dist/email/templates/verify-email.js +10 -22
- package/dist/email/templates/verify-email.js.map +1 -1
- package/dist/email/templates/welcome.d.ts +2 -2
- package/dist/email/templates/welcome.d.ts.map +1 -1
- package/dist/email/templates/welcome.js +13 -20
- package/dist/email/templates/welcome.js.map +1 -1
- package/dist/email/templates/workspace-invitation.d.ts +2 -2
- package/dist/email/templates/workspace-invitation.d.ts.map +1 -1
- package/dist/email/templates/workspace-invitation.js +12 -26
- package/dist/email/templates/workspace-invitation.js.map +1 -1
- package/dist/env.d.ts +5 -10
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +41 -31
- package/dist/env.js.map +1 -1
- package/dist/identity/audit.d.ts +11 -24
- package/dist/identity/audit.d.ts.map +1 -1
- package/dist/identity/audit.js +13 -27
- package/dist/identity/audit.js.map +1 -1
- package/dist/identity/errors.d.ts +4 -12
- package/dist/identity/errors.d.ts.map +1 -1
- package/dist/identity/errors.js +2 -8
- package/dist/identity/errors.js.map +1 -1
- package/dist/identity/index.d.ts +6 -13
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +5 -12
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/service.d.ts +29 -47
- package/dist/identity/service.d.ts.map +1 -1
- package/dist/identity/service.js +107 -79
- package/dist/identity/service.js.map +1 -1
- package/dist/identity/types.d.ts +28 -4
- package/dist/identity/types.d.ts.map +1 -1
- package/dist/identity/types.js +0 -3
- package/dist/identity/types.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +7 -18
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +45 -49
- package/dist/logger.js.map +1 -1
- package/dist/money.d.ts +95 -0
- package/dist/money.d.ts.map +1 -0
- package/dist/money.js +208 -0
- package/dist/money.js.map +1 -0
- package/dist/notifications/index.d.ts +9 -43
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +9 -49
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/triggers.d.ts +9 -32
- package/dist/notifications/triggers.d.ts.map +1 -1
- package/dist/notifications/triggers.js +21 -58
- package/dist/notifications/triggers.js.map +1 -1
- package/dist/notifications/types.d.ts +6 -8
- package/dist/notifications/types.d.ts.map +1 -1
- package/dist/notifications/types.js +0 -9
- package/dist/notifications/types.js.map +1 -1
- package/dist/prompt.d.ts +38 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +118 -0
- package/dist/prompt.js.map +1 -0
- package/dist/registry.d.ts +32 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +60 -0
- package/dist/registry.js.map +1 -0
- package/dist/request-context.d.ts +49 -0
- package/dist/request-context.d.ts.map +1 -0
- package/dist/request-context.js +100 -0
- package/dist/request-context.js.map +1 -0
- package/dist/storage/index.d.ts +65 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +109 -0
- package/dist/storage/index.js.map +1 -0
- package/package.json +74 -24
- package/src/attachments/errors.ts +18 -0
- package/src/attachments/index.ts +22 -0
- package/src/attachments/service.ts +178 -0
- package/src/attachments/types.ts +6 -0
- package/src/conversations/errors.ts +45 -0
- package/src/conversations/index.ts +39 -0
- package/src/conversations/service.ts +594 -0
- package/src/conversations/types.ts +15 -0
- package/src/db/client.ts +91 -0
- package/src/db/index.ts +3 -0
- package/src/db/migrations/0000_baseline.sql +652 -0
- package/src/db/migrations/0001_reconcile_chain_built_databases.sql +53 -0
- package/src/db/migrations/0002_webhook_claim_lease.sql +1 -0
- package/src/db/migrations/0003_local_payments.sql +18 -0
- package/src/db/migrations/README.md +103 -36
- package/src/db/migrations/legacy-chain.json +206 -0
- package/src/db/migrations/meta/0000_snapshot.json +4182 -157
- package/src/db/migrations/meta/0002_snapshot.json +2478 -368
- package/src/db/migrations/meta/0003_snapshot.json +2567 -554
- package/src/db/migrations/meta/_journal.json +8 -274
- package/src/db/schema/agents.ts +57 -0
- package/src/db/schema/ai.ts +174 -0
- package/src/db/schema/auth.ts +183 -0
- package/src/db/schema/billing.ts +245 -0
- package/src/db/schema/feature-flags.ts +20 -0
- package/src/db/schema/identity.ts +250 -0
- package/src/db/schema/index.ts +12 -0
- package/src/db/schema/notifications.ts +31 -0
- package/src/db/schema/usage.ts +269 -0
- package/src/db/validate.ts +63 -0
- package/src/db/workspace-queries.ts +64 -0
- package/src/documents/classifier.ts +61 -0
- package/src/documents/errors.ts +44 -0
- package/src/documents/index.ts +24 -0
- package/src/documents/service.ts +256 -0
- package/src/documents/types.ts +24 -0
- package/src/email/brand.ts +24 -0
- package/src/email/index.ts +19 -0
- package/src/email/provider.ts +278 -0
- package/src/email/send.ts +169 -0
- package/src/email/senders.ts +292 -0
- package/src/email/templates/base-layout.tsx +145 -0
- package/src/email/templates/index.ts +28 -0
- package/src/email/templates/password-reset.tsx +72 -0
- package/src/email/templates/payment-failed.tsx +77 -0
- package/src/email/templates/quota-warning.tsx +118 -0
- package/src/email/templates/subscription-confirmed.tsx +91 -0
- package/src/email/templates/trial-expiry.tsx +124 -0
- package/src/email/templates/trial-warning.tsx +104 -0
- package/src/email/templates/verify-email.tsx +72 -0
- package/src/email/templates/welcome.tsx +64 -0
- package/src/email/templates/workspace-invitation.tsx +105 -0
- package/src/env.ts +180 -0
- package/src/identity/audit.ts +65 -0
- package/src/identity/errors.ts +44 -0
- package/src/identity/index.ts +29 -0
- package/src/identity/service.ts +303 -0
- package/src/identity/types.ts +58 -0
- package/src/index.ts +4 -0
- package/src/logger.ts +198 -0
- package/src/money.ts +270 -0
- package/src/notifications/index.ts +112 -0
- package/src/notifications/triggers.ts +158 -0
- package/src/notifications/types.ts +26 -0
- package/src/prompt.ts +142 -0
- package/src/registry.ts +75 -0
- package/src/request-context.ts +137 -0
- package/src/storage/index.ts +153 -0
- package/dist/db/schema/rag.d.ts +0 -171
- package/dist/db/schema/rag.d.ts.map +0 -1
- package/dist/db/schema/rag.js +0 -42
- package/dist/db/schema/rag.js.map +0 -1
- package/src/db/migrations/0000_sharp_night_nurse.sql +0 -52
- package/src/db/migrations/0001_hesitant_vapor.sql +0 -40
- package/src/db/migrations/0002_numerous_lady_vermin.sql +0 -235
- package/src/db/migrations/0003_mighty_jean_grey.sql +0 -37
- package/src/db/migrations/0004_cynical_grandmaster.sql +0 -2
- package/src/db/migrations/0005_careful_switch.sql +0 -8
- package/src/db/migrations/0006_tense_blue_marvel.sql +0 -16
- package/src/db/migrations/0007_next_squadron_sinister.sql +0 -1
- package/src/db/migrations/0008_powerful_scream.sql +0 -39
- package/src/db/migrations/0009_sad_ink.sql +0 -1
- package/src/db/migrations/0010_shocking_omega_flight.sql +0 -2
- package/src/db/migrations/0011_ambiguous_otto_octavius.sql +0 -151
- package/src/db/migrations/0011_hnsw_vector_index.sql +0 -17
- package/src/db/migrations/0012_user_profiles.sql +0 -30
- package/src/db/migrations/0013_trending_seasonal_columns.sql +0 -9
- package/src/db/migrations/0014_add_product_type_to_agents.sql +0 -6
- package/src/db/migrations/0015_new_v1_tables.sql +0 -149
- package/src/db/migrations/0016_document_types.sql +0 -30
- package/src/db/migrations/0017_document_metadata.sql +0 -2
- package/src/db/migrations/0018_identity_graph.sql +0 -200
- package/src/db/migrations/0019_db_driven_prompts.sql +0 -20
- package/src/db/migrations/0020_pending_extractions.sql +0 -35
- package/src/db/migrations/0021_rag_documents.sql +0 -39
- package/src/db/migrations/0022_user_quotas_usage_jsonb.sql +0 -70
- package/src/db/migrations/0023_user_facts_user_scoped_unique.sql +0 -17
- package/src/db/migrations/0024_user_memories_hnsw.sql +0 -23
- package/src/db/migrations/0025_audit_trigger_errcode.sql +0 -21
- package/src/db/migrations/0026_user_profile_snapshots_composite_pk.sql +0 -17
- package/src/db/migrations/0027_billing_settings_mnt_columns.sql +0 -54
- package/src/db/migrations/0028_trial_credits_normalized_email.sql +0 -37
- package/src/db/migrations/0029_usage_records_conversation_idx.sql +0 -13
- package/src/db/migrations/0030_pending_extractions_composite_idx.sql +0 -11
- package/src/db/migrations/0031_rag_documents_hnsw.sql +0 -16
- package/src/db/migrations/0032_rate_limit_unique_idx.sql +0 -16
- package/src/db/migrations/0033_pending_extractions_partial_idx.sql +0 -18
- package/src/db/migrations/0034_rate_limit_count.sql +0 -9
- package/src/db/migrations/0035_credit_reservations.sql +0 -24
- package/src/db/migrations/0036_executions_audit_jobs.sql +0 -96
- package/src/db/migrations/0037_rate_limit_minute_bucket.sql +0 -46
- package/src/db/migrations/0038_user_quotas_generic_usage.sql +0 -25
- package/src/db/migrations/0039_platform_admin_impersonation.sql +0 -27
- package/src/db/migrations/0040_ee_audit_chain.sql +0 -23
- package/src/db/migrations/meta/0001_snapshot.json +0 -631
- package/src/db/migrations/meta/0004_snapshot.json +0 -2500
- package/src/db/migrations/meta/0005_snapshot.json +0 -2548
- package/src/db/migrations/meta/0006_snapshot.json +0 -2650
- package/src/db/migrations/meta/0007_snapshot.json +0 -2657
- package/src/db/migrations/meta/0008_snapshot.json +0 -2719
- package/src/db/migrations/meta/0009_snapshot.json +0 -2726
- package/src/db/migrations/meta/0010_snapshot.json +0 -2739
- package/src/db/migrations/meta/0011_snapshot.json +0 -3886
|
@@ -1,35 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Text } from "@react-email/components";
|
|
3
|
-
import { BaseLayout } from "./base-layout";
|
|
4
|
-
export function SubscriptionConfirmedEmail({ workspaceName, planName, amount, dashboardUrl,
|
|
5
|
-
const text =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
: {
|
|
18
|
-
preview: `Subscription confirmed for ${workspaceName}`,
|
|
19
|
-
heading: "Subscription Confirmed",
|
|
20
|
-
body1: "Your workspace",
|
|
21
|
-
body2: "is now on the",
|
|
22
|
-
body3: "plan.",
|
|
23
|
-
amountLabel: "Amount:",
|
|
24
|
-
perMonth: "/month",
|
|
25
|
-
button: "Go to Dashboard",
|
|
26
|
-
note: "You can manage your subscription from the billing settings.",
|
|
27
|
-
};
|
|
3
|
+
import { BaseLayout } from "./base-layout.js";
|
|
4
|
+
export function SubscriptionConfirmedEmail({ workspaceName, planName, amount, dashboardUrl, }) {
|
|
5
|
+
const text = {
|
|
6
|
+
preview: `Subscription confirmed for ${workspaceName}`,
|
|
7
|
+
heading: "Subscription Confirmed",
|
|
8
|
+
body1: "Your workspace",
|
|
9
|
+
body2: "is now on the",
|
|
10
|
+
body3: "plan.",
|
|
11
|
+
amountLabel: "Amount:",
|
|
12
|
+
perMonth: "/month",
|
|
13
|
+
button: "Go to Dashboard",
|
|
14
|
+
note: "You can manage your subscription from the billing settings.",
|
|
15
|
+
};
|
|
28
16
|
return (_jsxs(BaseLayout, { preview: text.preview, children: [_jsx(Text, { style: headingStyle, children: text.heading }), _jsxs(Text, { style: bodyTextStyle, children: [text.body1, " \u2018", workspaceName, "\u2019 ", text.body2, " ", _jsx("strong", { children: planName }), " ", text.body3] }), _jsxs(Text, { style: detailStyle, children: [text.amountLabel, " ", amount, text.perMonth] }), _jsx(Button, { href: dashboardUrl, style: buttonStyle, children: text.button }), _jsx(Text, { style: noteStyle, children: text.note })] }));
|
|
29
17
|
}
|
|
30
|
-
// ---------------------------------------------------------------------------
|
|
31
|
-
// Inline Styles
|
|
32
|
-
// ---------------------------------------------------------------------------
|
|
33
18
|
const headingStyle = {
|
|
34
19
|
color: "#18181b",
|
|
35
20
|
fontSize: "22px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-confirmed.js","sourceRoot":"","sources":["../../../src/email/templates/subscription-confirmed.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription-confirmed.js","sourceRoot":"","sources":["../../../src/email/templates/subscription-confirmed.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,MAAM,UAAU,0BAA0B,CAAC,EACzC,aAAa,EACb,QAAQ,EACR,MAAM,EACN,YAAY,GACoB;IAChC,MAAM,IAAI,GAAG;QACX,OAAO,EAAE,8BAA8B,aAAa,EAAE;QACtD,OAAO,EAAE,wBAAwB;QACjC,KAAK,EAAE,gBAAgB;QACvB,KAAK,EAAE,eAAe;QACtB,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,SAAS;QACtB,QAAQ,EAAE,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AS;IAChB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAiB;IAC5B,SAAS,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,SAAS,GAAwB;IACrC,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,MAAM;CAClB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export interface TrialExpiryEmailProps {
|
|
2
3
|
workspaceName: string;
|
|
3
4
|
expiryDate: string;
|
|
4
5
|
daysRemaining: number;
|
|
5
6
|
upgradeUrl: string;
|
|
6
|
-
locale?: "en" | "mn";
|
|
7
7
|
}
|
|
8
|
-
export declare function TrialExpiryEmail({ workspaceName, expiryDate, daysRemaining, upgradeUrl,
|
|
8
|
+
export declare function TrialExpiryEmail({ workspaceName, expiryDate, daysRemaining, upgradeUrl, }: TrialExpiryEmailProps): React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=trial-expiry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-expiry.d.ts","sourceRoot":"","sources":["../../../src/email/templates/trial-expiry.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trial-expiry.d.ts","sourceRoot":"","sources":["../../../src/email/templates/trial-expiry.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,aAAa,EACb,UAAU,EACV,aAAa,EACb,UAAU,GACX,EAAE,qBAAqB,qBAwDvB"}
|
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Text } from "@react-email/components";
|
|
3
|
-
import { BaseLayout } from "./base-layout";
|
|
4
|
-
export function TrialExpiryEmail({ workspaceName, expiryDate, daysRemaining, upgradeUrl,
|
|
3
|
+
import { BaseLayout } from "./base-layout.js";
|
|
4
|
+
export function TrialExpiryEmail({ workspaceName, expiryDate, daysRemaining, upgradeUrl, }) {
|
|
5
5
|
const isExpired = daysRemaining <= 0;
|
|
6
6
|
const isUrgent = daysRemaining <= 1 && daysRemaining > 0;
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
previewExpired: "Your Pro trial has expired",
|
|
18
|
-
previewExpiring: `Your Pro trial expires in ${daysRemaining} day${daysRemaining === 1 ? "" : "s"}`,
|
|
19
|
-
headingExpired: "Your Pro Trial Has Expired",
|
|
20
|
-
headingExpiring: `Your Pro Trial Expires in ${daysRemaining} Day${daysRemaining === 1 ? "" : "s"}`,
|
|
21
|
-
buttonExpired: "Upgrade to Pro",
|
|
22
|
-
buttonUpgrade: "Upgrade Now",
|
|
23
|
-
};
|
|
24
|
-
return (_jsxs(BaseLayout, { preview: isExpired ? text.previewExpired : text.previewExpiring, children: [_jsx(Text, { style: headingStyle, children: isExpired ? text.headingExpired : text.headingExpiring }), isExpired ? (_jsxs(_Fragment, { children: [_jsxs(Text, { style: bodyTextStyle, children: ["Your 14-day Pro trial for \u2018", workspaceName, "\u2019 has ended."] }), _jsx(Text, { style: bodyTextStyle, children: "Your workspace has been downgraded to the Free plan. All your data has been preserved and you can continue using Intelligo with the Free plan limits." }), _jsx(Text, { style: warningTextStyle, children: "What you\u2019ll be missing on the Free plan:" }), _jsx(Text, { style: listItemStyle, children: "\u2022 100K tokens/month instead of 2M" }), _jsx(Text, { style: listItemStyle, children: "\u2022 Access to basic models only (GPT-4o mini)" }), _jsx(Text, { style: listItemStyle, children: "\u2022 10 conversations instead of 100" }), _jsx(Text, { style: listItemStyle, children: "\u2022 Single workspace instead of 3" }), _jsx(Text, { style: bodyTextStyle, children: "Upgrade to Pro to restore full access and continue building with AI." })] })) : (_jsxs(_Fragment, { children: [_jsxs(Text, { style: bodyTextStyle, children: ["Your 14-day Pro trial for \u2018", workspaceName, "\u2019 expires on", " ", _jsx("strong", { children: expiryDate }), "."] }), _jsx(Text, { style: bodyTextStyle, children: "When your trial ends, your workspace will be downgraded to the Free plan. All your data will be preserved." }), isUrgent && (_jsx(Text, { style: urgentTextStyle, children: "This is your last chance to upgrade before losing Pro features!" })), _jsx(Text, { style: warningTextStyle, children: "What happens after your trial expires:" }), _jsx(Text, { style: listItemStyle, children: "\u2022 Token quota: 2M \u2192 100K tokens/month" }), _jsx(Text, { style: listItemStyle, children: "\u2022 AI models: All models \u2192 Basic models only" }), _jsx(Text, { style: listItemStyle, children: "\u2022 Conversations: 100 \u2192 10" }), _jsx(Text, { style: listItemStyle, children: "\u2022 Workspaces: 3 \u2192 1" }), _jsx(Text, { style: secondaryTextStyle, children: "No action needed if you\u2019re happy with the Free plan. Your workspace will continue working with Free plan limits." })] })), _jsx(Button, { href: upgradeUrl, style: buttonStyle, children: isExpired ? text.buttonExpired : text.buttonUpgrade })] }));
|
|
7
|
+
const days = `${daysRemaining} day${daysRemaining === 1 ? "" : "s"}`;
|
|
8
|
+
const text = {
|
|
9
|
+
previewExpired: "Your trial has ended",
|
|
10
|
+
previewExpiring: `Your trial ends in ${days}`,
|
|
11
|
+
headingExpired: "Your Trial Has Ended",
|
|
12
|
+
headingExpiring: `Your Trial Ends in ${days}`,
|
|
13
|
+
buttonExpired: "Choose a Plan",
|
|
14
|
+
buttonUpgrade: "Upgrade Now",
|
|
15
|
+
};
|
|
16
|
+
return (_jsxs(BaseLayout, { preview: isExpired ? text.previewExpired : text.previewExpiring, children: [_jsx(Text, { style: headingStyle, children: isExpired ? text.headingExpired : text.headingExpiring }), isExpired ? (_jsxs(_Fragment, { children: [_jsxs(Text, { style: bodyTextStyle, children: ["The trial for \u2018", workspaceName, "\u2019 has ended, and the workspace is back on its plan\u2019s limits. All your data has been preserved."] }), _jsx(Text, { style: bodyTextStyle, children: "Upgrade to restore what the trial included." })] })) : (_jsxs(_Fragment, { children: [_jsxs(Text, { style: bodyTextStyle, children: ["The trial for \u2018", workspaceName, "\u2019 ends on", " ", _jsx("strong", { children: expiryDate }), ". After that the workspace goes back to its plan\u2019s limits; all your data will be preserved."] }), isUrgent && (_jsx(Text, { style: urgentTextStyle, children: "Upgrade today to keep what the trial includes." })), _jsx(Text, { style: secondaryTextStyle, children: "No action is needed if the current plan is enough for you." })] })), _jsx(Button, { href: upgradeUrl, style: buttonStyle, children: isExpired ? text.buttonExpired : text.buttonUpgrade })] }));
|
|
25
17
|
}
|
|
26
|
-
// ---------------------------------------------------------------------------
|
|
27
|
-
// Inline Styles
|
|
28
|
-
// ---------------------------------------------------------------------------
|
|
29
18
|
const headingStyle = {
|
|
30
19
|
color: "#18181b",
|
|
31
20
|
fontSize: "22px",
|
|
@@ -39,13 +28,6 @@ const bodyTextStyle = {
|
|
|
39
28
|
lineHeight: "24px",
|
|
40
29
|
margin: "0 0 12px",
|
|
41
30
|
};
|
|
42
|
-
const warningTextStyle = {
|
|
43
|
-
color: "#dc2626",
|
|
44
|
-
fontSize: "15px",
|
|
45
|
-
fontWeight: 600,
|
|
46
|
-
lineHeight: "24px",
|
|
47
|
-
margin: "12px 0 8px",
|
|
48
|
-
};
|
|
49
31
|
const urgentTextStyle = {
|
|
50
32
|
color: "#dc2626",
|
|
51
33
|
fontSize: "16px",
|
|
@@ -57,12 +39,6 @@ const urgentTextStyle = {
|
|
|
57
39
|
borderRadius: "6px",
|
|
58
40
|
border: "1px solid #fecaca",
|
|
59
41
|
};
|
|
60
|
-
const listItemStyle = {
|
|
61
|
-
color: "#52525b",
|
|
62
|
-
fontSize: "14px",
|
|
63
|
-
lineHeight: "20px",
|
|
64
|
-
margin: "4px 0 4px 8px",
|
|
65
|
-
};
|
|
66
42
|
const secondaryTextStyle = {
|
|
67
43
|
color: "#71717a",
|
|
68
44
|
fontSize: "14px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-expiry.js","sourceRoot":"","sources":["../../../src/email/templates/trial-expiry.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"trial-expiry.js","sourceRoot":"","sources":["../../../src/email/templates/trial-expiry.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,MAAM,UAAU,gBAAgB,CAAC,EAC/B,aAAa,EACb,UAAU,EACV,aAAa,EACb,UAAU,GACY;IACtB,MAAM,SAAS,GAAG,aAAa,IAAI,CAAC,CAAC;IACrC,MAAM,QAAQ,GAAG,aAAa,IAAI,CAAC,IAAI,aAAa,GAAG,CAAC,CAAC;IAEzD,MAAM,IAAI,GAAG,GAAG,aAAa,OAAO,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACrE,MAAM,IAAI,GAAG;QACX,cAAc,EAAE,sBAAsB;QACtC,eAAe,EAAE,sBAAsB,IAAI,EAAE;QAC7C,cAAc,EAAE,sBAAsB;QACtC,eAAe,EAAE,sBAAsB,IAAI,EAAE;QAC7C,aAAa,EAAE,eAAe;QAC9B,aAAa,EAAE,aAAa;KAC7B,CAAC;IAEF,OAAO,CACL,MAAC,UA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EAAE,MAAM;IAClB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,MAAM;IACf,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,KAAK;IACnB,MAAM,EAAE,mBAAmB;CAC5B,CAAC;AAEF,MAAM,kBAAkB,GAAwB;IAC9C,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,QAAQ;CACpB,CAAC;AAEF,MAAM,WAAW,GAAwB;IACvC,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAiB;IAC5B,SAAS,EAAE,MAAM;CAClB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export interface TrialWarningEmailProps {
|
|
2
3
|
workspaceName: string;
|
|
3
4
|
creditsRemaining: number;
|
|
@@ -5,7 +6,6 @@ export interface TrialWarningEmailProps {
|
|
|
5
6
|
percentageRemaining: number;
|
|
6
7
|
upgradeUrl: string;
|
|
7
8
|
isDepleted: boolean;
|
|
8
|
-
locale?: "en" | "mn";
|
|
9
9
|
}
|
|
10
|
-
export declare function TrialWarningEmail({ workspaceName, creditsRemaining, totalCredits, percentageRemaining, upgradeUrl, isDepleted,
|
|
10
|
+
export declare function TrialWarningEmail({ workspaceName, creditsRemaining, totalCredits, percentageRemaining, upgradeUrl, isDepleted, }: TrialWarningEmailProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=trial-warning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-warning.d.ts","sourceRoot":"","sources":["../../../src/email/templates/trial-warning.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trial-warning.d.ts","sourceRoot":"","sources":["../../../src/email/templates/trial-warning.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,UAAU,GACX,EAAE,sBAAsB,qBA4CxB"}
|
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Text } from "@react-email/components";
|
|
3
|
-
import { BaseLayout } from "./base-layout";
|
|
4
|
-
export function TrialWarningEmail({ workspaceName, creditsRemaining, totalCredits, percentageRemaining, upgradeUrl, isDepleted,
|
|
5
|
-
const text =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
: {
|
|
20
|
-
previewDepleted: "Your trial credits are depleted",
|
|
21
|
-
previewWarning: "Your trial credits are running low",
|
|
22
|
-
headingDepleted: "Trial Credits Depleted",
|
|
23
|
-
headingWarning: "Trial Credits Running Low",
|
|
24
|
-
bodyDepleted1: "Your workspace",
|
|
25
|
-
bodyDepleted2: "has used all trial credits.",
|
|
26
|
-
warningText: "Subscribe to a plan to continue using AI features.",
|
|
27
|
-
bodyWarning1: "Your workspace",
|
|
28
|
-
bodyWarning2: "has",
|
|
29
|
-
bodyWarning3: "trial credits remaining",
|
|
30
|
-
button: "Subscribe Now",
|
|
31
|
-
};
|
|
3
|
+
import { BaseLayout } from "./base-layout.js";
|
|
4
|
+
export function TrialWarningEmail({ workspaceName, creditsRemaining, totalCredits, percentageRemaining, upgradeUrl, isDepleted, }) {
|
|
5
|
+
const text = {
|
|
6
|
+
previewDepleted: "Your trial credits are depleted",
|
|
7
|
+
previewWarning: "Your trial credits are running low",
|
|
8
|
+
headingDepleted: "Trial Credits Depleted",
|
|
9
|
+
headingWarning: "Trial Credits Running Low",
|
|
10
|
+
bodyDepleted1: "Your workspace",
|
|
11
|
+
bodyDepleted2: "has used all trial credits.",
|
|
12
|
+
warningText: "Subscribe to a plan to continue using AI features.",
|
|
13
|
+
bodyWarning1: "Your workspace",
|
|
14
|
+
bodyWarning2: "has",
|
|
15
|
+
bodyWarning3: "trial credits remaining",
|
|
16
|
+
button: "Subscribe Now",
|
|
17
|
+
};
|
|
32
18
|
return (_jsxs(BaseLayout, { preview: isDepleted ? text.previewDepleted : text.previewWarning, children: [_jsx(Text, { style: headingStyle, children: isDepleted ? text.headingDepleted : text.headingWarning }), isDepleted ? (_jsxs(_Fragment, { children: [_jsxs(Text, { style: bodyTextStyle, children: [text.bodyDepleted1, " \u2018", workspaceName, "\u2019", " ", text.bodyDepleted2] }), _jsx(Text, { style: warningTextStyle, children: text.warningText })] })) : (_jsxs(Text, { style: bodyTextStyle, children: [text.bodyWarning1, " \u2018", workspaceName, "\u2019 ", text.bodyWarning2, " ", creditsRemaining.toLocaleString(), " / ", totalCredits.toLocaleString(), " ", text.bodyWarning3, " (", percentageRemaining, "%)."] })), _jsx(Button, { href: upgradeUrl, style: buttonStyle, children: text.button })] }));
|
|
33
19
|
}
|
|
34
|
-
// ---------------------------------------------------------------------------
|
|
35
|
-
// Inline Styles
|
|
36
|
-
// ---------------------------------------------------------------------------
|
|
37
20
|
const headingStyle = {
|
|
38
21
|
color: "#18181b",
|
|
39
22
|
fontSize: "22px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-warning.js","sourceRoot":"","sources":["../../../src/email/templates/trial-warning.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"trial-warning.js","sourceRoot":"","sources":["../../../src/email/templates/trial-warning.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAa3C,MAAM,UAAU,iBAAiB,CAAC,EAChC,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,UAAU,GACa;IACvB,MAAM,IAAI,GAAG;QACX,eAAe,EAAE,iCAAiC;QAClD,cAAc,EAAE,oCAAoC;QACpD,eAAe,EAAE,wBAAwB;QACzC,cAAc,EAAE,2BAA2B;QAC3C,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,6BAA6B;QAC5C,WAAW,EAAE,oDAAoD;QACjE,YAAY,EAAE,gBAAgB;QAC9B,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,yBAAyB;QACvC,MAAM,EAAE,eAAe;KACxB,CAAC;IAEF,OAAO,CACL,MAAC,UAAU,IACT,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,aAEhE,KAAC,IAAI,IAAC,KAAK,EAAE,YAAY,YACtB,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GACnD,EAEN,UAAU,CAAC,CAAC,CAAC,CACZ,8BACE,MAAC,IAAI,IAAC,KAAK,EAAE,aAAa,aACvB,I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B,SAAS,EAAE,QAAiB;IAC5B,SAAS,EAAE,KAAK;CACjB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export interface VerifyEmailEmailProps {
|
|
2
3
|
userName: string;
|
|
3
4
|
verificationUrl: string;
|
|
4
|
-
locale?: "en" | "mn";
|
|
5
5
|
}
|
|
6
|
-
export declare function VerifyEmailEmail({ userName, verificationUrl,
|
|
6
|
+
export declare function VerifyEmailEmail({ userName, verificationUrl, }: VerifyEmailEmailProps): React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=verify-email.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-email.d.ts","sourceRoot":"","sources":["../../../src/email/templates/verify-email.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-email.d.ts","sourceRoot":"","sources":["../../../src/email/templates/verify-email.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,eAAe,GAChB,EAAE,qBAAqB,qBAuBvB"}
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Text } from "@react-email/components";
|
|
3
|
-
import { BaseLayout } from "./base-layout";
|
|
4
|
-
export function VerifyEmailEmail({ userName, verificationUrl,
|
|
5
|
-
const text =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
: {
|
|
15
|
-
preview: "Verify your email address",
|
|
16
|
-
heading: "Verify your email",
|
|
17
|
-
greeting: "Hi",
|
|
18
|
-
body: "Please verify your email address by clicking the button below.",
|
|
19
|
-
button: "Verify Email",
|
|
20
|
-
note: "This link expires in 24 hours. If you didn't create an account, you can safely ignore this email.",
|
|
21
|
-
};
|
|
3
|
+
import { BaseLayout } from "./base-layout.js";
|
|
4
|
+
export function VerifyEmailEmail({ userName, verificationUrl, }) {
|
|
5
|
+
const text = {
|
|
6
|
+
preview: "Verify your email address",
|
|
7
|
+
heading: "Verify your email",
|
|
8
|
+
greeting: "Hi",
|
|
9
|
+
body: "Please verify your email address by clicking the button below.",
|
|
10
|
+
button: "Verify Email",
|
|
11
|
+
note: "This link expires in 24 hours. If you didn't create an account, you can safely ignore this email.",
|
|
12
|
+
};
|
|
22
13
|
return (_jsxs(BaseLayout, { preview: text.preview, children: [_jsx(Text, { style: headingStyle, children: text.heading }), _jsxs(Text, { style: bodyTextStyle, children: [text.greeting, " ", userName, ","] }), _jsx(Text, { style: bodyTextStyle, children: text.body }), _jsx(Button, { href: verificationUrl, style: buttonStyle, children: text.button }), _jsx(Text, { style: noteStyle, children: text.note })] }));
|
|
23
14
|
}
|
|
24
|
-
// ---------------------------------------------------------------------------
|
|
25
|
-
// Inline Styles
|
|
26
|
-
// ---------------------------------------------------------------------------
|
|
27
15
|
const headingStyle = {
|
|
28
16
|
color: "#18181b",
|
|
29
17
|
fontSize: "22px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-email.js","sourceRoot":"","sources":["../../../src/email/templates/verify-email.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"verify-email.js","sourceRoot":"","sources":["../../../src/email/templates/verify-email.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAO3C,MA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ClB,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAiB;IAC5B,SAAS,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,SAAS,GAAwB;IACrC,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,MAAM;CAClB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export interface WelcomeEmailProps {
|
|
2
3
|
userName: string;
|
|
3
4
|
dashboardUrl: string;
|
|
4
|
-
locale?: "en" | "mn";
|
|
5
5
|
}
|
|
6
|
-
export declare function WelcomeEmail({ userName, dashboardUrl
|
|
6
|
+
export declare function WelcomeEmail({ userName, dashboardUrl }: WelcomeEmailProps): React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=welcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../../src/email/templates/welcome.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"welcome.d.ts","sourceRoot":"","sources":["../../../src/email/templates/welcome.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,iBAAiB,qBAwBzE"}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Text } from "@react-email/components";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
greeting: "Hi",
|
|
17
|
-
body: "Thanks for signing up! You're all set to start using AI-powered tools to boost your productivity.",
|
|
18
|
-
button: "Go to Dashboard",
|
|
19
|
-
};
|
|
3
|
+
import { emailBrand } from "../brand.js";
|
|
4
|
+
import { BaseLayout } from "./base-layout.js";
|
|
5
|
+
export function WelcomeEmail({ userName, dashboardUrl }) {
|
|
6
|
+
const { name } = emailBrand();
|
|
7
|
+
const text = {
|
|
8
|
+
preview: name
|
|
9
|
+
? `Welcome to ${name}, ${userName}!`
|
|
10
|
+
: `Welcome, ${userName}!`,
|
|
11
|
+
heading: name ? `Welcome to ${name}` : "Welcome",
|
|
12
|
+
greeting: "Hi",
|
|
13
|
+
body: "Thanks for signing up! You're all set to start using AI-powered tools to boost your productivity.",
|
|
14
|
+
button: "Go to Dashboard",
|
|
15
|
+
};
|
|
20
16
|
return (_jsxs(BaseLayout, { preview: text.preview, children: [_jsx(Text, { style: headingStyle, children: text.heading }), _jsxs(Text, { style: bodyTextStyle, children: [text.greeting, " ", userName, ","] }), _jsx(Text, { style: bodyTextStyle, children: text.body }), _jsx(Button, { href: dashboardUrl, style: buttonStyle, children: text.button })] }));
|
|
21
17
|
}
|
|
22
|
-
// ---------------------------------------------------------------------------
|
|
23
|
-
// Inline Styles
|
|
24
|
-
// ---------------------------------------------------------------------------
|
|
25
18
|
const headingStyle = {
|
|
26
19
|
color: "#18181b",
|
|
27
20
|
fontSize: "22px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../../src/email/templates/welcome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"welcome.js","sourceRoot":"","sources":["../../../src/email/templates/welcome.tsx"],"names":[],"mappings":";AAAA,OAAO,E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B,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,UAAU;CACnB,CAAC;AAEF,MAAM,WAAW,GAAwB;IACvC,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAiB;IAC5B,SAAS,EAAE,KAAK;CACjB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export interface WorkspaceInvitationEmailProps {
|
|
2
3
|
inviterName: string;
|
|
3
4
|
workspaceName: string;
|
|
4
5
|
role: string;
|
|
5
6
|
acceptUrl: string;
|
|
6
7
|
declineUrl: string;
|
|
7
|
-
locale?: "en" | "mn";
|
|
8
8
|
}
|
|
9
|
-
export declare function WorkspaceInvitationEmail({ inviterName, workspaceName, role, acceptUrl, declineUrl,
|
|
9
|
+
export declare function WorkspaceInvitationEmail({ inviterName, workspaceName, role, acceptUrl, declineUrl, }: WorkspaceInvitationEmailProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=workspace-invitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-invitation.d.ts","sourceRoot":"","sources":["../../../src/email/templates/workspace-invitation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-invitation.d.ts","sourceRoot":"","sources":["../../../src/email/templates/workspace-invitation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,aAAa,EACb,IAAI,EACJ,SAAS,EACT,UAAU,GACX,EAAE,6BAA6B,qBAgC/B"}
|
|
@@ -1,33 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Section, Text } from "@react-email/components";
|
|
3
|
-
import { BaseLayout } from "./base-layout";
|
|
4
|
-
export function WorkspaceInvitationEmail({ inviterName, workspaceName, role, acceptUrl, declineUrl,
|
|
5
|
-
const text =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
: {
|
|
17
|
-
preview: `${inviterName} invited you to join ${workspaceName}`,
|
|
18
|
-
heading: "You're invited!",
|
|
19
|
-
body: "has invited you to join the workspace",
|
|
20
|
-
as: "as a",
|
|
21
|
-
invitedYou: "",
|
|
22
|
-
acceptButton: "Accept Invitation",
|
|
23
|
-
declineButton: "Decline",
|
|
24
|
-
note: "This invitation expires in 7 days.",
|
|
25
|
-
};
|
|
3
|
+
import { BaseLayout } from "./base-layout.js";
|
|
4
|
+
export function WorkspaceInvitationEmail({ inviterName, workspaceName, role, acceptUrl, declineUrl, }) {
|
|
5
|
+
const text = {
|
|
6
|
+
preview: `${inviterName} invited you to join ${workspaceName}`,
|
|
7
|
+
heading: "You're invited!",
|
|
8
|
+
body: "has invited you to join the workspace",
|
|
9
|
+
as: "as a",
|
|
10
|
+
invitedYou: "",
|
|
11
|
+
acceptButton: "Accept Invitation",
|
|
12
|
+
declineButton: "Decline",
|
|
13
|
+
note: "This invitation expires in 7 days.",
|
|
14
|
+
};
|
|
26
15
|
return (_jsxs(BaseLayout, { preview: text.preview, children: [_jsx(Text, { style: headingStyle, children: text.heading }), _jsxs(Text, { style: bodyTextStyle, children: [_jsx("strong", { children: inviterName }), " ", text.body, " ", _jsxs("strong", { children: ["\u2018", workspaceName, "\u2019"] }), " ", text.as, " ", _jsx("strong", { children: role }), text.invitedYou ? ` ${text.invitedYou}` : "", "."] }), _jsxs(Section, { style: buttonGroupStyle, children: [_jsx(Button, { href: acceptUrl, style: acceptButtonStyle, children: text.acceptButton }), _jsx(Button, { href: declineUrl, style: declineButtonStyle, children: text.declineButton })] }), _jsx(Text, { style: noteStyle, children: text.note })] }));
|
|
27
16
|
}
|
|
28
|
-
// ---------------------------------------------------------------------------
|
|
29
|
-
// Inline Styles
|
|
30
|
-
// ---------------------------------------------------------------------------
|
|
31
17
|
const headingStyle = {
|
|
32
18
|
color: "#18181b",
|
|
33
19
|
fontSize: "22px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-invitation.js","sourceRoot":"","sources":["../../../src/email/templates/workspace-invitation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace-invitation.js","sourceRoot":"","sources":["../../../src/email/templates/workspace-invitation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,MAAM,UAAU,wBAAwB,CAAC,EACvC,WAAW,EACX,aAAa,EACb,IAAI,EACJ,SAAS,EACT,UAAU,GACoB;IAC9B,MAAM,IAAI,GAAG;QACX,OAAO,EAAE,GAAG,WAAW,wBAAwB,aAAa,EAAE;QAC9D,OAAO,EAAE,iBAAiB;QAC1B,IAAI,EAAE,uCAAuC;QAC7C,EAAE,EAAE,MAAM;QACV,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,mBAAmB;QACjC,aAAa,EAAE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E,SAAS;IAC1B,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAiB;IAC5B,WAAW,EAAE,MAAM;CACpB,CAAC;AAEF,MAAM,kBAAkB,GAAwB;IAC9C,eAAe,EAAE,aAAa;IAC9B,MAAM,EAAE,mBAAmB;IAC3B,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,WAAW;IACpB,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,QAAiB;CAC7B,CAAC;AAEF,MAAM,SAAS,GAAwB;IACrC,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,MAAM;CAClB,CAAC"}
|
package/dist/env.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Fail-fast approach: missing critical env vars throw immediately
|
|
6
|
-
* rather than failing at runtime when the feature is first used.
|
|
7
|
-
*
|
|
8
|
-
* Usage: Import and call validateEnv() in app layout or middleware.
|
|
9
|
-
* Note: Some vars are optional for local dev (STRIPE_*, RESEND_API_KEY).
|
|
2
|
+
* Startup validation of environment variables: a missing required variable
|
|
3
|
+
* throws immediately instead of when its feature is first used. Some are
|
|
4
|
+
* optional in development (STRIPE_*, RESEND_API_KEY).
|
|
10
5
|
*/
|
|
11
6
|
export declare function validateEnv(): {
|
|
12
7
|
valid: boolean;
|
|
@@ -14,8 +9,8 @@ export declare function validateEnv(): {
|
|
|
14
9
|
warnings: string[];
|
|
15
10
|
};
|
|
16
11
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
12
|
+
* Call during app initialization. Throws on missing required variables;
|
|
13
|
+
* logs warnings for optional ones.
|
|
19
14
|
*/
|
|
20
15
|
export declare function assertEnv(): void;
|
|
21
16
|
//# sourceMappingURL=env.d.ts.map
|
package/dist/env.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmEH,wBAAgB,WAAW,IAAI;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAkFA;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAgBhC"}
|