@contractspec/bundle.marketing 3.7.6 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +87 -87
- package/AGENTS.md +29 -21
- package/CHANGELOG.md +59 -0
- package/README.md +36 -49
- package/dist/browser/components/marketing/ChangelogPage.js +8 -8
- package/dist/browser/components/marketing/CofounderPage.js +167 -523
- package/dist/browser/components/marketing/ContactClient.js +200 -207
- package/dist/browser/components/marketing/ContributePage.js +211 -463
- package/dist/browser/components/marketing/DesignPartnerPage.js +165 -218
- package/dist/browser/components/marketing/LandingPage.js +464 -568
- package/dist/browser/components/marketing/PricingClient.js +213 -839
- package/dist/browser/components/marketing/ProductClientPage.js +265 -463
- package/dist/browser/components/marketing/index.js +2007 -3338
- package/dist/browser/components/marketing/pricing-thinking-modal.js +12 -12
- package/dist/browser/components/marketing/sections/AudienceSection.js +2 -2
- package/dist/browser/components/marketing/sections/CorePositioningSection.js +2 -2
- package/dist/browser/components/marketing/sections/CtaSection.js +3 -3
- package/dist/browser/components/marketing/sections/FearsSection.js +3 -3
- package/dist/browser/components/marketing/sections/HeroMarketingSection.js +6 -6
- package/dist/browser/components/marketing/sections/IconGridSection.js +2 -2
- package/dist/browser/components/marketing/sections/OutputsSection.js +2 -2
- package/dist/browser/components/marketing/sections/ProblemSection.js +2 -2
- package/dist/browser/components/marketing/sections/SolutionSection.js +2 -2
- package/dist/browser/components/marketing/sections/StepsSection.js +4 -4
- package/dist/browser/components/marketing/studio-signup-section.js +25 -41
- package/dist/browser/components/templates/TemplatesClientPage.js +2374 -3571
- package/dist/browser/components/templates/TemplatesPage.js +1 -1
- package/dist/browser/components/templates/TemplatesPreviewModal.js +27 -3
- package/dist/browser/components/templates/index.js +2412 -3609
- package/dist/browser/index.js +2415 -3612
- package/dist/browser/libs/email/client.js +1 -1
- package/dist/browser/libs/email/contact.js +1 -1
- package/dist/browser/libs/email/newsletter.js +1 -1
- package/dist/browser/libs/email/waitlist-application.js +1 -1
- package/dist/browser/libs/email/waitlist.js +1 -1
- package/dist/browser/registry/engine.js +2003 -3334
- package/dist/browser/registry/index.js +2003 -3334
- package/dist/browser/registry/registry-docs.js +2 -2
- package/dist/browser/registry/registry-landing.js +2007 -3338
- package/dist/browser/registry/registry.js +2003 -3334
- package/dist/browser/registry/utils.js +2003 -3334
- package/dist/components/marketing/ChangelogPage.js +8 -8
- package/dist/components/marketing/CofounderPage.js +167 -523
- package/dist/components/marketing/ContactClient.js +200 -207
- package/dist/components/marketing/ContributePage.d.ts +0 -2
- package/dist/components/marketing/ContributePage.js +211 -463
- package/dist/components/marketing/DesignPartnerPage.js +165 -218
- package/dist/components/marketing/LandingPage.js +464 -568
- package/dist/components/marketing/PricingClient.js +213 -839
- package/dist/components/marketing/ProductClientPage.js +265 -463
- package/dist/components/marketing/index.d.ts +5 -5
- package/dist/components/marketing/index.js +2007 -3338
- package/dist/components/marketing/pricing-thinking-modal.js +12 -12
- package/dist/components/marketing/sections/AudienceSection.js +2 -2
- package/dist/components/marketing/sections/CorePositioningSection.js +2 -2
- package/dist/components/marketing/sections/CtaSection.js +3 -3
- package/dist/components/marketing/sections/FearsSection.js +3 -3
- package/dist/components/marketing/sections/HeroMarketingSection.js +6 -6
- package/dist/components/marketing/sections/IconGridSection.d.ts +3 -3
- package/dist/components/marketing/sections/IconGridSection.js +2 -2
- package/dist/components/marketing/sections/OutputsSection.js +2 -2
- package/dist/components/marketing/sections/ProblemSection.js +2 -2
- package/dist/components/marketing/sections/SolutionSection.js +2 -2
- package/dist/components/marketing/sections/StepsSection.js +4 -4
- package/dist/components/marketing/studio-signup-section.js +25 -41
- package/dist/components/templates/TemplatesClientPage.js +2374 -3571
- package/dist/components/templates/TemplatesPage.js +1 -1
- package/dist/components/templates/TemplatesPreviewModal.js +27 -3
- package/dist/components/templates/index.js +2412 -3609
- package/dist/index.js +2415 -3612
- package/dist/libs/email/client.js +1 -1
- package/dist/libs/email/contact.js +1 -1
- package/dist/libs/email/newsletter.js +1 -1
- package/dist/libs/email/waitlist-application.js +1 -1
- package/dist/libs/email/waitlist.js +1 -1
- package/dist/node/components/marketing/ChangelogPage.js +8 -8
- package/dist/node/components/marketing/CofounderPage.js +167 -523
- package/dist/node/components/marketing/ContactClient.js +200 -207
- package/dist/node/components/marketing/ContributePage.js +211 -463
- package/dist/node/components/marketing/DesignPartnerPage.js +165 -218
- package/dist/node/components/marketing/LandingPage.js +464 -568
- package/dist/node/components/marketing/PricingClient.js +213 -839
- package/dist/node/components/marketing/ProductClientPage.js +265 -463
- package/dist/node/components/marketing/index.js +2007 -3338
- package/dist/node/components/marketing/pricing-thinking-modal.js +12 -12
- package/dist/node/components/marketing/sections/AudienceSection.js +2 -2
- package/dist/node/components/marketing/sections/CorePositioningSection.js +2 -2
- package/dist/node/components/marketing/sections/CtaSection.js +3 -3
- package/dist/node/components/marketing/sections/FearsSection.js +3 -3
- package/dist/node/components/marketing/sections/HeroMarketingSection.js +6 -6
- package/dist/node/components/marketing/sections/IconGridSection.js +2 -2
- package/dist/node/components/marketing/sections/OutputsSection.js +2 -2
- package/dist/node/components/marketing/sections/ProblemSection.js +2 -2
- package/dist/node/components/marketing/sections/SolutionSection.js +2 -2
- package/dist/node/components/marketing/sections/StepsSection.js +4 -4
- package/dist/node/components/marketing/studio-signup-section.js +25 -41
- package/dist/node/components/templates/TemplatesClientPage.js +2374 -3571
- package/dist/node/components/templates/TemplatesPage.js +1 -1
- package/dist/node/components/templates/TemplatesPreviewModal.js +27 -3
- package/dist/node/components/templates/index.js +2412 -3609
- package/dist/node/index.js +2415 -3612
- package/dist/node/libs/email/client.js +1 -1
- package/dist/node/libs/email/contact.js +1 -1
- package/dist/node/libs/email/newsletter.js +1 -1
- package/dist/node/libs/email/waitlist-application.js +1 -1
- package/dist/node/libs/email/waitlist.js +1 -1
- package/dist/node/registry/engine.js +2003 -3334
- package/dist/node/registry/index.js +2003 -3334
- package/dist/node/registry/registry-docs.js +2 -2
- package/dist/node/registry/registry-landing.js +2007 -3338
- package/dist/node/registry/registry.js +2003 -3334
- package/dist/node/registry/utils.js +2003 -3334
- package/dist/registry/engine.js +2003 -3334
- package/dist/registry/index.js +2003 -3334
- package/dist/registry/registry-docs.js +2 -2
- package/dist/registry/registry-landing.js +2007 -3338
- package/dist/registry/registry.js +2003 -3334
- package/dist/registry/utils.js +2003 -3334
- package/package.json +31 -29
- package/src/bundles/MarketingBundle.ts +273 -273
- package/src/components/marketing/ChangelogPage.tsx +72 -100
- package/src/components/marketing/CofounderPage.tsx +120 -384
- package/src/components/marketing/ContactClient.tsx +164 -154
- package/src/components/marketing/ContributePage.tsx +139 -313
- package/src/components/marketing/DesignPartnerPage.tsx +133 -171
- package/src/components/marketing/LandingPage.tsx +353 -25
- package/src/components/marketing/PricingClient.tsx +192 -437
- package/src/components/marketing/ProductClientPage.tsx +255 -377
- package/src/components/marketing/index.ts +5 -5
- package/src/components/marketing/pricing-thinking-modal.tsx +197 -197
- package/src/components/marketing/sections/AudienceSection.tsx +55 -56
- package/src/components/marketing/sections/CorePositioningSection.tsx +37 -37
- package/src/components/marketing/sections/CtaSection.tsx +49 -50
- package/src/components/marketing/sections/DevelopersSection.tsx +26 -27
- package/src/components/marketing/sections/FearsSection.tsx +36 -37
- package/src/components/marketing/sections/HeroMarketingSection.tsx +59 -59
- package/src/components/marketing/sections/IconGridSection.tsx +71 -71
- package/src/components/marketing/sections/OutputsSection.tsx +51 -52
- package/src/components/marketing/sections/ProblemSection.tsx +39 -40
- package/src/components/marketing/sections/SolutionSection.tsx +39 -40
- package/src/components/marketing/sections/StepsSection.tsx +47 -48
- package/src/components/marketing/studio-signup-section.tsx +39 -41
- package/src/components/templates/TemplatesClientPage.tsx +763 -685
- package/src/components/templates/TemplatesPage.tsx +110 -110
- package/src/components/templates/TemplatesPreviewModal.tsx +251 -198
- package/src/index.ts +4 -4
- package/src/libs/email/client.test.ts +81 -81
- package/src/libs/email/client.ts +111 -111
- package/src/libs/email/contact.ts +35 -35
- package/src/libs/email/newsletter.ts +46 -46
- package/src/libs/email/types.ts +29 -29
- package/src/libs/email/utils.ts +5 -5
- package/src/libs/email/waitlist-application.ts +72 -72
- package/src/libs/email/waitlist.ts +46 -46
- package/src/libs/pricing-examples.ts +12 -12
- package/src/registry/engine.ts +16 -16
- package/src/registry/factory.ts +57 -57
- package/src/registry/registry-docs.ts +656 -666
- package/src/registry/registry-landing.ts +94 -95
- package/src/registry/registry.ts +36 -37
- package/src/registry/types.ts +2 -2
- package/src/registry/utils.ts +56 -56
- package/tsconfig.json +11 -11
- package/tsdown.config.js +5 -5
|
@@ -1,105 +1,128 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import dynamic from 'next/dynamic';
|
|
3
|
+
import type { TemplateId } from '@contractspec/lib.example-shared-ui';
|
|
4
|
+
import { LoadingSpinner } from '@contractspec/lib.ui-kit-web/ui/atoms/LoadingSpinner';
|
|
6
5
|
import { Dialog, DialogContent } from '@contractspec/lib.ui-kit-web/ui/dialog';
|
|
7
6
|
import { ScrollArea } from '@contractspec/lib.ui-kit-web/ui/scroll-area';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import dynamic from 'next/dynamic';
|
|
8
|
+
import { useMemo } from 'react';
|
|
10
9
|
|
|
11
10
|
// Dynamically import template components with ssr: false
|
|
12
11
|
const TemplateShell = dynamic(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
() =>
|
|
13
|
+
import('@contractspec/lib.example-shared-ui').then(
|
|
14
|
+
(mod) => mod.TemplateShell
|
|
15
|
+
),
|
|
16
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
const TodosTaskList = dynamic(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
() =>
|
|
21
|
+
import(
|
|
22
|
+
'@contractspec/bundle.library/components/templates/todos/TaskList'
|
|
23
|
+
).then((mod) => mod.TaskList),
|
|
24
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
26
25
|
);
|
|
27
26
|
|
|
28
27
|
const MessagingWorkspace = dynamic(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
() =>
|
|
29
|
+
import(
|
|
30
|
+
'@contractspec/bundle.library/components/templates/messaging/MessagingWorkspace'
|
|
31
|
+
).then((mod) => mod.MessagingWorkspace),
|
|
32
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
34
33
|
);
|
|
35
34
|
|
|
36
35
|
const RecipesExperience = dynamic(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
() =>
|
|
37
|
+
import(
|
|
38
|
+
'@contractspec/bundle.library/components/templates/recipes/RecipeList'
|
|
39
|
+
).then((mod) => mod.RecipeList),
|
|
40
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
42
41
|
);
|
|
43
42
|
|
|
44
43
|
const SaasDashboard = dynamic(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
() =>
|
|
45
|
+
import('@contractspec/example.saas-boilerplate').then(
|
|
46
|
+
(mod) => mod.SaasDashboard
|
|
47
|
+
),
|
|
48
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
50
49
|
);
|
|
51
50
|
|
|
52
51
|
const CrmDashboard = dynamic(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
() =>
|
|
53
|
+
import('@contractspec/example.crm-pipeline').then(
|
|
54
|
+
(mod) => mod.CrmDashboard
|
|
55
|
+
),
|
|
56
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
const DataGridShowcase = dynamic(
|
|
60
|
+
() =>
|
|
61
|
+
import('@contractspec/example.data-grid-showcase/ui').then(
|
|
62
|
+
(mod) => mod.DataGridShowcase
|
|
63
|
+
),
|
|
64
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
const VisualizationShowcase = dynamic(
|
|
68
|
+
() =>
|
|
69
|
+
import('@contractspec/example.visualization-showcase/ui').then(
|
|
70
|
+
(mod) => mod.VisualizationShowcase
|
|
71
|
+
),
|
|
72
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
58
73
|
);
|
|
59
74
|
|
|
60
75
|
const AgentDashboard = dynamic(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
76
|
+
() =>
|
|
77
|
+
import('@contractspec/example.agent-console/ui').then(
|
|
78
|
+
(mod) => mod.AgentDashboard
|
|
79
|
+
),
|
|
80
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
66
81
|
);
|
|
67
82
|
|
|
68
83
|
const WorkflowDashboard = dynamic(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
84
|
+
() =>
|
|
85
|
+
import('@contractspec/example.workflow-system/ui').then(
|
|
86
|
+
(mod) => mod.WorkflowDashboard
|
|
87
|
+
),
|
|
88
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
74
89
|
);
|
|
75
90
|
|
|
76
91
|
const MarketplaceDashboard = dynamic(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
92
|
+
() =>
|
|
93
|
+
import('@contractspec/example.marketplace/ui').then(
|
|
94
|
+
(mod) => mod.MarketplaceDashboard
|
|
95
|
+
),
|
|
96
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
82
97
|
);
|
|
83
98
|
|
|
84
99
|
const IntegrationDashboard = dynamic(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
() =>
|
|
101
|
+
import('@contractspec/example.integration-hub/ui').then(
|
|
102
|
+
(mod) => mod.IntegrationDashboard
|
|
103
|
+
),
|
|
104
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
90
105
|
);
|
|
91
106
|
|
|
92
107
|
const AnalyticsDashboard = dynamic(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
108
|
+
() =>
|
|
109
|
+
import('@contractspec/example.analytics-dashboard').then(
|
|
110
|
+
(mod) => mod.AnalyticsDashboard
|
|
111
|
+
),
|
|
112
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
const AiChatAssistantDashboard = dynamic(
|
|
116
|
+
() =>
|
|
117
|
+
import('@contractspec/example.ai-chat-assistant').then(
|
|
118
|
+
(mod) => mod.AiChatAssistantDashboard
|
|
119
|
+
),
|
|
120
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
98
121
|
);
|
|
99
122
|
|
|
100
123
|
interface TemplatePreviewModalProps {
|
|
101
|
-
|
|
102
|
-
|
|
124
|
+
templateId: TemplateId | null;
|
|
125
|
+
onClose: () => void;
|
|
103
126
|
}
|
|
104
127
|
//
|
|
105
128
|
// return (
|
|
@@ -119,142 +142,172 @@ interface TemplatePreviewModalProps {
|
|
|
119
142
|
// };
|
|
120
143
|
|
|
121
144
|
export const TemplatePreviewModal = ({
|
|
122
|
-
|
|
123
|
-
|
|
145
|
+
templateId,
|
|
146
|
+
onClose,
|
|
124
147
|
}: TemplatePreviewModalProps) => {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
148
|
+
const previewComponent = useMemo(() => {
|
|
149
|
+
switch (templateId) {
|
|
150
|
+
case 'todos-app':
|
|
151
|
+
return (
|
|
152
|
+
<TemplateShell
|
|
153
|
+
title="Starter tasks"
|
|
154
|
+
description="Track work items with filters, priorities, and per-tenant data isolation."
|
|
155
|
+
showSaveAction={false}
|
|
156
|
+
>
|
|
157
|
+
<TodosTaskList />
|
|
158
|
+
</TemplateShell>
|
|
159
|
+
);
|
|
160
|
+
case 'messaging-app':
|
|
161
|
+
return (
|
|
162
|
+
<TemplateShell
|
|
163
|
+
title="Messaging workspace"
|
|
164
|
+
description="Realtime-ready messaging surface with optimistic delivery."
|
|
165
|
+
showSaveAction={false}
|
|
166
|
+
>
|
|
167
|
+
<MessagingWorkspace />
|
|
168
|
+
</TemplateShell>
|
|
169
|
+
);
|
|
170
|
+
case 'recipe-app-i18n':
|
|
171
|
+
return (
|
|
172
|
+
<TemplateShell
|
|
173
|
+
title="Ceremony recipes"
|
|
174
|
+
description="Switch locales and preview how rituals translate across teams."
|
|
175
|
+
showSaveAction={false}
|
|
176
|
+
>
|
|
177
|
+
<RecipesExperience />
|
|
178
|
+
</TemplateShell>
|
|
179
|
+
);
|
|
180
|
+
case 'saas-boilerplate':
|
|
181
|
+
return (
|
|
182
|
+
<TemplateShell
|
|
183
|
+
title="SaaS Boilerplate"
|
|
184
|
+
description="Multi-tenant organizations, projects, settings, and billing usage tracking."
|
|
185
|
+
showSaveAction={false}
|
|
186
|
+
>
|
|
187
|
+
<SaasDashboard />
|
|
188
|
+
</TemplateShell>
|
|
189
|
+
);
|
|
190
|
+
case 'crm-pipeline':
|
|
191
|
+
return (
|
|
192
|
+
<TemplateShell
|
|
193
|
+
title="CRM Pipeline"
|
|
194
|
+
description="Sales CRM with contacts, companies, deals, and pipeline stages."
|
|
195
|
+
showSaveAction={false}
|
|
196
|
+
>
|
|
197
|
+
<CrmDashboard />
|
|
198
|
+
</TemplateShell>
|
|
199
|
+
);
|
|
200
|
+
case 'data-grid-showcase':
|
|
201
|
+
return (
|
|
202
|
+
<TemplateShell
|
|
203
|
+
title="Data Grid Showcase"
|
|
204
|
+
description="Shared ContractSpec table primitives with client, server, and DataView-driven lanes."
|
|
205
|
+
showSaveAction={false}
|
|
206
|
+
>
|
|
207
|
+
<DataGridShowcase />
|
|
208
|
+
</TemplateShell>
|
|
209
|
+
);
|
|
210
|
+
case 'visualization-showcase':
|
|
211
|
+
return (
|
|
212
|
+
<TemplateShell
|
|
213
|
+
title="Visualization Showcase"
|
|
214
|
+
description="ContractSpec-owned chart primitives rendered through shared visualization contracts and design-system wrappers."
|
|
215
|
+
showSaveAction={false}
|
|
216
|
+
>
|
|
217
|
+
<VisualizationShowcase />
|
|
218
|
+
</TemplateShell>
|
|
219
|
+
);
|
|
220
|
+
case 'agent-console':
|
|
221
|
+
return (
|
|
222
|
+
<TemplateShell
|
|
223
|
+
title="AI Agent Console"
|
|
224
|
+
description="AI agent orchestration with tools, agents, runs, and execution logs."
|
|
225
|
+
showSaveAction={false}
|
|
226
|
+
>
|
|
227
|
+
<AgentDashboard />
|
|
228
|
+
</TemplateShell>
|
|
229
|
+
);
|
|
230
|
+
case 'ai-chat-assistant':
|
|
231
|
+
return (
|
|
232
|
+
<TemplateShell
|
|
233
|
+
title="AI Chat Assistant"
|
|
234
|
+
description="Focused assistant surface with reasoning, sources, suggestions, and MCP-aware tools."
|
|
235
|
+
showSaveAction={false}
|
|
236
|
+
>
|
|
237
|
+
<AiChatAssistantDashboard />
|
|
238
|
+
</TemplateShell>
|
|
239
|
+
);
|
|
240
|
+
case 'workflow-system':
|
|
241
|
+
return (
|
|
242
|
+
<TemplateShell
|
|
243
|
+
title="Workflow System"
|
|
244
|
+
description="Multi-step workflows with role-based approvals."
|
|
245
|
+
showSaveAction={false}
|
|
246
|
+
>
|
|
247
|
+
<WorkflowDashboard />
|
|
248
|
+
</TemplateShell>
|
|
249
|
+
);
|
|
250
|
+
case 'marketplace':
|
|
251
|
+
return (
|
|
252
|
+
<TemplateShell
|
|
253
|
+
title="Marketplace"
|
|
254
|
+
description="Two-sided marketplace with stores, products, and orders."
|
|
255
|
+
showSaveAction={false}
|
|
256
|
+
>
|
|
257
|
+
<MarketplaceDashboard />
|
|
258
|
+
</TemplateShell>
|
|
259
|
+
);
|
|
260
|
+
case 'integration-hub':
|
|
261
|
+
return (
|
|
262
|
+
<TemplateShell
|
|
263
|
+
title="Integration Hub"
|
|
264
|
+
description="Third-party integrations with sync and field mapping."
|
|
265
|
+
showSaveAction={false}
|
|
266
|
+
>
|
|
267
|
+
<IntegrationDashboard />
|
|
268
|
+
</TemplateShell>
|
|
269
|
+
);
|
|
270
|
+
case 'analytics-dashboard':
|
|
271
|
+
return (
|
|
272
|
+
<TemplateShell
|
|
273
|
+
title="Analytics Dashboard"
|
|
274
|
+
description="Custom dashboards with widgets and queries."
|
|
275
|
+
showSaveAction={false}
|
|
276
|
+
>
|
|
277
|
+
<AnalyticsDashboard />
|
|
278
|
+
</TemplateShell>
|
|
279
|
+
);
|
|
280
|
+
case null:
|
|
281
|
+
return null;
|
|
282
|
+
default:
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
}, [templateId]);
|
|
233
286
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
287
|
+
return (
|
|
288
|
+
<Dialog open={!!previewComponent} onOpenChange={onClose}>
|
|
289
|
+
{/*<DialogTrigger asChild>*/}
|
|
290
|
+
{/* <Button variant="outline">Fullscreen Dialog</Button>*/}
|
|
291
|
+
{/*</DialogTrigger>*/}
|
|
292
|
+
<DialogContent className="mb-8 flex h-[calc(100vh-2rem)] min-w-[calc(100vw-2rem)] flex-col justify-between gap-0 p-0">
|
|
293
|
+
<ScrollArea className="flex flex-col justify-between overflow-hidden">
|
|
294
|
+
{/*<DialogHeader className="contents space-y-0 text-left">*/}
|
|
295
|
+
{/* <DialogTitle className="px-6 pt-6">Product Information</DialogTitle>*/}
|
|
296
|
+
{/* <DialogDescription asChild>*/}
|
|
297
|
+
{/* </DialogDescription>*/}
|
|
298
|
+
{/*</DialogHeader>*/}
|
|
299
|
+
{previewComponent}
|
|
300
|
+
</ScrollArea>
|
|
301
|
+
{/*<DialogFooter className="px-6 pb-6 sm:justify-end">*/}
|
|
302
|
+
{/* <DialogClose asChild>*/}
|
|
303
|
+
{/* <Button variant="outline">*/}
|
|
304
|
+
{/* <ChevronLeftIcon />*/}
|
|
305
|
+
{/* Back*/}
|
|
306
|
+
{/* </Button>*/}
|
|
307
|
+
{/* </DialogClose>*/}
|
|
308
|
+
{/* <Button type="button">Read More</Button>*/}
|
|
309
|
+
{/*</DialogFooter>*/}
|
|
310
|
+
</DialogContent>
|
|
311
|
+
</Dialog>
|
|
312
|
+
);
|
|
260
313
|
};
|
package/src/index.ts
CHANGED
|
@@ -4,10 +4,10 @@ export * from './components/templates';
|
|
|
4
4
|
export { submitContactForm } from './libs/email/contact';
|
|
5
5
|
export { subscribeToNewsletter } from './libs/email/newsletter';
|
|
6
6
|
export type {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
SubmitContactFormResult,
|
|
8
|
+
SubmitNewsletterResult,
|
|
9
|
+
SubmitWaitlistApplicationResult,
|
|
10
|
+
SubmitWaitlistResult,
|
|
11
11
|
} from './libs/email/types';
|
|
12
12
|
export { joinWaitlist } from './libs/email/waitlist';
|
|
13
13
|
export { submitWaitlistApplication } from './libs/email/waitlist-application';
|