@contractspec/bundle.marketing 3.7.7 → 3.8.4
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 +27 -27
- package/CHANGELOG.md +115 -0
- package/dist/browser/components/templates/TemplatesClientPage.js +59 -2
- package/dist/browser/components/templates/TemplatesPreviewModal.js +24 -0
- package/dist/browser/components/templates/index.js +59 -2
- package/dist/browser/index.js +62 -5
- package/dist/browser/registry/engine.js +3 -3
- package/dist/browser/registry/index.js +3 -3
- package/dist/browser/registry/registry.js +2 -2
- package/dist/browser/registry/utils.js +3 -3
- package/dist/components/templates/TemplatesClientPage.js +59 -2
- package/dist/components/templates/TemplatesPreviewModal.js +24 -0
- package/dist/components/templates/index.js +59 -2
- package/dist/index.js +62 -5
- package/dist/node/components/templates/TemplatesClientPage.js +59 -2
- package/dist/node/components/templates/TemplatesPreviewModal.js +24 -0
- package/dist/node/components/templates/index.js +59 -2
- package/dist/node/index.js +62 -5
- package/dist/node/registry/engine.js +3 -3
- package/dist/node/registry/index.js +3 -3
- package/dist/node/registry/registry.js +2 -2
- package/dist/node/registry/utils.js +3 -3
- package/dist/registry/engine.d.ts +1 -1
- package/dist/registry/engine.js +3 -3
- package/dist/registry/index.js +3 -3
- package/dist/registry/registry.js +2 -2
- package/dist/registry/utils.js +3 -3
- package/package.json +25 -23
- package/src/components/templates/TemplatesClientPage.tsx +38 -2
- package/src/components/templates/TemplatesPreviewModal.tsx +54 -0
- package/src/registry/engine.ts +1 -1
- package/src/registry/registry.ts +1 -1
|
@@ -2575,11 +2575,14 @@ var MessagingWorkspace = dynamic(() => import("@contractspec/bundle.library/comp
|
|
|
2575
2575
|
var RecipesExperience = dynamic(() => import("@contractspec/bundle.library/components/templates/recipes/RecipeList").then((mod) => mod.RecipeList), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2576
2576
|
var SaasDashboard = dynamic(() => import("@contractspec/example.saas-boilerplate").then((mod) => mod.SaasDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2577
2577
|
var CrmDashboard = dynamic(() => import("@contractspec/example.crm-pipeline").then((mod) => mod.CrmDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2578
|
+
var DataGridShowcase = dynamic(() => import("@contractspec/example.data-grid-showcase/ui").then((mod) => mod.DataGridShowcase), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2579
|
+
var VisualizationShowcase = dynamic(() => import("@contractspec/example.visualization-showcase/ui").then((mod) => mod.VisualizationShowcase), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2578
2580
|
var AgentDashboard = dynamic(() => import("@contractspec/example.agent-console/ui").then((mod) => mod.AgentDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2579
2581
|
var WorkflowDashboard = dynamic(() => import("@contractspec/example.workflow-system/ui").then((mod) => mod.WorkflowDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2580
2582
|
var MarketplaceDashboard = dynamic(() => import("@contractspec/example.marketplace/ui").then((mod) => mod.MarketplaceDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2581
2583
|
var IntegrationDashboard = dynamic(() => import("@contractspec/example.integration-hub/ui").then((mod) => mod.IntegrationDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2582
2584
|
var AnalyticsDashboard = dynamic(() => import("@contractspec/example.analytics-dashboard").then((mod) => mod.AnalyticsDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2585
|
+
var AiChatAssistantDashboard = dynamic(() => import("@contractspec/example.ai-chat-assistant").then((mod) => mod.AiChatAssistantDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2583
2586
|
var TemplatePreviewModal = ({
|
|
2584
2587
|
templateId,
|
|
2585
2588
|
onClose
|
|
@@ -2621,6 +2624,20 @@ var TemplatePreviewModal = ({
|
|
|
2621
2624
|
showSaveAction: false,
|
|
2622
2625
|
children: /* @__PURE__ */ jsxDEV11(CrmDashboard, {}, undefined, false, undefined, this)
|
|
2623
2626
|
}, undefined, false, undefined, this);
|
|
2627
|
+
case "data-grid-showcase":
|
|
2628
|
+
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2629
|
+
title: "Data Grid Showcase",
|
|
2630
|
+
description: "Shared ContractSpec table primitives with client, server, and DataView-driven lanes.",
|
|
2631
|
+
showSaveAction: false,
|
|
2632
|
+
children: /* @__PURE__ */ jsxDEV11(DataGridShowcase, {}, undefined, false, undefined, this)
|
|
2633
|
+
}, undefined, false, undefined, this);
|
|
2634
|
+
case "visualization-showcase":
|
|
2635
|
+
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2636
|
+
title: "Visualization Showcase",
|
|
2637
|
+
description: "ContractSpec-owned chart primitives rendered through shared visualization contracts and design-system wrappers.",
|
|
2638
|
+
showSaveAction: false,
|
|
2639
|
+
children: /* @__PURE__ */ jsxDEV11(VisualizationShowcase, {}, undefined, false, undefined, this)
|
|
2640
|
+
}, undefined, false, undefined, this);
|
|
2624
2641
|
case "agent-console":
|
|
2625
2642
|
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2626
2643
|
title: "AI Agent Console",
|
|
@@ -2628,6 +2645,13 @@ var TemplatePreviewModal = ({
|
|
|
2628
2645
|
showSaveAction: false,
|
|
2629
2646
|
children: /* @__PURE__ */ jsxDEV11(AgentDashboard, {}, undefined, false, undefined, this)
|
|
2630
2647
|
}, undefined, false, undefined, this);
|
|
2648
|
+
case "ai-chat-assistant":
|
|
2649
|
+
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2650
|
+
title: "AI Chat Assistant",
|
|
2651
|
+
description: "Focused assistant surface with reasoning, sources, suggestions, and MCP-aware tools.",
|
|
2652
|
+
showSaveAction: false,
|
|
2653
|
+
children: /* @__PURE__ */ jsxDEV11(AiChatAssistantDashboard, {}, undefined, false, undefined, this)
|
|
2654
|
+
}, undefined, false, undefined, this);
|
|
2631
2655
|
case "workflow-system":
|
|
2632
2656
|
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2633
2657
|
title: "Workflow System",
|
|
@@ -2735,6 +2759,28 @@ var templates = [
|
|
|
2735
2759
|
previewUrl: "/sandbox?template=crm-pipeline",
|
|
2736
2760
|
docsUrl: "/docs/templates/crm-pipeline"
|
|
2737
2761
|
},
|
|
2762
|
+
{
|
|
2763
|
+
id: "data-grid-showcase",
|
|
2764
|
+
templateId: "data-grid-showcase",
|
|
2765
|
+
title: "Data Grid Showcase",
|
|
2766
|
+
description: "Focused example for ContractSpec headless tables across client, server, and DataView-driven lanes.",
|
|
2767
|
+
tags: ["Ops", "Business"],
|
|
2768
|
+
capabilities: "Tables, Sorting, Pagination, Column Controls",
|
|
2769
|
+
isNew: true,
|
|
2770
|
+
previewUrl: "/sandbox?template=data-grid-showcase",
|
|
2771
|
+
docsUrl: "/docs/examples/data-grid-showcase"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
id: "visualization-showcase",
|
|
2775
|
+
templateId: "visualization-showcase",
|
|
2776
|
+
title: "Visualization Showcase",
|
|
2777
|
+
description: "Canonical ContractSpec example for chart primitives, shared visualization contracts, and opinionated dashboard blocks.",
|
|
2778
|
+
tags: ["Ops", "Visualization"],
|
|
2779
|
+
capabilities: "Metrics, Charts, Timelines, Comparisons",
|
|
2780
|
+
isNew: true,
|
|
2781
|
+
previewUrl: "/sandbox?template=visualization-showcase",
|
|
2782
|
+
docsUrl: "/docs/examples/visualization-showcase"
|
|
2783
|
+
},
|
|
2738
2784
|
{
|
|
2739
2785
|
id: "agent-console",
|
|
2740
2786
|
templateId: "agent-console",
|
|
@@ -2744,7 +2790,18 @@ var templates = [
|
|
|
2744
2790
|
capabilities: "Tools, Agents, Runs, Metrics",
|
|
2745
2791
|
isNew: true,
|
|
2746
2792
|
previewUrl: "/sandbox?template=agent-console",
|
|
2747
|
-
docsUrl: "/docs/
|
|
2793
|
+
docsUrl: "/docs/examples/agent-console"
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
id: "ai-chat-assistant",
|
|
2797
|
+
templateId: "ai-chat-assistant",
|
|
2798
|
+
title: "AI Chat Assistant",
|
|
2799
|
+
description: "Focused assistant template with reasoning, sources, suggestions, and MCP-aware tooling.",
|
|
2800
|
+
tags: ["AI", "Ops"],
|
|
2801
|
+
capabilities: "Chat UX, Sources, Suggestions, MCP",
|
|
2802
|
+
isNew: true,
|
|
2803
|
+
previewUrl: "/sandbox?template=ai-chat-assistant",
|
|
2804
|
+
docsUrl: "/docs/examples/ai-chat-assistant"
|
|
2748
2805
|
},
|
|
2749
2806
|
{
|
|
2750
2807
|
id: "workflow-system",
|
|
@@ -2755,7 +2812,7 @@ var templates = [
|
|
|
2755
2812
|
capabilities: "Workflows, Approvals, State Machine",
|
|
2756
2813
|
isNew: true,
|
|
2757
2814
|
previewUrl: "/sandbox?template=workflow-system",
|
|
2758
|
-
docsUrl: "/docs/
|
|
2815
|
+
docsUrl: "/docs/examples/workflow-system"
|
|
2759
2816
|
},
|
|
2760
2817
|
{
|
|
2761
2818
|
id: "marketplace",
|
package/dist/node/index.js
CHANGED
|
@@ -2575,11 +2575,14 @@ var MessagingWorkspace = dynamic(() => import("@contractspec/bundle.library/comp
|
|
|
2575
2575
|
var RecipesExperience = dynamic(() => import("@contractspec/bundle.library/components/templates/recipes/RecipeList").then((mod) => mod.RecipeList), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2576
2576
|
var SaasDashboard = dynamic(() => import("@contractspec/example.saas-boilerplate").then((mod) => mod.SaasDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2577
2577
|
var CrmDashboard = dynamic(() => import("@contractspec/example.crm-pipeline").then((mod) => mod.CrmDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2578
|
+
var DataGridShowcase = dynamic(() => import("@contractspec/example.data-grid-showcase/ui").then((mod) => mod.DataGridShowcase), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2579
|
+
var VisualizationShowcase = dynamic(() => import("@contractspec/example.visualization-showcase/ui").then((mod) => mod.VisualizationShowcase), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2578
2580
|
var AgentDashboard = dynamic(() => import("@contractspec/example.agent-console/ui").then((mod) => mod.AgentDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2579
2581
|
var WorkflowDashboard = dynamic(() => import("@contractspec/example.workflow-system/ui").then((mod) => mod.WorkflowDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2580
2582
|
var MarketplaceDashboard = dynamic(() => import("@contractspec/example.marketplace/ui").then((mod) => mod.MarketplaceDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2581
2583
|
var IntegrationDashboard = dynamic(() => import("@contractspec/example.integration-hub/ui").then((mod) => mod.IntegrationDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2582
2584
|
var AnalyticsDashboard = dynamic(() => import("@contractspec/example.analytics-dashboard").then((mod) => mod.AnalyticsDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2585
|
+
var AiChatAssistantDashboard = dynamic(() => import("@contractspec/example.ai-chat-assistant").then((mod) => mod.AiChatAssistantDashboard), { ssr: false, loading: () => /* @__PURE__ */ jsxDEV11(LoadingSpinner, {}, undefined, false, undefined, this) });
|
|
2583
2586
|
var TemplatePreviewModal = ({
|
|
2584
2587
|
templateId,
|
|
2585
2588
|
onClose
|
|
@@ -2621,6 +2624,20 @@ var TemplatePreviewModal = ({
|
|
|
2621
2624
|
showSaveAction: false,
|
|
2622
2625
|
children: /* @__PURE__ */ jsxDEV11(CrmDashboard, {}, undefined, false, undefined, this)
|
|
2623
2626
|
}, undefined, false, undefined, this);
|
|
2627
|
+
case "data-grid-showcase":
|
|
2628
|
+
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2629
|
+
title: "Data Grid Showcase",
|
|
2630
|
+
description: "Shared ContractSpec table primitives with client, server, and DataView-driven lanes.",
|
|
2631
|
+
showSaveAction: false,
|
|
2632
|
+
children: /* @__PURE__ */ jsxDEV11(DataGridShowcase, {}, undefined, false, undefined, this)
|
|
2633
|
+
}, undefined, false, undefined, this);
|
|
2634
|
+
case "visualization-showcase":
|
|
2635
|
+
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2636
|
+
title: "Visualization Showcase",
|
|
2637
|
+
description: "ContractSpec-owned chart primitives rendered through shared visualization contracts and design-system wrappers.",
|
|
2638
|
+
showSaveAction: false,
|
|
2639
|
+
children: /* @__PURE__ */ jsxDEV11(VisualizationShowcase, {}, undefined, false, undefined, this)
|
|
2640
|
+
}, undefined, false, undefined, this);
|
|
2624
2641
|
case "agent-console":
|
|
2625
2642
|
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2626
2643
|
title: "AI Agent Console",
|
|
@@ -2628,6 +2645,13 @@ var TemplatePreviewModal = ({
|
|
|
2628
2645
|
showSaveAction: false,
|
|
2629
2646
|
children: /* @__PURE__ */ jsxDEV11(AgentDashboard, {}, undefined, false, undefined, this)
|
|
2630
2647
|
}, undefined, false, undefined, this);
|
|
2648
|
+
case "ai-chat-assistant":
|
|
2649
|
+
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2650
|
+
title: "AI Chat Assistant",
|
|
2651
|
+
description: "Focused assistant surface with reasoning, sources, suggestions, and MCP-aware tools.",
|
|
2652
|
+
showSaveAction: false,
|
|
2653
|
+
children: /* @__PURE__ */ jsxDEV11(AiChatAssistantDashboard, {}, undefined, false, undefined, this)
|
|
2654
|
+
}, undefined, false, undefined, this);
|
|
2631
2655
|
case "workflow-system":
|
|
2632
2656
|
return /* @__PURE__ */ jsxDEV11(TemplateShell, {
|
|
2633
2657
|
title: "Workflow System",
|
|
@@ -2735,6 +2759,28 @@ var templates = [
|
|
|
2735
2759
|
previewUrl: "/sandbox?template=crm-pipeline",
|
|
2736
2760
|
docsUrl: "/docs/templates/crm-pipeline"
|
|
2737
2761
|
},
|
|
2762
|
+
{
|
|
2763
|
+
id: "data-grid-showcase",
|
|
2764
|
+
templateId: "data-grid-showcase",
|
|
2765
|
+
title: "Data Grid Showcase",
|
|
2766
|
+
description: "Focused example for ContractSpec headless tables across client, server, and DataView-driven lanes.",
|
|
2767
|
+
tags: ["Ops", "Business"],
|
|
2768
|
+
capabilities: "Tables, Sorting, Pagination, Column Controls",
|
|
2769
|
+
isNew: true,
|
|
2770
|
+
previewUrl: "/sandbox?template=data-grid-showcase",
|
|
2771
|
+
docsUrl: "/docs/examples/data-grid-showcase"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
id: "visualization-showcase",
|
|
2775
|
+
templateId: "visualization-showcase",
|
|
2776
|
+
title: "Visualization Showcase",
|
|
2777
|
+
description: "Canonical ContractSpec example for chart primitives, shared visualization contracts, and opinionated dashboard blocks.",
|
|
2778
|
+
tags: ["Ops", "Visualization"],
|
|
2779
|
+
capabilities: "Metrics, Charts, Timelines, Comparisons",
|
|
2780
|
+
isNew: true,
|
|
2781
|
+
previewUrl: "/sandbox?template=visualization-showcase",
|
|
2782
|
+
docsUrl: "/docs/examples/visualization-showcase"
|
|
2783
|
+
},
|
|
2738
2784
|
{
|
|
2739
2785
|
id: "agent-console",
|
|
2740
2786
|
templateId: "agent-console",
|
|
@@ -2744,7 +2790,18 @@ var templates = [
|
|
|
2744
2790
|
capabilities: "Tools, Agents, Runs, Metrics",
|
|
2745
2791
|
isNew: true,
|
|
2746
2792
|
previewUrl: "/sandbox?template=agent-console",
|
|
2747
|
-
docsUrl: "/docs/
|
|
2793
|
+
docsUrl: "/docs/examples/agent-console"
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
id: "ai-chat-assistant",
|
|
2797
|
+
templateId: "ai-chat-assistant",
|
|
2798
|
+
title: "AI Chat Assistant",
|
|
2799
|
+
description: "Focused assistant template with reasoning, sources, suggestions, and MCP-aware tooling.",
|
|
2800
|
+
tags: ["AI", "Ops"],
|
|
2801
|
+
capabilities: "Chat UX, Sources, Suggestions, MCP",
|
|
2802
|
+
isNew: true,
|
|
2803
|
+
previewUrl: "/sandbox?template=ai-chat-assistant",
|
|
2804
|
+
docsUrl: "/docs/examples/ai-chat-assistant"
|
|
2748
2805
|
},
|
|
2749
2806
|
{
|
|
2750
2807
|
id: "workflow-system",
|
|
@@ -2755,7 +2812,7 @@ var templates = [
|
|
|
2755
2812
|
capabilities: "Workflows, Approvals, State Machine",
|
|
2756
2813
|
isNew: true,
|
|
2757
2814
|
previewUrl: "/sandbox?template=workflow-system",
|
|
2758
|
-
docsUrl: "/docs/
|
|
2815
|
+
docsUrl: "/docs/examples/workflow-system"
|
|
2759
2816
|
},
|
|
2760
2817
|
{
|
|
2761
2818
|
id: "marketplace",
|
|
@@ -4433,9 +4490,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
4433
4490
|
import {
|
|
4434
4491
|
docBlocksToPresentationRoutes,
|
|
4435
4492
|
listRegisteredDocBlocks,
|
|
4436
|
-
metaDocs
|
|
4437
|
-
techContractsDocs
|
|
4493
|
+
metaDocs
|
|
4438
4494
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
4495
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
4439
4496
|
var componentMap = {
|
|
4440
4497
|
...landingComponentMap,
|
|
4441
4498
|
...docsComponentMap
|
|
@@ -4476,7 +4533,7 @@ import {
|
|
|
4476
4533
|
registerBasicValidation,
|
|
4477
4534
|
registerDefaultReactRenderer,
|
|
4478
4535
|
registerReactToMarkdownRenderer
|
|
4479
|
-
} from "@contractspec/lib.contracts-
|
|
4536
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
4480
4537
|
function createPresentationEngine(customComponentMap) {
|
|
4481
4538
|
const engine = createDefaultTransformEngine();
|
|
4482
4539
|
registerDefaultReactRenderer(engine);
|
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -3019,7 +3019,7 @@ import {
|
|
|
3019
3019
|
registerBasicValidation,
|
|
3020
3020
|
registerDefaultReactRenderer,
|
|
3021
3021
|
registerReactToMarkdownRenderer
|
|
3022
|
-
} from "@contractspec/lib.contracts-
|
|
3022
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
3023
3023
|
function createPresentationEngine(customComponentMap) {
|
|
3024
3024
|
const engine = createDefaultTransformEngine();
|
|
3025
3025
|
registerDefaultReactRenderer(engine);
|
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -3019,7 +3019,7 @@ import {
|
|
|
3019
3019
|
registerBasicValidation,
|
|
3020
3020
|
registerDefaultReactRenderer,
|
|
3021
3021
|
registerReactToMarkdownRenderer
|
|
3022
|
-
} from "@contractspec/lib.contracts-
|
|
3022
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
3023
3023
|
function createPresentationEngine(customComponentMap) {
|
|
3024
3024
|
const engine = createDefaultTransformEngine();
|
|
3025
3025
|
registerDefaultReactRenderer(engine);
|
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -3019,7 +3019,7 @@ import {
|
|
|
3019
3019
|
registerBasicValidation,
|
|
3020
3020
|
registerDefaultReactRenderer,
|
|
3021
3021
|
registerReactToMarkdownRenderer
|
|
3022
|
-
} from "@contractspec/lib.contracts-
|
|
3022
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
3023
3023
|
function createPresentationEngine(customComponentMap) {
|
|
3024
3024
|
const engine = createDefaultTransformEngine();
|
|
3025
3025
|
registerDefaultReactRenderer(engine);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TransformEngine } from '@contractspec/lib.contracts-
|
|
1
|
+
import { type TransformEngine } from '@contractspec/lib.contracts-runtime-client-react/transform-engine';
|
|
2
2
|
import type { ComponentMap } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Create and configure the TransformEngine for web-landing presentations.
|
package/dist/registry/engine.js
CHANGED
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -3019,7 +3019,7 @@ import {
|
|
|
3019
3019
|
registerBasicValidation,
|
|
3020
3020
|
registerDefaultReactRenderer,
|
|
3021
3021
|
registerReactToMarkdownRenderer
|
|
3022
|
-
} from "@contractspec/lib.contracts-
|
|
3022
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
3023
3023
|
function createPresentationEngine(customComponentMap) {
|
|
3024
3024
|
const engine = createDefaultTransformEngine();
|
|
3025
3025
|
registerDefaultReactRenderer(engine);
|
package/dist/registry/index.js
CHANGED
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -3019,7 +3019,7 @@ import {
|
|
|
3019
3019
|
registerBasicValidation,
|
|
3020
3020
|
registerDefaultReactRenderer,
|
|
3021
3021
|
registerReactToMarkdownRenderer
|
|
3022
|
-
} from "@contractspec/lib.contracts-
|
|
3022
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
3023
3023
|
function createPresentationEngine(customComponentMap) {
|
|
3024
3024
|
const engine = createDefaultTransformEngine();
|
|
3025
3025
|
registerDefaultReactRenderer(engine);
|
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
package/dist/registry/utils.js
CHANGED
|
@@ -2976,9 +2976,9 @@ import { techContractsDocBlocks } from "@contractspec/bundle.library/components/
|
|
|
2976
2976
|
import {
|
|
2977
2977
|
docBlocksToPresentationRoutes,
|
|
2978
2978
|
listRegisteredDocBlocks,
|
|
2979
|
-
metaDocs
|
|
2980
|
-
techContractsDocs
|
|
2979
|
+
metaDocs
|
|
2981
2980
|
} from "@contractspec/lib.contracts-spec/docs";
|
|
2981
|
+
import { techContractsDocs } from "@contractspec/lib.contracts-spec/presentations";
|
|
2982
2982
|
var componentMap = {
|
|
2983
2983
|
...landingComponentMap,
|
|
2984
2984
|
...docsComponentMap
|
|
@@ -3019,7 +3019,7 @@ import {
|
|
|
3019
3019
|
registerBasicValidation,
|
|
3020
3020
|
registerDefaultReactRenderer,
|
|
3021
3021
|
registerReactToMarkdownRenderer
|
|
3022
|
-
} from "@contractspec/lib.contracts-
|
|
3022
|
+
} from "@contractspec/lib.contracts-runtime-client-react/transform-engine";
|
|
3023
3023
|
function createPresentationEngine(customComponentMap) {
|
|
3024
3024
|
const engine = createDefaultTransformEngine();
|
|
3025
3025
|
registerDefaultReactRenderer(engine);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/bundle.marketing",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf dist",
|
|
@@ -340,26 +340,28 @@
|
|
|
340
340
|
},
|
|
341
341
|
"types": "./dist/index.d.ts",
|
|
342
342
|
"dependencies": {
|
|
343
|
-
"@contractspec/bundle.library": "3.
|
|
344
|
-
"@contractspec/lib.surface-runtime": "0.5.
|
|
345
|
-
"@contractspec/example.agent-console": "3.
|
|
346
|
-
"@contractspec/example.analytics-dashboard": "3.
|
|
347
|
-
"@contractspec/example.crm-pipeline": "3.7.
|
|
348
|
-
"@contractspec/example.
|
|
349
|
-
"@contractspec/example.
|
|
350
|
-
"@contractspec/example.
|
|
351
|
-
"@contractspec/example.
|
|
352
|
-
"@contractspec/
|
|
353
|
-
"@contractspec/
|
|
354
|
-
"@contractspec/lib.
|
|
355
|
-
"@contractspec/lib.
|
|
356
|
-
"@contractspec/lib.
|
|
357
|
-
"@contractspec/lib.
|
|
358
|
-
"@contractspec/lib.
|
|
359
|
-
"@contractspec/lib.
|
|
360
|
-
"@contractspec/lib.
|
|
361
|
-
"@contractspec/lib.ui-
|
|
362
|
-
"@contractspec/
|
|
343
|
+
"@contractspec/bundle.library": "3.8.4",
|
|
344
|
+
"@contractspec/lib.surface-runtime": "0.5.12",
|
|
345
|
+
"@contractspec/example.agent-console": "3.8.4",
|
|
346
|
+
"@contractspec/example.analytics-dashboard": "3.9.4",
|
|
347
|
+
"@contractspec/example.crm-pipeline": "3.7.12",
|
|
348
|
+
"@contractspec/example.data-grid-showcase": "3.8.4",
|
|
349
|
+
"@contractspec/example.integration-hub": "3.8.4",
|
|
350
|
+
"@contractspec/example.marketplace": "3.8.4",
|
|
351
|
+
"@contractspec/example.saas-boilerplate": "3.8.4",
|
|
352
|
+
"@contractspec/example.visualization-showcase": "3.9.4",
|
|
353
|
+
"@contractspec/example.workflow-system": "3.8.4",
|
|
354
|
+
"@contractspec/lib.contracts-spec": "5.0.0",
|
|
355
|
+
"@contractspec/lib.contracts-runtime-client-react": "3.8.0",
|
|
356
|
+
"@contractspec/lib.design-system": "3.8.5",
|
|
357
|
+
"@contractspec/lib.email": "3.7.9",
|
|
358
|
+
"@contractspec/lib.example-shared-ui": "6.0.12",
|
|
359
|
+
"@contractspec/lib.logger": "3.7.9",
|
|
360
|
+
"@contractspec/lib.runtime-sandbox": "2.7.10",
|
|
361
|
+
"@contractspec/lib.ui-kit-core": "3.7.9",
|
|
362
|
+
"@contractspec/lib.ui-kit-web": "3.9.4",
|
|
363
|
+
"@contractspec/lib.ui-link": "3.7.9",
|
|
364
|
+
"@contractspec/module.examples": "3.8.4",
|
|
363
365
|
"@electric-sql/pglite": "^0.4.1",
|
|
364
366
|
"@hookform/resolvers": "^5.2.2",
|
|
365
367
|
"@scaleway/sdk": "^3.4.1",
|
|
@@ -374,9 +376,9 @@
|
|
|
374
376
|
},
|
|
375
377
|
"devDependencies": {
|
|
376
378
|
"@types/react": "~19.2.14",
|
|
377
|
-
"@contractspec/tool.typescript": "3.7.
|
|
379
|
+
"@contractspec/tool.typescript": "3.7.9",
|
|
378
380
|
"typescript": "^5.9.3",
|
|
379
|
-
"@contractspec/tool.bun": "3.7.
|
|
381
|
+
"@contractspec/tool.bun": "3.7.9"
|
|
380
382
|
},
|
|
381
383
|
"publishConfig": {
|
|
382
384
|
"access": "public",
|
|
@@ -70,6 +70,30 @@ const templates = [
|
|
|
70
70
|
previewUrl: '/sandbox?template=crm-pipeline',
|
|
71
71
|
docsUrl: '/docs/templates/crm-pipeline',
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
id: 'data-grid-showcase',
|
|
75
|
+
templateId: 'data-grid-showcase' as TemplateId,
|
|
76
|
+
title: 'Data Grid Showcase',
|
|
77
|
+
description:
|
|
78
|
+
'Focused example for ContractSpec headless tables across client, server, and DataView-driven lanes.',
|
|
79
|
+
tags: ['Ops', 'Business'],
|
|
80
|
+
capabilities: 'Tables, Sorting, Pagination, Column Controls',
|
|
81
|
+
isNew: true,
|
|
82
|
+
previewUrl: '/sandbox?template=data-grid-showcase',
|
|
83
|
+
docsUrl: '/docs/examples/data-grid-showcase',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 'visualization-showcase',
|
|
87
|
+
templateId: 'visualization-showcase' as TemplateId,
|
|
88
|
+
title: 'Visualization Showcase',
|
|
89
|
+
description:
|
|
90
|
+
'Canonical ContractSpec example for chart primitives, shared visualization contracts, and opinionated dashboard blocks.',
|
|
91
|
+
tags: ['Ops', 'Visualization'],
|
|
92
|
+
capabilities: 'Metrics, Charts, Timelines, Comparisons',
|
|
93
|
+
isNew: true,
|
|
94
|
+
previewUrl: '/sandbox?template=visualization-showcase',
|
|
95
|
+
docsUrl: '/docs/examples/visualization-showcase',
|
|
96
|
+
},
|
|
73
97
|
{
|
|
74
98
|
id: 'agent-console',
|
|
75
99
|
templateId: 'agent-console' as TemplateId,
|
|
@@ -80,7 +104,19 @@ const templates = [
|
|
|
80
104
|
capabilities: 'Tools, Agents, Runs, Metrics',
|
|
81
105
|
isNew: true,
|
|
82
106
|
previewUrl: '/sandbox?template=agent-console',
|
|
83
|
-
docsUrl: '/docs/
|
|
107
|
+
docsUrl: '/docs/examples/agent-console',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 'ai-chat-assistant',
|
|
111
|
+
templateId: 'ai-chat-assistant' as TemplateId,
|
|
112
|
+
title: 'AI Chat Assistant',
|
|
113
|
+
description:
|
|
114
|
+
'Focused assistant template with reasoning, sources, suggestions, and MCP-aware tooling.',
|
|
115
|
+
tags: ['AI', 'Ops'],
|
|
116
|
+
capabilities: 'Chat UX, Sources, Suggestions, MCP',
|
|
117
|
+
isNew: true,
|
|
118
|
+
previewUrl: '/sandbox?template=ai-chat-assistant',
|
|
119
|
+
docsUrl: '/docs/examples/ai-chat-assistant',
|
|
84
120
|
},
|
|
85
121
|
// ============================================
|
|
86
122
|
// Phase 2-4 Examples
|
|
@@ -95,7 +131,7 @@ const templates = [
|
|
|
95
131
|
capabilities: 'Workflows, Approvals, State Machine',
|
|
96
132
|
isNew: true,
|
|
97
133
|
previewUrl: '/sandbox?template=workflow-system',
|
|
98
|
-
docsUrl: '/docs/
|
|
134
|
+
docsUrl: '/docs/examples/workflow-system',
|
|
99
135
|
},
|
|
100
136
|
{
|
|
101
137
|
id: 'marketplace',
|
|
@@ -56,6 +56,22 @@ const CrmDashboard = dynamic(
|
|
|
56
56
|
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
57
57
|
);
|
|
58
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 /> }
|
|
73
|
+
);
|
|
74
|
+
|
|
59
75
|
const AgentDashboard = dynamic(
|
|
60
76
|
() =>
|
|
61
77
|
import('@contractspec/example.agent-console/ui').then(
|
|
@@ -96,6 +112,14 @@ const AnalyticsDashboard = dynamic(
|
|
|
96
112
|
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
97
113
|
);
|
|
98
114
|
|
|
115
|
+
const AiChatAssistantDashboard = dynamic(
|
|
116
|
+
() =>
|
|
117
|
+
import('@contractspec/example.ai-chat-assistant').then(
|
|
118
|
+
(mod) => mod.AiChatAssistantDashboard
|
|
119
|
+
),
|
|
120
|
+
{ ssr: false, loading: () => <LoadingSpinner /> }
|
|
121
|
+
);
|
|
122
|
+
|
|
99
123
|
interface TemplatePreviewModalProps {
|
|
100
124
|
templateId: TemplateId | null;
|
|
101
125
|
onClose: () => void;
|
|
@@ -173,6 +197,26 @@ export const TemplatePreviewModal = ({
|
|
|
173
197
|
<CrmDashboard />
|
|
174
198
|
</TemplateShell>
|
|
175
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
|
+
);
|
|
176
220
|
case 'agent-console':
|
|
177
221
|
return (
|
|
178
222
|
<TemplateShell
|
|
@@ -183,6 +227,16 @@ export const TemplatePreviewModal = ({
|
|
|
183
227
|
<AgentDashboard />
|
|
184
228
|
</TemplateShell>
|
|
185
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
|
+
);
|
|
186
240
|
case 'workflow-system':
|
|
187
241
|
return (
|
|
188
242
|
<TemplateShell
|
package/src/registry/engine.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
registerDefaultReactRenderer,
|
|
5
5
|
registerReactToMarkdownRenderer,
|
|
6
6
|
type TransformEngine,
|
|
7
|
-
} from '@contractspec/lib.contracts-
|
|
7
|
+
} from '@contractspec/lib.contracts-runtime-client-react/transform-engine';
|
|
8
8
|
import { componentMap } from './registry';
|
|
9
9
|
import type { ComponentMap } from './types';
|
|
10
10
|
|
package/src/registry/registry.ts
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
docBlocksToPresentationRoutes,
|
|
7
7
|
listRegisteredDocBlocks,
|
|
8
8
|
metaDocs,
|
|
9
|
-
techContractsDocs,
|
|
10
9
|
} from '@contractspec/lib.contracts-spec/docs';
|
|
11
10
|
import type { PresentationSpec } from '@contractspec/lib.contracts-spec/presentations';
|
|
11
|
+
import { techContractsDocs } from '@contractspec/lib.contracts-spec/presentations';
|
|
12
12
|
// Import sub-registries
|
|
13
13
|
import { docsComponentMap, docsPresentations } from './registry-docs';
|
|
14
14
|
import {
|