@contractspec/bundle.marketing 1.12.0 → 1.13.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.
- package/.turbo/turbo-build.log +146 -175
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +29 -0
- package/dist/browser/components/marketing/ChangelogPage.js +92 -0
- package/dist/browser/components/marketing/CofounderPage.js +581 -0
- package/dist/browser/components/marketing/ContactClient.js +1379 -0
- package/dist/browser/components/marketing/ContributePage.js +487 -0
- package/dist/browser/components/marketing/DesignPartnerPage.js +272 -0
- package/dist/browser/components/marketing/LandingPage.js +629 -0
- package/dist/browser/components/marketing/PricingClient.js +1972 -0
- package/dist/browser/components/marketing/ProductClientPage.js +563 -0
- package/dist/browser/components/marketing/index.js +4818 -0
- package/dist/browser/components/marketing/pricing-thinking-modal.js +258 -0
- package/dist/browser/components/marketing/sections/AudienceSection.js +90 -0
- package/dist/browser/components/marketing/sections/CorePositioningSection.js +72 -0
- package/dist/browser/components/marketing/sections/CtaSection.js +67 -0
- package/dist/browser/components/marketing/sections/DevelopersSection.js +50 -0
- package/dist/browser/components/marketing/sections/FearsSection.js +105 -0
- package/dist/browser/components/marketing/sections/HeroMarketingSection.js +93 -0
- package/dist/browser/components/marketing/sections/IconGridSection.js +63 -0
- package/dist/browser/components/marketing/sections/OutputsSection.js +116 -0
- package/dist/browser/components/marketing/sections/ProblemSection.js +103 -0
- package/dist/browser/components/marketing/sections/SolutionSection.js +103 -0
- package/dist/browser/components/marketing/sections/StepsSection.js +109 -0
- package/dist/browser/components/marketing/waitlist-section.js +1104 -0
- package/dist/browser/components/templates/TemplatesClientPage.js +5662 -0
- package/dist/browser/components/templates/TemplatesPage.js +177 -0
- package/dist/browser/components/templates/TemplatesPreviewModal.js +124 -0
- package/dist/browser/components/templates/index.js +5831 -0
- package/dist/browser/index.js +6485 -0
- package/dist/browser/libs/email/client.js +122 -0
- package/dist/browser/libs/email/contact.js +190 -0
- package/dist/browser/libs/email/newsletter.js +215 -0
- package/dist/browser/libs/email/types.js +2 -0
- package/dist/browser/libs/email/utils.js +16 -0
- package/dist/browser/libs/email/waitlist-application.js +295 -0
- package/dist/browser/libs/email/waitlist.js +225 -0
- package/dist/browser/libs/pricing-examples.js +26 -0
- package/dist/browser/registry/engine.js +5293 -0
- package/dist/browser/registry/factory.js +52 -0
- package/dist/browser/registry/index.js +5358 -0
- package/dist/browser/registry/registry-docs.js +343 -0
- package/dist/browser/registry/registry-landing.js +4937 -0
- package/dist/browser/registry/registry.js +5279 -0
- package/dist/browser/registry/types.js +0 -0
- package/dist/browser/registry/utils.js +5340 -0
- package/dist/components/marketing/ChangelogPage.d.ts +11 -17
- package/dist/components/marketing/ChangelogPage.d.ts.map +1 -1
- package/dist/components/marketing/ChangelogPage.js +84 -62
- package/dist/components/marketing/CofounderPage.d.ts +1 -6
- package/dist/components/marketing/CofounderPage.d.ts.map +1 -1
- package/dist/components/marketing/CofounderPage.js +544 -436
- package/dist/components/marketing/ContactClient.d.ts +1 -6
- package/dist/components/marketing/ContactClient.d.ts.map +1 -1
- package/dist/components/marketing/ContactClient.js +1371 -155
- package/dist/components/marketing/ContributePage.d.ts +3 -8
- package/dist/components/marketing/ContributePage.d.ts.map +1 -1
- package/dist/components/marketing/ContributePage.js +478 -358
- package/dist/components/marketing/DesignPartnerPage.d.ts +3 -8
- package/dist/components/marketing/DesignPartnerPage.d.ts.map +1 -1
- package/dist/components/marketing/DesignPartnerPage.js +263 -211
- package/dist/components/marketing/LandingPage.d.ts +1 -6
- package/dist/components/marketing/LandingPage.d.ts.map +1 -1
- package/dist/components/marketing/LandingPage.js +623 -37
- package/dist/components/marketing/PricingClient.d.ts +1 -6
- package/dist/components/marketing/PricingClient.d.ts.map +1 -1
- package/dist/components/marketing/PricingClient.js +1962 -516
- package/dist/components/marketing/ProductClientPage.d.ts +1 -6
- package/dist/components/marketing/ProductClientPage.d.ts.map +1 -1
- package/dist/components/marketing/ProductClientPage.js +556 -458
- package/dist/components/marketing/index.d.ts +11 -11
- package/dist/components/marketing/index.d.ts.map +1 -0
- package/dist/components/marketing/index.js +4813 -12
- package/dist/components/marketing/pricing-thinking-modal.d.ts +5 -13
- package/dist/components/marketing/pricing-thinking-modal.d.ts.map +1 -1
- package/dist/components/marketing/pricing-thinking-modal.js +248 -197
- package/dist/components/marketing/sections/AudienceSection.d.ts +1 -6
- package/dist/components/marketing/sections/AudienceSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/AudienceSection.js +80 -63
- package/dist/components/marketing/sections/CorePositioningSection.d.ts +1 -6
- package/dist/components/marketing/sections/CorePositioningSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/CorePositioningSection.js +62 -54
- package/dist/components/marketing/sections/CtaSection.d.ts +1 -6
- package/dist/components/marketing/sections/CtaSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/CtaSection.js +58 -50
- package/dist/components/marketing/sections/DevelopersSection.d.ts +1 -6
- package/dist/components/marketing/sections/DevelopersSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/DevelopersSection.js +40 -40
- package/dist/components/marketing/sections/FearsSection.d.ts +1 -6
- package/dist/components/marketing/sections/FearsSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/FearsSection.js +96 -44
- package/dist/components/marketing/sections/HeroMarketingSection.d.ts +1 -6
- package/dist/components/marketing/sections/HeroMarketingSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/HeroMarketingSection.js +82 -71
- package/dist/components/marketing/sections/IconGridSection.d.ts +25 -39
- package/dist/components/marketing/sections/IconGridSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/IconGridSection.js +55 -41
- package/dist/components/marketing/sections/OutputsSection.d.ts +1 -6
- package/dist/components/marketing/sections/OutputsSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/OutputsSection.js +107 -55
- package/dist/components/marketing/sections/ProblemSection.d.ts +1 -6
- package/dist/components/marketing/sections/ProblemSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/ProblemSection.js +94 -42
- package/dist/components/marketing/sections/SolutionSection.d.ts +1 -6
- package/dist/components/marketing/sections/SolutionSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/SolutionSection.js +94 -42
- package/dist/components/marketing/sections/StepsSection.d.ts +1 -6
- package/dist/components/marketing/sections/StepsSection.d.ts.map +1 -1
- package/dist/components/marketing/sections/StepsSection.js +100 -48
- package/dist/components/marketing/waitlist-section.d.ts +5 -12
- package/dist/components/marketing/waitlist-section.d.ts.map +1 -1
- package/dist/components/marketing/waitlist-section.js +1089 -568
- package/dist/components/templates/TemplatesClientPage.d.ts +1 -6
- package/dist/components/templates/TemplatesClientPage.d.ts.map +1 -1
- package/dist/components/templates/TemplatesClientPage.js +5649 -617
- package/dist/components/templates/TemplatesPage.d.ts +1 -6
- package/dist/components/templates/TemplatesPage.d.ts.map +1 -1
- package/dist/components/templates/TemplatesPage.js +163 -116
- package/dist/components/templates/TemplatesPreviewModal.d.ts +5 -12
- package/dist/components/templates/TemplatesPreviewModal.d.ts.map +1 -1
- package/dist/components/templates/TemplatesPreviewModal.js +113 -131
- package/dist/components/templates/index.d.ts +4 -4
- package/dist/components/templates/index.d.ts.map +1 -0
- package/dist/components/templates/index.js +5825 -4
- package/dist/index.d.ts +9 -29
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6480 -28
- package/dist/libs/email/client.d.ts +9 -12
- package/dist/libs/email/client.d.ts.map +1 -1
- package/dist/libs/email/client.js +109 -105
- package/dist/libs/email/client.test.d.ts +2 -0
- package/dist/libs/email/client.test.d.ts.map +1 -0
- package/dist/libs/email/contact.d.ts +2 -6
- package/dist/libs/email/contact.d.ts.map +1 -1
- package/dist/libs/email/contact.js +155 -41
- package/dist/libs/email/newsletter.d.ts +2 -6
- package/dist/libs/email/newsletter.d.ts.map +1 -1
- package/dist/libs/email/newsletter.js +169 -54
- package/dist/libs/email/types.d.ts +48 -52
- package/dist/libs/email/types.d.ts.map +1 -1
- package/dist/libs/email/types.js +3 -1
- package/dist/libs/email/utils.d.ts +2 -5
- package/dist/libs/email/utils.d.ts.map +1 -1
- package/dist/libs/email/utils.js +10 -6
- package/dist/libs/email/waitlist-application.d.ts +2 -6
- package/dist/libs/email/waitlist-application.d.ts.map +1 -1
- package/dist/libs/email/waitlist-application.js +191 -71
- package/dist/libs/email/waitlist.d.ts +2 -6
- package/dist/libs/email/waitlist.d.ts.map +1 -1
- package/dist/libs/email/waitlist.js +171 -56
- package/dist/libs/pricing-examples.d.ts +13 -16
- package/dist/libs/pricing-examples.d.ts.map +1 -1
- package/dist/libs/pricing-examples.js +20 -20
- package/dist/node/components/marketing/ChangelogPage.js +87 -0
- package/dist/node/components/marketing/CofounderPage.js +576 -0
- package/dist/node/components/marketing/ContactClient.js +1374 -0
- package/dist/node/components/marketing/ContributePage.js +482 -0
- package/dist/node/components/marketing/DesignPartnerPage.js +267 -0
- package/dist/node/components/marketing/LandingPage.js +624 -0
- package/dist/node/components/marketing/PricingClient.js +1967 -0
- package/dist/node/components/marketing/ProductClientPage.js +558 -0
- package/dist/node/components/marketing/index.js +4813 -0
- package/dist/node/components/marketing/pricing-thinking-modal.js +253 -0
- package/dist/node/components/marketing/sections/AudienceSection.js +85 -0
- package/dist/node/components/marketing/sections/CorePositioningSection.js +67 -0
- package/dist/node/components/marketing/sections/CtaSection.js +62 -0
- package/dist/node/components/marketing/sections/DevelopersSection.js +45 -0
- package/dist/node/components/marketing/sections/FearsSection.js +100 -0
- package/dist/node/components/marketing/sections/HeroMarketingSection.js +88 -0
- package/dist/node/components/marketing/sections/IconGridSection.js +58 -0
- package/dist/node/components/marketing/sections/OutputsSection.js +111 -0
- package/dist/node/components/marketing/sections/ProblemSection.js +98 -0
- package/dist/node/components/marketing/sections/SolutionSection.js +98 -0
- package/dist/node/components/marketing/sections/StepsSection.js +104 -0
- package/dist/node/components/marketing/waitlist-section.js +1099 -0
- package/dist/node/components/templates/TemplatesClientPage.js +5657 -0
- package/dist/node/components/templates/TemplatesPage.js +172 -0
- package/dist/node/components/templates/TemplatesPreviewModal.js +119 -0
- package/dist/node/components/templates/index.js +5826 -0
- package/dist/node/index.js +6480 -0
- package/dist/node/libs/email/client.js +117 -0
- package/dist/node/libs/email/contact.js +185 -0
- package/dist/node/libs/email/newsletter.js +210 -0
- package/dist/node/libs/email/types.js +2 -0
- package/dist/node/libs/email/utils.js +11 -0
- package/dist/node/libs/email/waitlist-application.js +290 -0
- package/dist/node/libs/email/waitlist.js +220 -0
- package/dist/node/libs/pricing-examples.js +21 -0
- package/dist/node/registry/engine.js +5288 -0
- package/dist/node/registry/factory.js +47 -0
- package/dist/node/registry/index.js +5353 -0
- package/dist/node/registry/registry-docs.js +338 -0
- package/dist/node/registry/registry-landing.js +4932 -0
- package/dist/node/registry/registry.js +5274 -0
- package/dist/node/registry/types.js +0 -0
- package/dist/node/registry/utils.js +5335 -0
- package/dist/registry/engine.d.ts +4 -8
- package/dist/registry/engine.d.ts.map +1 -1
- package/dist/registry/engine.js +5287 -23
- package/dist/registry/factory.d.ts +30 -34
- package/dist/registry/factory.d.ts.map +1 -1
- package/dist/registry/factory.js +42 -56
- package/dist/registry/index.d.ts +8 -8
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +5353 -8
- package/dist/registry/registry-docs.d.ts +4 -8
- package/dist/registry/registry-docs.d.ts.map +1 -1
- package/dist/registry/registry-docs.js +242 -209
- package/dist/registry/registry-landing.d.ts +5 -9
- package/dist/registry/registry-landing.d.ts.map +1 -1
- package/dist/registry/registry-landing.js +4930 -93
- package/dist/registry/registry.d.ts +7 -11
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +5262 -49
- package/dist/registry/types.d.ts +6 -10
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/registry/types.js +1 -0
- package/dist/registry/utils.d.ts +10 -14
- package/dist/registry/utils.d.ts.map +1 -1
- package/dist/registry/utils.js +5330 -49
- package/package.json +355 -73
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$types.log +0 -1
- package/.turbo/turbo-lint.log +0 -3
- package/dist/components/marketing/ChangelogPage.js.map +0 -1
- package/dist/components/marketing/CofounderPage.js.map +0 -1
- package/dist/components/marketing/ContactClient.js.map +0 -1
- package/dist/components/marketing/ContributePage.js.map +0 -1
- package/dist/components/marketing/DesignPartnerPage.js.map +0 -1
- package/dist/components/marketing/LandingPage.js.map +0 -1
- package/dist/components/marketing/PricingClient.js.map +0 -1
- package/dist/components/marketing/ProductClientPage.js.map +0 -1
- package/dist/components/marketing/pricing-thinking-modal.js.map +0 -1
- package/dist/components/marketing/sections/AudienceSection.js.map +0 -1
- package/dist/components/marketing/sections/CorePositioningSection.js.map +0 -1
- package/dist/components/marketing/sections/CtaSection.js.map +0 -1
- package/dist/components/marketing/sections/DevelopersSection.js.map +0 -1
- package/dist/components/marketing/sections/FearsSection.js.map +0 -1
- package/dist/components/marketing/sections/HeroMarketingSection.js.map +0 -1
- package/dist/components/marketing/sections/IconGridSection.js.map +0 -1
- package/dist/components/marketing/sections/OutputsSection.js.map +0 -1
- package/dist/components/marketing/sections/ProblemSection.js.map +0 -1
- package/dist/components/marketing/sections/SolutionSection.js.map +0 -1
- package/dist/components/marketing/sections/StepsSection.js.map +0 -1
- package/dist/components/marketing/waitlist-section.js.map +0 -1
- package/dist/components/templates/TemplatesClientPage.js.map +0 -1
- package/dist/components/templates/TemplatesPage.js.map +0 -1
- package/dist/components/templates/TemplatesPreviewModal.js.map +0 -1
- package/dist/libs/email/client.js.map +0 -1
- package/dist/libs/email/contact.js.map +0 -1
- package/dist/libs/email/newsletter.js.map +0 -1
- package/dist/libs/email/utils.js.map +0 -1
- package/dist/libs/email/waitlist-application.js.map +0 -1
- package/dist/libs/email/waitlist.js.map +0 -1
- package/dist/libs/pricing-examples.js.map +0 -1
- package/dist/registry/engine.js.map +0 -1
- package/dist/registry/factory.js.map +0 -1
- package/dist/registry/registry-docs.js.map +0 -1
- package/dist/registry/registry-landing.js.map +0 -1
- package/dist/registry/registry.js.map +0 -1
- package/dist/registry/utils.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined")
|
|
5
|
+
return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// src/libs/email/client.ts
|
|
10
|
+
import { createClient, Temv1alpha1 } from "@scaleway/sdk";
|
|
11
|
+
import { Logger } from "@contractspec/lib.logger";
|
|
12
|
+
var DEFAULT_FROM = {
|
|
13
|
+
email: "noreply@transactional.contractspec.io",
|
|
14
|
+
name: "ContractSpec"
|
|
15
|
+
};
|
|
16
|
+
var DEFAULT_TEAM_INBOX = {
|
|
17
|
+
email: "contact@contractspec.io",
|
|
18
|
+
name: "ContractSpec Team"
|
|
19
|
+
};
|
|
20
|
+
var DEFAULT_REGION = "fr-par";
|
|
21
|
+
var cachedConfig = null;
|
|
22
|
+
var cachedClient = null;
|
|
23
|
+
var apiFactory = (client) => new Temv1alpha1.API(client);
|
|
24
|
+
var mapRegion = (value) => {
|
|
25
|
+
const normalized = value?.trim().toLowerCase();
|
|
26
|
+
if (normalized === "par" || normalized === "fr-par")
|
|
27
|
+
return "fr-par";
|
|
28
|
+
if (normalized === "ams" || normalized === "nl-ams")
|
|
29
|
+
return "nl-ams";
|
|
30
|
+
if (normalized === "waw" || normalized === "pl-waw")
|
|
31
|
+
return "pl-waw";
|
|
32
|
+
return DEFAULT_REGION;
|
|
33
|
+
};
|
|
34
|
+
var getEmailConfig = () => {
|
|
35
|
+
if (cachedConfig) {
|
|
36
|
+
return { ok: true, config: cachedConfig };
|
|
37
|
+
}
|
|
38
|
+
const accessKey = process.env.SCALEWAY_ACCESS_KEY || process.env.SCALEWAY_ACCESS_KEY_QUEUE;
|
|
39
|
+
const secretKey = process.env.SCALEWAY_SECRET_KEY || process.env.SCALEWAY_SECRET_KEY_QUEUE;
|
|
40
|
+
const projectId = process.env.SCALEWAY_PROJECT_ID;
|
|
41
|
+
if (!accessKey || !secretKey || !projectId) {
|
|
42
|
+
return {
|
|
43
|
+
ok: false,
|
|
44
|
+
errorMessage: "Email service is not configured. Please contact us directly at contact@contractspec.io."
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const region = mapRegion(process.env.SCALEWAY_REGION);
|
|
48
|
+
cachedConfig = {
|
|
49
|
+
accessKey,
|
|
50
|
+
secretKey,
|
|
51
|
+
projectId,
|
|
52
|
+
region,
|
|
53
|
+
defaultZone: `${region}-1`,
|
|
54
|
+
from: {
|
|
55
|
+
email: process.env.SCALEWAY_EMAIL_FROM_EMAIL ?? DEFAULT_FROM.email,
|
|
56
|
+
name: process.env.SCALEWAY_EMAIL_FROM_NAME ?? DEFAULT_FROM.name
|
|
57
|
+
},
|
|
58
|
+
teamInbox: {
|
|
59
|
+
email: process.env.SCALEWAY_EMAIL_TEAM_EMAIL ?? DEFAULT_TEAM_INBOX.email,
|
|
60
|
+
name: process.env.SCALEWAY_EMAIL_TEAM_NAME ?? DEFAULT_TEAM_INBOX.name
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return { ok: true, config: cachedConfig };
|
|
64
|
+
};
|
|
65
|
+
var getTemClient = (config) => {
|
|
66
|
+
if (cachedClient) {
|
|
67
|
+
return cachedClient;
|
|
68
|
+
}
|
|
69
|
+
const client = createClient({
|
|
70
|
+
accessKey: config.accessKey,
|
|
71
|
+
secretKey: config.secretKey,
|
|
72
|
+
defaultProjectId: config.projectId,
|
|
73
|
+
defaultRegion: config.region,
|
|
74
|
+
defaultZone: config.defaultZone
|
|
75
|
+
});
|
|
76
|
+
cachedClient = apiFactory(client);
|
|
77
|
+
return cachedClient;
|
|
78
|
+
};
|
|
79
|
+
var sendEmail = async (config, request) => {
|
|
80
|
+
try {
|
|
81
|
+
const client = getTemClient(config);
|
|
82
|
+
await client.createEmail({
|
|
83
|
+
region: config.region,
|
|
84
|
+
projectId: config.projectId,
|
|
85
|
+
from: config.from,
|
|
86
|
+
to: request.to,
|
|
87
|
+
subject: request.subject,
|
|
88
|
+
text: request.text,
|
|
89
|
+
html: request.html || request.text,
|
|
90
|
+
additionalHeaders: request.replyTo ? [{ key: "Reply-To", value: request.replyTo }] : undefined
|
|
91
|
+
});
|
|
92
|
+
return { success: true };
|
|
93
|
+
} catch (error) {
|
|
94
|
+
new Logger().error("scaleway_tem_email_send_failed", {
|
|
95
|
+
context: request.context ?? "email",
|
|
96
|
+
error: error instanceof Error ? error.message : error
|
|
97
|
+
});
|
|
98
|
+
return {
|
|
99
|
+
success: false,
|
|
100
|
+
error,
|
|
101
|
+
errorMessage: "Failed to send email via Scaleway."
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var __internal = {
|
|
106
|
+
resetCaches() {
|
|
107
|
+
cachedClient = null;
|
|
108
|
+
cachedConfig = null;
|
|
109
|
+
apiFactory = (client) => new Temv1alpha1.API(client);
|
|
110
|
+
},
|
|
111
|
+
setApiFactory(factory) {
|
|
112
|
+
apiFactory = factory;
|
|
113
|
+
},
|
|
114
|
+
setClient(client) {
|
|
115
|
+
cachedClient = client;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
// src/libs/email/utils.ts
|
|
120
|
+
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
121
|
+
var formatMultilineHtml = (value) => escapeHtml(value).replaceAll(`
|
|
122
|
+
`, "<br />");
|
|
123
|
+
|
|
124
|
+
// src/libs/email/waitlist-application.ts
|
|
125
|
+
"use server";
|
|
126
|
+
var APPLICATION_MISSING_CONFIG = "Waitlist application service is not configured. Please try again later.";
|
|
127
|
+
var APPLICATION_SEND_ERROR = "Failed to submit application. Please try again later or contact us directly.";
|
|
128
|
+
var submitWaitlistApplication = async (formData) => {
|
|
129
|
+
const email = (formData.get("email") ?? "").toString().trim();
|
|
130
|
+
const name = (formData.get("name") ?? "").toString().trim();
|
|
131
|
+
const company = (formData.get("company") ?? "").toString().trim();
|
|
132
|
+
const role = (formData.get("role") ?? "").toString().trim();
|
|
133
|
+
const useCase = (formData.get("useCase") ?? "").toString().trim();
|
|
134
|
+
const currentStack = (formData.get("currentStack") ?? "").toString().trim();
|
|
135
|
+
const whatBuilding = (formData.get("whatBuilding") ?? "").toString().trim();
|
|
136
|
+
const whatSolving = (formData.get("whatSolving") ?? "").toString().trim();
|
|
137
|
+
const teamSize = (formData.get("teamSize") ?? "").toString().trim();
|
|
138
|
+
const timeline = (formData.get("timeline") ?? "").toString().trim();
|
|
139
|
+
const openToSessions = formData.get("openToSessions") === "on";
|
|
140
|
+
const okayWithCaseStudies = formData.get("okayWithCaseStudies") === "on";
|
|
141
|
+
if (!email || !email.includes("@")) {
|
|
142
|
+
return {
|
|
143
|
+
success: false,
|
|
144
|
+
text: "Please enter a valid email address."
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
if (!name || !whatBuilding || !whatSolving) {
|
|
148
|
+
return {
|
|
149
|
+
success: false,
|
|
150
|
+
text: "Please fill in all required fields."
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
const configResult = getEmailConfig();
|
|
154
|
+
if (!configResult.ok || !configResult.config) {
|
|
155
|
+
return {
|
|
156
|
+
success: false,
|
|
157
|
+
text: configResult.errorMessage ?? APPLICATION_MISSING_CONFIG
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const applicantText = `
|
|
161
|
+
You're on the list.
|
|
162
|
+
|
|
163
|
+
Thanks for applying to the ContractSpec design partner program. We're slowly onboarding design partners in waves. If your use case is a good fit, we'll reach out personally.
|
|
164
|
+
|
|
165
|
+
What happens next:
|
|
166
|
+
• We review applications weekly
|
|
167
|
+
• If selected, we'll reach out via email to schedule an intro call
|
|
168
|
+
• During early access, you'll get hands-on support and influence over the roadmap
|
|
169
|
+
|
|
170
|
+
In the meantime:
|
|
171
|
+
• Check out our docs: https://contractspec.io/docs
|
|
172
|
+
• Book a demo call: https://contractspec.io/contact
|
|
173
|
+
|
|
174
|
+
We're excited about the possibility of working together!
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
ContractSpec Team
|
|
178
|
+
https://contractspec.io
|
|
179
|
+
`.trim();
|
|
180
|
+
const applicantHtml = `
|
|
181
|
+
<div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
|
|
182
|
+
<h1 style="color: #8b5cf6;">You're on the list.</h1>
|
|
183
|
+
<p>Thanks for applying to the ContractSpec design partner program. We're slowly onboarding design partners in waves. If your use case is a good fit, we'll reach out personally.</p>
|
|
184
|
+
<h2 style="color: #8b5cf6; margin-top: 24px;">What happens next:</h2>
|
|
185
|
+
<ul style="line-height: 1.8;">
|
|
186
|
+
<li>We review applications weekly</li>
|
|
187
|
+
<li>If selected, we'll reach out via email to schedule an intro call</li>
|
|
188
|
+
<li>During early access, you'll get hands-on support and influence over the roadmap</li>
|
|
189
|
+
</ul>
|
|
190
|
+
<h2 style="color: #8b5cf6; margin-top: 24px;">In the meantime:</h2>
|
|
191
|
+
<ul style="line-height: 1.8;">
|
|
192
|
+
<li>Check out our <a href="https://contractspec.io/docs" style="color: #8b5cf6;">docs</a></li>
|
|
193
|
+
<li>Book a demo call: <a href="https://contractspec.io/contact" style="color: #8b5cf6;">contractspec.io/contact</a></li>
|
|
194
|
+
</ul>
|
|
195
|
+
<p>We're excited about the possibility of working together!</p>
|
|
196
|
+
<hr style="margin: 30px 0; border: none; border-top: 1px solid #e5e7eb;" />
|
|
197
|
+
<p style="color: #6b7280; font-size: 14px;">
|
|
198
|
+
ContractSpec Team<br />
|
|
199
|
+
<a href="https://contractspec.io" style="color: #8b5cf6;">contractspec.io</a>
|
|
200
|
+
</p>
|
|
201
|
+
</div>
|
|
202
|
+
`;
|
|
203
|
+
const applicantSend = await sendEmail(configResult.config, {
|
|
204
|
+
to: [{ email }],
|
|
205
|
+
subject: "You're on the ContractSpec design partner waitlist!",
|
|
206
|
+
text: applicantText,
|
|
207
|
+
html: applicantHtml,
|
|
208
|
+
context: "waitlist-application-welcome"
|
|
209
|
+
});
|
|
210
|
+
if (!applicantSend.success) {
|
|
211
|
+
return { success: false, text: APPLICATION_SEND_ERROR };
|
|
212
|
+
}
|
|
213
|
+
const preferencesText = `
|
|
214
|
+
Open to 1:1 product/design sessions: ${openToSessions ? "Yes" : "No"}
|
|
215
|
+
Okay with anonymized case studies: ${okayWithCaseStudies ? "Yes" : "No"}
|
|
216
|
+
`.trim();
|
|
217
|
+
const teamEmailText = `
|
|
218
|
+
New Design Partner Waitlist Application
|
|
219
|
+
|
|
220
|
+
Contact Information:
|
|
221
|
+
- Name: ${name}
|
|
222
|
+
- Email: ${email}
|
|
223
|
+
${company ? `- Company/Project: ${company}` : ""}
|
|
224
|
+
${role ? `- Role: ${role}` : ""}
|
|
225
|
+
|
|
226
|
+
Application Details:
|
|
227
|
+
- What are you building with AI today?
|
|
228
|
+
${whatBuilding}
|
|
229
|
+
|
|
230
|
+
- What do you hope ContractSpec will solve for you?
|
|
231
|
+
${whatSolving}
|
|
232
|
+
|
|
233
|
+
- Primary use case: ${useCase || "Not specified"}
|
|
234
|
+
- Current stack: ${currentStack || "Not specified"}
|
|
235
|
+
- Team Size: ${teamSize || "Not specified"}
|
|
236
|
+
- Timeline: ${timeline || "Not specified"}
|
|
237
|
+
|
|
238
|
+
Preferences:
|
|
239
|
+
- Open to 1:1 product/design sessions: ${openToSessions ? "Yes" : "No"}
|
|
240
|
+
- Okay with anonymized case studies: ${okayWithCaseStudies ? "Yes" : "No"}
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
Submitted via ContractSpec waitlist application form
|
|
244
|
+
`.trim();
|
|
245
|
+
const teamEmailHtml = `
|
|
246
|
+
<div style="font-family: sans-serif; max-width: 720px; margin: 0 auto;">
|
|
247
|
+
<h1 style="color: #8b5cf6;">New Design Partner Waitlist Application</h1>
|
|
248
|
+
<h2 style="color: #8b5cf6; margin: 16px 0 8px;">Contact Information</h2>
|
|
249
|
+
<ul style="padding-left: 16px; line-height: 1.6; margin: 0 0 16px;">
|
|
250
|
+
<li>Name: ${escapeHtml(name)}</li>
|
|
251
|
+
<li>Email: ${escapeHtml(email)}</li>
|
|
252
|
+
${company ? `<li>Company/Project: ${escapeHtml(company)}</li>` : ""}
|
|
253
|
+
${role ? `<li>Role: ${escapeHtml(role)}</li>` : ""}
|
|
254
|
+
</ul>
|
|
255
|
+
<h2 style="color: #8b5cf6; margin: 16px 0 8px;">Application Details</h2>
|
|
256
|
+
<p style="margin: 0 0 8px; font-weight: 600;">What are you building with AI today?</p>
|
|
257
|
+
<div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; white-space: pre-wrap; line-height: 1.6;">
|
|
258
|
+
${formatMultilineHtml(whatBuilding)}
|
|
259
|
+
</div>
|
|
260
|
+
<p style="margin: 16px 0 8px; font-weight: 600;">What do you hope ContractSpec will solve for you?</p>
|
|
261
|
+
<div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; white-space: pre-wrap; line-height: 1.6;">
|
|
262
|
+
${formatMultilineHtml(whatSolving)}
|
|
263
|
+
</div>
|
|
264
|
+
<ul style="padding-left: 16px; line-height: 1.6; margin: 16px 0;">
|
|
265
|
+
<li>Primary use case: ${escapeHtml(useCase || "Not specified")}</li>
|
|
266
|
+
<li>Current stack: ${escapeHtml(currentStack || "Not specified")}</li>
|
|
267
|
+
<li>Team Size: ${escapeHtml(teamSize || "Not specified")}</li>
|
|
268
|
+
<li>Timeline: ${escapeHtml(timeline || "Not specified")}</li>
|
|
269
|
+
</ul>
|
|
270
|
+
<h2 style="color: #8b5cf6; margin: 16px 0 8px;">Preferences</h2>
|
|
271
|
+
<div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; line-height: 1.6;">
|
|
272
|
+
${formatMultilineHtml(preferencesText)}
|
|
273
|
+
</div>
|
|
274
|
+
<p style="color: #6b7280; font-size: 12px; margin-top: 20px;">Submitted via ContractSpec waitlist application form</p>
|
|
275
|
+
</div>
|
|
276
|
+
`;
|
|
277
|
+
const teamSend = await sendEmail(configResult.config, {
|
|
278
|
+
to: [configResult.config.teamInbox],
|
|
279
|
+
subject: `New Design Partner Application: ${name} (${email})`,
|
|
280
|
+
text: teamEmailText,
|
|
281
|
+
html: teamEmailHtml,
|
|
282
|
+
replyTo: email,
|
|
283
|
+
context: "waitlist-application-team-notification"
|
|
284
|
+
});
|
|
285
|
+
if (!teamSend.success) {
|
|
286
|
+
return { success: false, text: APPLICATION_SEND_ERROR };
|
|
287
|
+
}
|
|
288
|
+
return {
|
|
289
|
+
success: true,
|
|
290
|
+
text: "Application submitted successfully!"
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
export {
|
|
294
|
+
submitWaitlistApplication
|
|
295
|
+
};
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined")
|
|
5
|
+
return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// src/libs/email/client.ts
|
|
10
|
+
import { createClient, Temv1alpha1 } from "@scaleway/sdk";
|
|
11
|
+
import { Logger } from "@contractspec/lib.logger";
|
|
12
|
+
var DEFAULT_FROM = {
|
|
13
|
+
email: "noreply@transactional.contractspec.io",
|
|
14
|
+
name: "ContractSpec"
|
|
15
|
+
};
|
|
16
|
+
var DEFAULT_TEAM_INBOX = {
|
|
17
|
+
email: "contact@contractspec.io",
|
|
18
|
+
name: "ContractSpec Team"
|
|
19
|
+
};
|
|
20
|
+
var DEFAULT_REGION = "fr-par";
|
|
21
|
+
var cachedConfig = null;
|
|
22
|
+
var cachedClient = null;
|
|
23
|
+
var apiFactory = (client) => new Temv1alpha1.API(client);
|
|
24
|
+
var mapRegion = (value) => {
|
|
25
|
+
const normalized = value?.trim().toLowerCase();
|
|
26
|
+
if (normalized === "par" || normalized === "fr-par")
|
|
27
|
+
return "fr-par";
|
|
28
|
+
if (normalized === "ams" || normalized === "nl-ams")
|
|
29
|
+
return "nl-ams";
|
|
30
|
+
if (normalized === "waw" || normalized === "pl-waw")
|
|
31
|
+
return "pl-waw";
|
|
32
|
+
return DEFAULT_REGION;
|
|
33
|
+
};
|
|
34
|
+
var getEmailConfig = () => {
|
|
35
|
+
if (cachedConfig) {
|
|
36
|
+
return { ok: true, config: cachedConfig };
|
|
37
|
+
}
|
|
38
|
+
const accessKey = process.env.SCALEWAY_ACCESS_KEY || process.env.SCALEWAY_ACCESS_KEY_QUEUE;
|
|
39
|
+
const secretKey = process.env.SCALEWAY_SECRET_KEY || process.env.SCALEWAY_SECRET_KEY_QUEUE;
|
|
40
|
+
const projectId = process.env.SCALEWAY_PROJECT_ID;
|
|
41
|
+
if (!accessKey || !secretKey || !projectId) {
|
|
42
|
+
return {
|
|
43
|
+
ok: false,
|
|
44
|
+
errorMessage: "Email service is not configured. Please contact us directly at contact@contractspec.io."
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const region = mapRegion(process.env.SCALEWAY_REGION);
|
|
48
|
+
cachedConfig = {
|
|
49
|
+
accessKey,
|
|
50
|
+
secretKey,
|
|
51
|
+
projectId,
|
|
52
|
+
region,
|
|
53
|
+
defaultZone: `${region}-1`,
|
|
54
|
+
from: {
|
|
55
|
+
email: process.env.SCALEWAY_EMAIL_FROM_EMAIL ?? DEFAULT_FROM.email,
|
|
56
|
+
name: process.env.SCALEWAY_EMAIL_FROM_NAME ?? DEFAULT_FROM.name
|
|
57
|
+
},
|
|
58
|
+
teamInbox: {
|
|
59
|
+
email: process.env.SCALEWAY_EMAIL_TEAM_EMAIL ?? DEFAULT_TEAM_INBOX.email,
|
|
60
|
+
name: process.env.SCALEWAY_EMAIL_TEAM_NAME ?? DEFAULT_TEAM_INBOX.name
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return { ok: true, config: cachedConfig };
|
|
64
|
+
};
|
|
65
|
+
var getTemClient = (config) => {
|
|
66
|
+
if (cachedClient) {
|
|
67
|
+
return cachedClient;
|
|
68
|
+
}
|
|
69
|
+
const client = createClient({
|
|
70
|
+
accessKey: config.accessKey,
|
|
71
|
+
secretKey: config.secretKey,
|
|
72
|
+
defaultProjectId: config.projectId,
|
|
73
|
+
defaultRegion: config.region,
|
|
74
|
+
defaultZone: config.defaultZone
|
|
75
|
+
});
|
|
76
|
+
cachedClient = apiFactory(client);
|
|
77
|
+
return cachedClient;
|
|
78
|
+
};
|
|
79
|
+
var sendEmail = async (config, request) => {
|
|
80
|
+
try {
|
|
81
|
+
const client = getTemClient(config);
|
|
82
|
+
await client.createEmail({
|
|
83
|
+
region: config.region,
|
|
84
|
+
projectId: config.projectId,
|
|
85
|
+
from: config.from,
|
|
86
|
+
to: request.to,
|
|
87
|
+
subject: request.subject,
|
|
88
|
+
text: request.text,
|
|
89
|
+
html: request.html || request.text,
|
|
90
|
+
additionalHeaders: request.replyTo ? [{ key: "Reply-To", value: request.replyTo }] : undefined
|
|
91
|
+
});
|
|
92
|
+
return { success: true };
|
|
93
|
+
} catch (error) {
|
|
94
|
+
new Logger().error("scaleway_tem_email_send_failed", {
|
|
95
|
+
context: request.context ?? "email",
|
|
96
|
+
error: error instanceof Error ? error.message : error
|
|
97
|
+
});
|
|
98
|
+
return {
|
|
99
|
+
success: false,
|
|
100
|
+
error,
|
|
101
|
+
errorMessage: "Failed to send email via Scaleway."
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var __internal = {
|
|
106
|
+
resetCaches() {
|
|
107
|
+
cachedClient = null;
|
|
108
|
+
cachedConfig = null;
|
|
109
|
+
apiFactory = (client) => new Temv1alpha1.API(client);
|
|
110
|
+
},
|
|
111
|
+
setApiFactory(factory) {
|
|
112
|
+
apiFactory = factory;
|
|
113
|
+
},
|
|
114
|
+
setClient(client) {
|
|
115
|
+
cachedClient = client;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
// src/libs/email/utils.ts
|
|
120
|
+
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
121
|
+
var formatMultilineHtml = (value) => escapeHtml(value).replaceAll(`
|
|
122
|
+
`, "<br />");
|
|
123
|
+
|
|
124
|
+
// src/libs/email/waitlist.ts
|
|
125
|
+
"use server";
|
|
126
|
+
var WAITLIST_MISSING_CONFIG = "Waitlist service is not configured. Please try again later.";
|
|
127
|
+
var WAITLIST_SEND_ERROR = "Failed to join waitlist. Please try again later or contact us directly.";
|
|
128
|
+
var joinWaitlist = async (formData) => {
|
|
129
|
+
const email = (formData.get("email") ?? "").toString().trim();
|
|
130
|
+
if (!email || !email.includes("@")) {
|
|
131
|
+
return {
|
|
132
|
+
success: false,
|
|
133
|
+
text: "Please enter a valid email address."
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const configResult = getEmailConfig();
|
|
137
|
+
if (!configResult.ok || !configResult.config) {
|
|
138
|
+
return {
|
|
139
|
+
success: false,
|
|
140
|
+
text: configResult.errorMessage ?? WAITLIST_MISSING_CONFIG
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
const waitlistText = `
|
|
144
|
+
You're on the waitlist!
|
|
145
|
+
|
|
146
|
+
Thanks for joining the ContractSpec waitlist. You're now in line for early access to:
|
|
147
|
+
|
|
148
|
+
• Stabilize your AI-generated code with ContractSpec
|
|
149
|
+
• Multi-surface consistency (API, DB, UI, events)
|
|
150
|
+
• Safe regeneration without breaking changes
|
|
151
|
+
• AI governance and contract enforcement
|
|
152
|
+
|
|
153
|
+
We'll notify you as soon as early access is available. In the meantime, you can:
|
|
154
|
+
|
|
155
|
+
• Check out our docs: https://contractspec.io/docs
|
|
156
|
+
• Follow our progress on GitHub
|
|
157
|
+
• Book a demo call to see ContractSpec in action
|
|
158
|
+
|
|
159
|
+
We're excited to have you on board!
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
ContractSpec Team
|
|
163
|
+
https://contractspec.io
|
|
164
|
+
|
|
165
|
+
To remove yourself from the waitlist, reply to this email with "remove"
|
|
166
|
+
`.trim();
|
|
167
|
+
const waitlistHtml = `
|
|
168
|
+
<div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
|
|
169
|
+
<h1 style="color: #8b5cf6;">You're on the waitlist!</h1>
|
|
170
|
+
<p>Thanks for joining the ContractSpec waitlist. You're now in line for early access to:</p>
|
|
171
|
+
<ul style="line-height: 1.8;">
|
|
172
|
+
<li>Stabilize your AI-generated code with ContractSpec</li>
|
|
173
|
+
<li>Multi-surface consistency (API, DB, UI, events)</li>
|
|
174
|
+
<li>Safe regeneration without breaking changes</li>
|
|
175
|
+
<li>AI governance and contract enforcement</li>
|
|
176
|
+
</ul>
|
|
177
|
+
<p>We'll notify you as soon as early access is available. In the meantime, you can:</p>
|
|
178
|
+
<ul style="line-height: 1.8;">
|
|
179
|
+
<li>Check out our <a href="https://contractspec.io/docs" style="color: #8b5cf6;">docs</a></li>
|
|
180
|
+
<li>Follow our progress on GitHub</li>
|
|
181
|
+
<li>Book a demo call to see ContractSpec in action</li>
|
|
182
|
+
</ul>
|
|
183
|
+
<p>We're excited to have you on board!</p>
|
|
184
|
+
<hr style="margin: 30px 0; border: none; border-top: 1px solid #e5e7eb;" />
|
|
185
|
+
<p style="color: #6b7280; font-size: 14px;">
|
|
186
|
+
ContractSpec Team<br />
|
|
187
|
+
<a href="https://contractspec.io" style="color: #8b5cf6;">contractspec.io</a>
|
|
188
|
+
</p>
|
|
189
|
+
<p style="color: #9ca3af; font-size: 12px;">
|
|
190
|
+
To remove yourself from the waitlist, reply to this email with "remove"
|
|
191
|
+
</p>
|
|
192
|
+
</div>
|
|
193
|
+
`;
|
|
194
|
+
const userSend = await sendEmail(configResult.config, {
|
|
195
|
+
to: [{ email }],
|
|
196
|
+
subject: "You're on the ContractSpec waitlist!",
|
|
197
|
+
text: waitlistText,
|
|
198
|
+
html: waitlistHtml,
|
|
199
|
+
context: "waitlist-welcome"
|
|
200
|
+
});
|
|
201
|
+
if (!userSend.success) {
|
|
202
|
+
return { success: false, text: WAITLIST_SEND_ERROR };
|
|
203
|
+
}
|
|
204
|
+
const teamNotificationText = `New waitlist signup from: ${email}`;
|
|
205
|
+
const teamNotificationHtml = `
|
|
206
|
+
<div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
|
|
207
|
+
<p style="margin: 0 0 8px;">New waitlist signup</p>
|
|
208
|
+
<p style="margin: 0;"><strong>Email:</strong> ${formatMultilineHtml(email)}</p>
|
|
209
|
+
</div>
|
|
210
|
+
`;
|
|
211
|
+
const teamSend = await sendEmail(configResult.config, {
|
|
212
|
+
to: [configResult.config.teamInbox],
|
|
213
|
+
subject: `New Waitlist Signup: ${email}`,
|
|
214
|
+
text: teamNotificationText,
|
|
215
|
+
html: teamNotificationHtml,
|
|
216
|
+
context: "waitlist-team-notification"
|
|
217
|
+
});
|
|
218
|
+
if (!teamSend.success) {
|
|
219
|
+
return { success: false, text: WAITLIST_SEND_ERROR };
|
|
220
|
+
}
|
|
221
|
+
return { success: true, text: "Successfully joined waitlist!" };
|
|
222
|
+
};
|
|
223
|
+
export {
|
|
224
|
+
joinWaitlist
|
|
225
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined")
|
|
5
|
+
return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// src/libs/pricing-examples.ts
|
|
10
|
+
var PRICING_EXAMPLES = {
|
|
11
|
+
free: {
|
|
12
|
+
regenerationsPerMonth: 200,
|
|
13
|
+
aiActionsPerMonth: 100,
|
|
14
|
+
projects: 1
|
|
15
|
+
},
|
|
16
|
+
builder: {
|
|
17
|
+
regenerationsPerMonthHint: "1,000–2,000+",
|
|
18
|
+
aiActionsPerMonthHint: "1,000+"
|
|
19
|
+
},
|
|
20
|
+
team: {
|
|
21
|
+
description: "Higher limits + cheaper per-regen at scale"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
PRICING_EXAMPLES
|
|
26
|
+
};
|