@contractspec/bundle.marketing 3.8.8 → 3.8.10
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 +73 -29
- package/CHANGELOG.md +63 -0
- package/dist/browser/components/templates/TemplateCard.js +83 -0
- package/dist/browser/components/templates/TemplateCommandDialog.js +110 -0
- package/dist/browser/components/templates/TemplatePreviewContent.js +96 -0
- package/dist/browser/components/templates/TemplatesBrowseControls.js +130 -0
- package/dist/browser/components/templates/TemplatesCatalogSection.js +307 -0
- package/dist/browser/components/templates/TemplatesClientPage.js +1020 -917
- package/dist/browser/components/templates/TemplatesHeroSection.js +87 -0
- package/dist/browser/components/templates/TemplatesNextStepsSection.js +126 -0
- package/dist/browser/components/templates/TemplatesOverlays.js +2874 -0
- package/dist/browser/components/templates/TemplatesPreviewModal.js +136 -126
- package/dist/browser/components/templates/index.js +1055 -952
- package/dist/browser/components/templates/template-catalog.js +83 -0
- package/dist/browser/components/templates/template-filters.js +99 -0
- package/dist/browser/components/templates/template-new.js +23 -0
- package/dist/browser/components/templates/template-preview.js +43 -0
- package/dist/browser/components/templates/template-source.js +19 -0
- package/dist/browser/components/templates/template-tag-visibility.js +40 -0
- package/dist/browser/components/templates/useTemplateBrowseState.js +191 -0
- package/dist/browser/index.js +1055 -952
- package/dist/components/templates/TemplateCard.d.ts +12 -0
- package/dist/components/templates/TemplateCard.js +78 -0
- package/dist/components/templates/TemplateCommandDialog.d.ts +6 -0
- package/dist/components/templates/TemplateCommandDialog.js +105 -0
- package/dist/components/templates/TemplatePreviewContent.d.ts +5 -0
- package/dist/components/templates/TemplatePreviewContent.js +91 -0
- package/dist/components/templates/TemplatesBrowseControls.d.ts +18 -0
- package/dist/components/templates/TemplatesBrowseControls.js +125 -0
- package/dist/components/templates/TemplatesCatalogSection.d.ts +17 -0
- package/dist/components/templates/TemplatesCatalogSection.js +302 -0
- package/dist/components/templates/TemplatesClientPage.js +1020 -917
- package/dist/components/templates/TemplatesHeroSection.d.ts +5 -0
- package/dist/components/templates/TemplatesHeroSection.js +82 -0
- package/dist/components/templates/TemplatesNextStepsSection.d.ts +1 -0
- package/dist/components/templates/TemplatesNextStepsSection.js +121 -0
- package/dist/components/templates/TemplatesOverlays.d.ts +10 -0
- package/dist/components/templates/TemplatesOverlays.js +2869 -0
- package/dist/components/templates/TemplatesPreviewModal.d.ts +3 -4
- package/dist/components/templates/TemplatesPreviewModal.js +136 -126
- package/dist/components/templates/index.js +1055 -952
- package/dist/components/templates/template-catalog.d.ts +28 -0
- package/dist/components/templates/template-catalog.js +78 -0
- package/dist/components/templates/template-catalog.test.d.ts +1 -0
- package/dist/components/templates/template-filters.d.ts +12 -0
- package/dist/components/templates/template-filters.js +94 -0
- package/dist/components/templates/template-new.d.ts +2 -0
- package/dist/components/templates/template-new.js +18 -0
- package/dist/components/templates/template-preview.d.ts +18 -0
- package/dist/components/templates/template-preview.js +38 -0
- package/dist/components/templates/template-source.d.ts +3 -0
- package/dist/components/templates/template-source.js +14 -0
- package/dist/components/templates/template-tag-visibility.d.ts +10 -0
- package/dist/components/templates/template-tag-visibility.js +35 -0
- package/dist/components/templates/useTemplateBrowseState.d.ts +22 -0
- package/dist/components/templates/useTemplateBrowseState.js +186 -0
- package/dist/index.js +1055 -952
- package/dist/node/components/templates/TemplateCard.js +78 -0
- package/dist/node/components/templates/TemplateCommandDialog.js +105 -0
- package/dist/node/components/templates/TemplatePreviewContent.js +91 -0
- package/dist/node/components/templates/TemplatesBrowseControls.js +125 -0
- package/dist/node/components/templates/TemplatesCatalogSection.js +302 -0
- package/dist/node/components/templates/TemplatesClientPage.js +1020 -917
- package/dist/node/components/templates/TemplatesHeroSection.js +82 -0
- package/dist/node/components/templates/TemplatesNextStepsSection.js +121 -0
- package/dist/node/components/templates/TemplatesOverlays.js +2869 -0
- package/dist/node/components/templates/TemplatesPreviewModal.js +136 -126
- package/dist/node/components/templates/index.js +1055 -952
- package/dist/node/components/templates/template-catalog.js +78 -0
- package/dist/node/components/templates/template-filters.js +94 -0
- package/dist/node/components/templates/template-new.js +18 -0
- package/dist/node/components/templates/template-preview.js +38 -0
- package/dist/node/components/templates/template-source.js +14 -0
- package/dist/node/components/templates/template-tag-visibility.js +35 -0
- package/dist/node/components/templates/useTemplateBrowseState.js +186 -0
- package/dist/node/index.js +1055 -952
- package/package.json +237 -26
- package/src/components/templates/TemplateCard.tsx +74 -0
- package/src/components/templates/TemplateCommandDialog.tsx +92 -0
- package/src/components/templates/TemplatePreviewContent.tsx +182 -0
- package/src/components/templates/TemplatesBrowseControls.tsx +144 -0
- package/src/components/templates/TemplatesCatalogSection.tsx +191 -0
- package/src/components/templates/TemplatesClientPage.tsx +85 -773
- package/src/components/templates/TemplatesHeroSection.tsx +41 -0
- package/src/components/templates/TemplatesNextStepsSection.tsx +80 -0
- package/src/components/templates/TemplatesOverlays.tsx +65 -0
- package/src/components/templates/TemplatesPreviewModal.tsx +19 -294
- package/src/components/templates/template-catalog.test.ts +162 -0
- package/src/components/templates/template-catalog.ts +140 -0
- package/src/components/templates/template-filters.ts +57 -0
- package/src/components/templates/template-new.ts +12 -0
- package/src/components/templates/template-preview.ts +57 -0
- package/src/components/templates/template-source.ts +13 -0
- package/src/components/templates/template-tag-visibility.ts +58 -0
- package/src/components/templates/useTemplateBrowseState.ts +101 -0
- package/.turbo/turbo-prebuild.log +0 -1
|
@@ -6,143 +6,153 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
// src/components/templates/
|
|
9
|
+
// src/components/templates/TemplatePreviewContent.tsx
|
|
10
|
+
import {
|
|
11
|
+
TemplateShell
|
|
12
|
+
} from "@contractspec/lib.example-shared-ui";
|
|
10
13
|
import { LoadingSpinner } from "@contractspec/lib.ui-kit-web/ui/atoms/LoadingSpinner";
|
|
11
|
-
import { Dialog, DialogContent } from "@contractspec/lib.ui-kit-web/ui/dialog";
|
|
12
|
-
import { ScrollArea } from "@contractspec/lib.ui-kit-web/ui/scroll-area";
|
|
13
14
|
import dynamic from "next/dynamic";
|
|
14
|
-
import { useMemo } from "react";
|
|
15
15
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
16
16
|
"use client";
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
var SaasDashboard = dynamic(() => import("@contractspec/example.saas-boilerplate").then((module) => module.SaasDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
18
|
+
var CrmDashboard = dynamic(() => import("@contractspec/example.crm-pipeline").then((module) => module.CrmDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
19
|
+
var DataGridShowcase = dynamic(() => import("@contractspec/example.data-grid-showcase/ui").then((module) => module.DataGridShowcase), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
20
|
+
var VisualizationShowcase = dynamic(() => import("@contractspec/example.visualization-showcase/ui").then((module) => module.VisualizationShowcase), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
21
|
+
var AgentDashboard = dynamic(() => import("@contractspec/example.agent-console/ui").then((module) => module.AgentDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
22
|
+
var AiChatAssistantDashboard = dynamic(() => import("@contractspec/example.ai-chat-assistant").then((module) => module.AiChatAssistantDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
23
|
+
var WorkflowDashboard = dynamic(() => import("@contractspec/example.workflow-system/ui").then((module) => module.WorkflowDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
24
|
+
var MarketplaceDashboard = dynamic(() => import("@contractspec/example.marketplace/ui").then((module) => module.MarketplaceDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
25
|
+
var IntegrationDashboard = dynamic(() => import("@contractspec/example.integration-hub/ui").then((module) => module.IntegrationDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
26
|
+
var AnalyticsDashboard = dynamic(() => import("@contractspec/example.analytics-dashboard").then((module) => module.AnalyticsDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
27
|
+
var PREVIEW_DEFINITIONS = {
|
|
28
|
+
"saas-boilerplate": {
|
|
29
|
+
title: "SaaS Boilerplate",
|
|
30
|
+
description: "Multi-tenant organizations, projects, settings, and billing usage tracking.",
|
|
31
|
+
component: SaasDashboard
|
|
32
|
+
},
|
|
33
|
+
"crm-pipeline": {
|
|
34
|
+
title: "CRM Pipeline",
|
|
35
|
+
description: "Sales CRM with contacts, companies, deals, and pipeline stages.",
|
|
36
|
+
component: CrmDashboard
|
|
37
|
+
},
|
|
38
|
+
"data-grid-showcase": {
|
|
39
|
+
title: "Data Grid Showcase",
|
|
40
|
+
description: "Shared ContractSpec table primitives with client, server, and DataView-driven lanes.",
|
|
41
|
+
component: DataGridShowcase
|
|
42
|
+
},
|
|
43
|
+
"visualization-showcase": {
|
|
44
|
+
title: "Visualization Showcase",
|
|
45
|
+
description: "ContractSpec-owned chart primitives rendered through shared visualization contracts and design-system wrappers.",
|
|
46
|
+
component: VisualizationShowcase
|
|
47
|
+
},
|
|
48
|
+
"agent-console": {
|
|
49
|
+
title: "AI Agent Console",
|
|
50
|
+
description: "AI agent orchestration with tools, agents, runs, and execution logs.",
|
|
51
|
+
component: AgentDashboard
|
|
52
|
+
},
|
|
53
|
+
"ai-chat-assistant": {
|
|
54
|
+
title: "AI Chat Assistant",
|
|
55
|
+
description: "Focused assistant surface with reasoning, sources, suggestions, and MCP-aware tools.",
|
|
56
|
+
component: AiChatAssistantDashboard
|
|
57
|
+
},
|
|
58
|
+
"workflow-system": {
|
|
59
|
+
title: "Workflow System",
|
|
60
|
+
description: "Multi-step workflows with role-based approvals.",
|
|
61
|
+
component: WorkflowDashboard
|
|
62
|
+
},
|
|
63
|
+
marketplace: {
|
|
64
|
+
title: "Marketplace",
|
|
65
|
+
description: "Two-sided marketplace with stores, products, orders, and payouts.",
|
|
66
|
+
component: MarketplaceDashboard
|
|
67
|
+
},
|
|
68
|
+
"integration-hub": {
|
|
69
|
+
title: "Integration Hub",
|
|
70
|
+
description: "Third-party integrations with connections, sync configs, and field mapping.",
|
|
71
|
+
component: IntegrationDashboard
|
|
72
|
+
},
|
|
73
|
+
"analytics-dashboard": {
|
|
74
|
+
title: "Analytics Dashboard",
|
|
75
|
+
description: "Custom dashboards with widgets and queries.",
|
|
76
|
+
component: AnalyticsDashboard
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
function TemplatePreviewContent({
|
|
80
|
+
templateId
|
|
81
|
+
}) {
|
|
82
|
+
const preview = PREVIEW_DEFINITIONS[templateId];
|
|
83
|
+
if (!preview) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
const PreviewComponent = preview.component;
|
|
87
|
+
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
88
|
+
title: preview.title,
|
|
89
|
+
description: preview.description,
|
|
90
|
+
showSaveAction: false,
|
|
91
|
+
children: /* @__PURE__ */ jsxDEV(PreviewComponent, {}, undefined, false, undefined, this)
|
|
92
|
+
}, undefined, false, undefined, this);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// src/components/templates/template-preview.ts
|
|
96
|
+
var INLINE_TEMPLATE_PREVIEW_IDS = [
|
|
97
|
+
"agent-console",
|
|
98
|
+
"ai-chat-assistant",
|
|
99
|
+
"analytics-dashboard",
|
|
100
|
+
"crm-pipeline",
|
|
101
|
+
"data-grid-showcase",
|
|
102
|
+
"integration-hub",
|
|
103
|
+
"marketplace",
|
|
104
|
+
"saas-boilerplate",
|
|
105
|
+
"visualization-showcase",
|
|
106
|
+
"workflow-system"
|
|
107
|
+
];
|
|
108
|
+
var INLINE_TEMPLATE_PREVIEW_SET = new Set(INLINE_TEMPLATE_PREVIEW_IDS);
|
|
109
|
+
function supportsInlineTemplatePreview(templateId) {
|
|
110
|
+
return INLINE_TEMPLATE_PREVIEW_SET.has(templateId);
|
|
111
|
+
}
|
|
112
|
+
function getLocalTemplatePreviewAction(template) {
|
|
113
|
+
if (supportsInlineTemplatePreview(template.id)) {
|
|
114
|
+
return { kind: "modal", templateId: template.id };
|
|
115
|
+
}
|
|
116
|
+
return { kind: "sandbox", href: template.previewUrl };
|
|
117
|
+
}
|
|
118
|
+
function getRegistryTemplatePreviewAction(template, localTemplate) {
|
|
119
|
+
if (!localTemplate) {
|
|
120
|
+
return { kind: "disabled" };
|
|
121
|
+
}
|
|
122
|
+
return getLocalTemplatePreviewAction(localTemplate);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/components/templates/TemplatesPreviewModal.tsx
|
|
126
|
+
import { Dialog, DialogContent } from "@contractspec/lib.ui-kit-web/ui/dialog";
|
|
127
|
+
import { ScrollArea } from "@contractspec/lib.ui-kit-web/ui/scroll-area";
|
|
128
|
+
import { TemplateRuntimeProvider } from "@contractspec/module.examples";
|
|
129
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
130
|
+
"use client";
|
|
131
|
+
function TemplatePreviewModal({
|
|
32
132
|
templateId,
|
|
33
133
|
onClose
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: /* @__PURE__ */ jsxDEV(TodosTaskList, {}, undefined, false, undefined, this)
|
|
43
|
-
}, undefined, false, undefined, this);
|
|
44
|
-
case "messaging-app":
|
|
45
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
46
|
-
title: "Messaging workspace",
|
|
47
|
-
description: "Realtime-ready messaging surface with optimistic delivery.",
|
|
48
|
-
showSaveAction: false,
|
|
49
|
-
children: /* @__PURE__ */ jsxDEV(MessagingWorkspace, {}, undefined, false, undefined, this)
|
|
50
|
-
}, undefined, false, undefined, this);
|
|
51
|
-
case "recipe-app-i18n":
|
|
52
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
53
|
-
title: "Ceremony recipes",
|
|
54
|
-
description: "Switch locales and preview how rituals translate across teams.",
|
|
55
|
-
showSaveAction: false,
|
|
56
|
-
children: /* @__PURE__ */ jsxDEV(RecipesExperience, {}, undefined, false, undefined, this)
|
|
57
|
-
}, undefined, false, undefined, this);
|
|
58
|
-
case "saas-boilerplate":
|
|
59
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
60
|
-
title: "SaaS Boilerplate",
|
|
61
|
-
description: "Multi-tenant organizations, projects, settings, and billing usage tracking.",
|
|
62
|
-
showSaveAction: false,
|
|
63
|
-
children: /* @__PURE__ */ jsxDEV(SaasDashboard, {}, undefined, false, undefined, this)
|
|
64
|
-
}, undefined, false, undefined, this);
|
|
65
|
-
case "crm-pipeline":
|
|
66
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
67
|
-
title: "CRM Pipeline",
|
|
68
|
-
description: "Sales CRM with contacts, companies, deals, and pipeline stages.",
|
|
69
|
-
showSaveAction: false,
|
|
70
|
-
children: /* @__PURE__ */ jsxDEV(CrmDashboard, {}, undefined, false, undefined, this)
|
|
71
|
-
}, undefined, false, undefined, this);
|
|
72
|
-
case "data-grid-showcase":
|
|
73
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
74
|
-
title: "Data Grid Showcase",
|
|
75
|
-
description: "Shared ContractSpec table primitives with client, server, and DataView-driven lanes.",
|
|
76
|
-
showSaveAction: false,
|
|
77
|
-
children: /* @__PURE__ */ jsxDEV(DataGridShowcase, {}, undefined, false, undefined, this)
|
|
78
|
-
}, undefined, false, undefined, this);
|
|
79
|
-
case "visualization-showcase":
|
|
80
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
81
|
-
title: "Visualization Showcase",
|
|
82
|
-
description: "ContractSpec-owned chart primitives rendered through shared visualization contracts and design-system wrappers.",
|
|
83
|
-
showSaveAction: false,
|
|
84
|
-
children: /* @__PURE__ */ jsxDEV(VisualizationShowcase, {}, undefined, false, undefined, this)
|
|
85
|
-
}, undefined, false, undefined, this);
|
|
86
|
-
case "agent-console":
|
|
87
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
88
|
-
title: "AI Agent Console",
|
|
89
|
-
description: "AI agent orchestration with tools, agents, runs, and execution logs.",
|
|
90
|
-
showSaveAction: false,
|
|
91
|
-
children: /* @__PURE__ */ jsxDEV(AgentDashboard, {}, undefined, false, undefined, this)
|
|
92
|
-
}, undefined, false, undefined, this);
|
|
93
|
-
case "ai-chat-assistant":
|
|
94
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
95
|
-
title: "AI Chat Assistant",
|
|
96
|
-
description: "Focused assistant surface with reasoning, sources, suggestions, and MCP-aware tools.",
|
|
97
|
-
showSaveAction: false,
|
|
98
|
-
children: /* @__PURE__ */ jsxDEV(AiChatAssistantDashboard, {}, undefined, false, undefined, this)
|
|
99
|
-
}, undefined, false, undefined, this);
|
|
100
|
-
case "workflow-system":
|
|
101
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
102
|
-
title: "Workflow System",
|
|
103
|
-
description: "Multi-step workflows with role-based approvals.",
|
|
104
|
-
showSaveAction: false,
|
|
105
|
-
children: /* @__PURE__ */ jsxDEV(WorkflowDashboard, {}, undefined, false, undefined, this)
|
|
106
|
-
}, undefined, false, undefined, this);
|
|
107
|
-
case "marketplace":
|
|
108
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
109
|
-
title: "Marketplace",
|
|
110
|
-
description: "Two-sided marketplace with stores, products, and orders.",
|
|
111
|
-
showSaveAction: false,
|
|
112
|
-
children: /* @__PURE__ */ jsxDEV(MarketplaceDashboard, {}, undefined, false, undefined, this)
|
|
113
|
-
}, undefined, false, undefined, this);
|
|
114
|
-
case "integration-hub":
|
|
115
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
116
|
-
title: "Integration Hub",
|
|
117
|
-
description: "Third-party integrations with sync and field mapping.",
|
|
118
|
-
showSaveAction: false,
|
|
119
|
-
children: /* @__PURE__ */ jsxDEV(IntegrationDashboard, {}, undefined, false, undefined, this)
|
|
120
|
-
}, undefined, false, undefined, this);
|
|
121
|
-
case "analytics-dashboard":
|
|
122
|
-
return /* @__PURE__ */ jsxDEV(TemplateShell, {
|
|
123
|
-
title: "Analytics Dashboard",
|
|
124
|
-
description: "Custom dashboards with widgets and queries.",
|
|
125
|
-
showSaveAction: false,
|
|
126
|
-
children: /* @__PURE__ */ jsxDEV(AnalyticsDashboard, {}, undefined, false, undefined, this)
|
|
127
|
-
}, undefined, false, undefined, this);
|
|
128
|
-
case null:
|
|
129
|
-
return null;
|
|
130
|
-
default:
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
}, [templateId]);
|
|
134
|
-
return /* @__PURE__ */ jsxDEV(Dialog, {
|
|
135
|
-
open: !!previewComponent,
|
|
136
|
-
onOpenChange: onClose,
|
|
137
|
-
children: /* @__PURE__ */ jsxDEV(DialogContent, {
|
|
134
|
+
}) {
|
|
135
|
+
if (!supportsInlineTemplatePreview(templateId)) {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
return /* @__PURE__ */ jsxDEV2(Dialog, {
|
|
139
|
+
open: true,
|
|
140
|
+
onOpenChange: (open) => !open && onClose(),
|
|
141
|
+
children: /* @__PURE__ */ jsxDEV2(DialogContent, {
|
|
138
142
|
className: "mb-8 flex h-[calc(100vh-2rem)] min-w-[calc(100vw-2rem)] flex-col justify-between gap-0 p-0",
|
|
139
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ jsxDEV2(ScrollArea, {
|
|
140
144
|
className: "flex flex-col justify-between overflow-hidden",
|
|
141
|
-
children:
|
|
145
|
+
children: /* @__PURE__ */ jsxDEV2(TemplateRuntimeProvider, {
|
|
146
|
+
templateId,
|
|
147
|
+
projectId: `marketing-preview-${templateId}`,
|
|
148
|
+
children: /* @__PURE__ */ jsxDEV2(TemplatePreviewContent, {
|
|
149
|
+
templateId
|
|
150
|
+
}, undefined, false, undefined, this)
|
|
151
|
+
}, templateId, false, undefined, this)
|
|
142
152
|
}, undefined, false, undefined, this)
|
|
143
153
|
}, undefined, false, undefined, this)
|
|
144
154
|
}, undefined, false, undefined, this);
|
|
145
|
-
}
|
|
155
|
+
}
|
|
146
156
|
export {
|
|
147
157
|
TemplatePreviewModal
|
|
148
158
|
};
|