@contractspec/bundle.marketing 1.12.0 → 1.14.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 +57 -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,172 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/components/templates/TemplatesPage.tsx
|
|
5
|
+
import { useMemo, useState } from "react";
|
|
6
|
+
import {
|
|
7
|
+
Button,
|
|
8
|
+
ButtonLink,
|
|
9
|
+
Input,
|
|
10
|
+
MarketingCard,
|
|
11
|
+
MarketingCardContent,
|
|
12
|
+
MarketingCardDescription,
|
|
13
|
+
MarketingCardHeader,
|
|
14
|
+
MarketingCardTitle,
|
|
15
|
+
MarketingSection
|
|
16
|
+
} from "@contractspec/lib.design-system";
|
|
17
|
+
import { HStack, VStack } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
18
|
+
import { listTemplates } from "@contractspec/module.examples";
|
|
19
|
+
import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
|
|
20
|
+
"use client";
|
|
21
|
+
function matchesQuery(t, query) {
|
|
22
|
+
const q = query.trim().toLowerCase();
|
|
23
|
+
if (!q)
|
|
24
|
+
return true;
|
|
25
|
+
const hay = `${t.id} ${t.name} ${t.description} ${t.tags.join(" ")}`.toLowerCase();
|
|
26
|
+
return hay.includes(q);
|
|
27
|
+
}
|
|
28
|
+
function TemplatesMarketingPage() {
|
|
29
|
+
const [query, setQuery] = useState("");
|
|
30
|
+
const templates = useMemo(() => listTemplates(), []);
|
|
31
|
+
const filtered = useMemo(() => templates.filter((t) => matchesQuery(t, query)), [templates, query]);
|
|
32
|
+
return /* @__PURE__ */ jsxDEV(Fragment, {
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsxDEV(MarketingSection, {
|
|
35
|
+
tone: "default",
|
|
36
|
+
children: /* @__PURE__ */ jsxDEV(VStack, {
|
|
37
|
+
as: "header",
|
|
38
|
+
gap: "lg",
|
|
39
|
+
align: "center",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsxDEV(VStack, {
|
|
42
|
+
gap: "sm",
|
|
43
|
+
align: "center",
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ jsxDEV(ButtonLink, {
|
|
46
|
+
href: "/docs",
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
children: "Docs"
|
|
49
|
+
}, undefined, false, undefined, this),
|
|
50
|
+
/* @__PURE__ */ jsxDEV(ButtonLink, {
|
|
51
|
+
href: "/sandbox",
|
|
52
|
+
variant: "ghost",
|
|
53
|
+
children: "Open Sandbox"
|
|
54
|
+
}, undefined, false, undefined, this)
|
|
55
|
+
]
|
|
56
|
+
}, undefined, true, undefined, this),
|
|
57
|
+
/* @__PURE__ */ jsxDEV(VStack, {
|
|
58
|
+
gap: "sm",
|
|
59
|
+
align: "center",
|
|
60
|
+
children: /* @__PURE__ */ jsxDEV(ButtonLink, {
|
|
61
|
+
href: "/templates",
|
|
62
|
+
variant: "default",
|
|
63
|
+
children: "Templates"
|
|
64
|
+
}, undefined, false, undefined, this)
|
|
65
|
+
}, undefined, false, undefined, this)
|
|
66
|
+
]
|
|
67
|
+
}, undefined, true, undefined, this)
|
|
68
|
+
}, undefined, false, undefined, this),
|
|
69
|
+
/* @__PURE__ */ jsxDEV(MarketingSection, {
|
|
70
|
+
tone: "muted",
|
|
71
|
+
children: /* @__PURE__ */ jsxDEV(VStack, {
|
|
72
|
+
gap: "lg",
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsxDEV(VStack, {
|
|
75
|
+
gap: "sm",
|
|
76
|
+
children: /* @__PURE__ */ jsxDEV(ButtonLink, {
|
|
77
|
+
href: "/templates",
|
|
78
|
+
variant: "ghost",
|
|
79
|
+
children: "Browse all examples"
|
|
80
|
+
}, undefined, false, undefined, this)
|
|
81
|
+
}, undefined, false, undefined, this),
|
|
82
|
+
/* @__PURE__ */ jsxDEV(HStack, {
|
|
83
|
+
gap: "md",
|
|
84
|
+
align: "center",
|
|
85
|
+
justify: "between",
|
|
86
|
+
wrap: "wrap",
|
|
87
|
+
children: /* @__PURE__ */ jsxDEV(Input, {
|
|
88
|
+
"aria-label": "Search templates and examples",
|
|
89
|
+
placeholder: "Search templates and examples…",
|
|
90
|
+
value: query,
|
|
91
|
+
onChange: (e) => setQuery(e.target.value)
|
|
92
|
+
}, undefined, false, undefined, this)
|
|
93
|
+
}, undefined, false, undefined, this)
|
|
94
|
+
]
|
|
95
|
+
}, undefined, true, undefined, this)
|
|
96
|
+
}, undefined, false, undefined, this),
|
|
97
|
+
/* @__PURE__ */ jsxDEV(MarketingSection, {
|
|
98
|
+
tone: "default",
|
|
99
|
+
children: /* @__PURE__ */ jsxDEV(VStack, {
|
|
100
|
+
gap: "lg",
|
|
101
|
+
children: /* @__PURE__ */ jsxDEV(HStack, {
|
|
102
|
+
gap: "md",
|
|
103
|
+
wrap: "wrap",
|
|
104
|
+
children: filtered.map((t) => /* @__PURE__ */ jsxDEV(MarketingCard, {
|
|
105
|
+
className: "w-full md:w-[calc(50%-0.75rem)] lg:w-[calc(33.333%-1rem)]",
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ jsxDEV(MarketingCardHeader, {
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsxDEV(MarketingCardTitle, {
|
|
110
|
+
children: [
|
|
111
|
+
t.icon,
|
|
112
|
+
" ",
|
|
113
|
+
t.name
|
|
114
|
+
]
|
|
115
|
+
}, undefined, true, undefined, this),
|
|
116
|
+
/* @__PURE__ */ jsxDEV(MarketingCardDescription, {
|
|
117
|
+
children: t.description
|
|
118
|
+
}, undefined, false, undefined, this)
|
|
119
|
+
]
|
|
120
|
+
}, undefined, true, undefined, this),
|
|
121
|
+
/* @__PURE__ */ jsxDEV(MarketingCardContent, {
|
|
122
|
+
children: /* @__PURE__ */ jsxDEV(VStack, {
|
|
123
|
+
gap: "md",
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsxDEV(HStack, {
|
|
126
|
+
gap: "sm",
|
|
127
|
+
wrap: "wrap",
|
|
128
|
+
children: t.tags.slice(0, 6).map((tag) => /* @__PURE__ */ jsxDEV(ButtonLink, {
|
|
129
|
+
href: `/templates?tag=${encodeURIComponent(tag)}`,
|
|
130
|
+
variant: "ghost",
|
|
131
|
+
children: tag
|
|
132
|
+
}, `${t.id}-${tag}`, false, undefined, this))
|
|
133
|
+
}, undefined, false, undefined, this),
|
|
134
|
+
/* @__PURE__ */ jsxDEV(HStack, {
|
|
135
|
+
gap: "sm",
|
|
136
|
+
justify: "between",
|
|
137
|
+
wrap: "wrap",
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ jsxDEV(ButtonLinkToSandbox, {
|
|
140
|
+
templateId: t.id
|
|
141
|
+
}, undefined, false, undefined, this),
|
|
142
|
+
/* @__PURE__ */ jsxDEV(Button, {
|
|
143
|
+
variant: "outline",
|
|
144
|
+
onClick: () => {
|
|
145
|
+
return;
|
|
146
|
+
},
|
|
147
|
+
disabled: true,
|
|
148
|
+
children: "Install to Studio (soon)"
|
|
149
|
+
}, undefined, false, undefined, this)
|
|
150
|
+
]
|
|
151
|
+
}, undefined, true, undefined, this)
|
|
152
|
+
]
|
|
153
|
+
}, undefined, true, undefined, this)
|
|
154
|
+
}, undefined, false, undefined, this)
|
|
155
|
+
]
|
|
156
|
+
}, t.id, true, undefined, this))
|
|
157
|
+
}, undefined, false, undefined, this)
|
|
158
|
+
}, undefined, false, undefined, this)
|
|
159
|
+
}, undefined, false, undefined, this)
|
|
160
|
+
]
|
|
161
|
+
}, undefined, true, undefined, this);
|
|
162
|
+
}
|
|
163
|
+
function ButtonLinkToSandbox({ templateId }) {
|
|
164
|
+
return /* @__PURE__ */ jsxDEV(ButtonLink, {
|
|
165
|
+
href: `/sandbox?template=${encodeURIComponent(templateId)}`,
|
|
166
|
+
variant: "default",
|
|
167
|
+
children: "Preview"
|
|
168
|
+
}, undefined, false, undefined, this);
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
TemplatesMarketingPage
|
|
172
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/components/templates/TemplatesPreviewModal.tsx
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import dynamic from "next/dynamic";
|
|
7
|
+
import { Dialog, DialogContent } from "@contractspec/lib.ui-kit-web/ui/dialog";
|
|
8
|
+
import { ScrollArea } from "@contractspec/lib.ui-kit-web/ui/scroll-area";
|
|
9
|
+
import { LoadingSpinner } from "@contractspec/lib.ui-kit-web/ui/atoms/LoadingSpinner";
|
|
10
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
11
|
+
"use client";
|
|
12
|
+
var TemplateShell = dynamic(() => import("@contractspec/lib.example-shared-ui").then((mod) => mod.TemplateShell), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
13
|
+
var TodosTaskList = dynamic(() => import("@contractspec/bundle.library/components/templates/todos/TaskList").then((mod) => mod.TaskList), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
14
|
+
var MessagingWorkspace = dynamic(() => import("@contractspec/bundle.library/components/templates/messaging/MessagingWorkspace").then((mod) => mod.MessagingWorkspace), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
15
|
+
var RecipesExperience = dynamic(() => import("@contractspec/bundle.library/components/templates/recipes/RecipeList").then((mod) => mod.RecipeList), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
16
|
+
var SaasDashboard = dynamic(() => import("@contractspec/example.saas-boilerplate").then((mod) => mod.SaasDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
17
|
+
var CrmDashboard = dynamic(() => import("@contractspec/example.crm-pipeline").then((mod) => mod.CrmDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
18
|
+
var AgentDashboard = dynamic(() => import("@contractspec/example.agent-console/ui").then((mod) => mod.AgentDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
19
|
+
var WorkflowDashboard = dynamic(() => import("@contractspec/example.workflow-system/ui").then((mod) => mod.WorkflowDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
20
|
+
var MarketplaceDashboard = dynamic(() => import("@contractspec/example.marketplace/ui").then((mod) => mod.MarketplaceDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
21
|
+
var IntegrationDashboard = dynamic(() => import("@contractspec/example.integration-hub/ui").then((mod) => mod.IntegrationDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
22
|
+
var AnalyticsDashboard = dynamic(() => import("@contractspec/example.analytics-dashboard").then((mod) => mod.AnalyticsDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
23
|
+
var TemplatePreviewModal = ({
|
|
24
|
+
templateId,
|
|
25
|
+
onClose
|
|
26
|
+
}) => {
|
|
27
|
+
const previewComponent = useMemo(() => {
|
|
28
|
+
switch (templateId) {
|
|
29
|
+
case "todos-app":
|
|
30
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
31
|
+
title: "Starter tasks",
|
|
32
|
+
description: "Track work items with filters, priorities, and per-tenant data isolation.",
|
|
33
|
+
showSaveAction: false,
|
|
34
|
+
children: /* @__PURE__ */ jsxDEV(TodosTaskList, {}, undefined, false, undefined, this)
|
|
35
|
+
}, undefined, false, undefined, this);
|
|
36
|
+
case "messaging-app":
|
|
37
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
38
|
+
title: "Messaging workspace",
|
|
39
|
+
description: "Realtime-ready messaging surface with optimistic delivery.",
|
|
40
|
+
showSaveAction: false,
|
|
41
|
+
children: /* @__PURE__ */ jsxDEV(MessagingWorkspace, {}, undefined, false, undefined, this)
|
|
42
|
+
}, undefined, false, undefined, this);
|
|
43
|
+
case "recipe-app-i18n":
|
|
44
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
45
|
+
title: "Ceremony recipes",
|
|
46
|
+
description: "Switch locales and preview how rituals translate across teams.",
|
|
47
|
+
showSaveAction: false,
|
|
48
|
+
children: /* @__PURE__ */ jsxDEV(RecipesExperience, {}, undefined, false, undefined, this)
|
|
49
|
+
}, undefined, false, undefined, this);
|
|
50
|
+
case "saas-boilerplate":
|
|
51
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
52
|
+
title: "SaaS Boilerplate",
|
|
53
|
+
description: "Multi-tenant organizations, projects, settings, and billing usage tracking.",
|
|
54
|
+
showSaveAction: false,
|
|
55
|
+
children: /* @__PURE__ */ jsxDEV(SaasDashboard, {}, undefined, false, undefined, this)
|
|
56
|
+
}, undefined, false, undefined, this);
|
|
57
|
+
case "crm-pipeline":
|
|
58
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
59
|
+
title: "CRM Pipeline",
|
|
60
|
+
description: "Sales CRM with contacts, companies, deals, and pipeline stages.",
|
|
61
|
+
showSaveAction: false,
|
|
62
|
+
children: /* @__PURE__ */ jsxDEV(CrmDashboard, {}, undefined, false, undefined, this)
|
|
63
|
+
}, undefined, false, undefined, this);
|
|
64
|
+
case "agent-console":
|
|
65
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
66
|
+
title: "AI Agent Console",
|
|
67
|
+
description: "AI agent orchestration with tools, agents, runs, and execution logs.",
|
|
68
|
+
showSaveAction: false,
|
|
69
|
+
children: /* @__PURE__ */ jsxDEV(AgentDashboard, {}, undefined, false, undefined, this)
|
|
70
|
+
}, undefined, false, undefined, this);
|
|
71
|
+
case "workflow-system":
|
|
72
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
73
|
+
title: "Workflow System",
|
|
74
|
+
description: "Multi-step workflows with role-based approvals.",
|
|
75
|
+
showSaveAction: false,
|
|
76
|
+
children: /* @__PURE__ */ jsxDEV(WorkflowDashboard, {}, undefined, false, undefined, this)
|
|
77
|
+
}, undefined, false, undefined, this);
|
|
78
|
+
case "marketplace":
|
|
79
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
80
|
+
title: "Marketplace",
|
|
81
|
+
description: "Two-sided marketplace with stores, products, and orders.",
|
|
82
|
+
showSaveAction: false,
|
|
83
|
+
children: /* @__PURE__ */ jsxDEV(MarketplaceDashboard, {}, undefined, false, undefined, this)
|
|
84
|
+
}, undefined, false, undefined, this);
|
|
85
|
+
case "integration-hub":
|
|
86
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
87
|
+
title: "Integration Hub",
|
|
88
|
+
description: "Third-party integrations with sync and field mapping.",
|
|
89
|
+
showSaveAction: false,
|
|
90
|
+
children: /* @__PURE__ */ jsxDEV(IntegrationDashboard, {}, undefined, false, undefined, this)
|
|
91
|
+
}, undefined, false, undefined, this);
|
|
92
|
+
case "analytics-dashboard":
|
|
93
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
94
|
+
title: "Analytics Dashboard",
|
|
95
|
+
description: "Custom dashboards with widgets and queries.",
|
|
96
|
+
showSaveAction: false,
|
|
97
|
+
children: /* @__PURE__ */ jsxDEV(AnalyticsDashboard, {}, undefined, false, undefined, this)
|
|
98
|
+
}, undefined, false, undefined, this);
|
|
99
|
+
case null:
|
|
100
|
+
return null;
|
|
101
|
+
default:
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
}, [templateId]);
|
|
105
|
+
return /* @__PURE__ */ jsxDEV(Dialog, {
|
|
106
|
+
open: !!previewComponent,
|
|
107
|
+
onOpenChange: onClose,
|
|
108
|
+
children: /* @__PURE__ */ jsxDEV(DialogContent, {
|
|
109
|
+
className: "mb-8 flex h-[calc(100vh-2rem)] min-w-[calc(100vw-2rem)] flex-col justify-between gap-0 p-0",
|
|
110
|
+
children: /* @__PURE__ */ jsxDEV(ScrollArea, {
|
|
111
|
+
className: "flex flex-col justify-between overflow-hidden",
|
|
112
|
+
children: previewComponent
|
|
113
|
+
}, undefined, false, undefined, this)
|
|
114
|
+
}, undefined, false, undefined, this)
|
|
115
|
+
}, undefined, false, undefined, this);
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
TemplatePreviewModal
|
|
119
|
+
};
|