@contractspec/bundle.library 3.4.2 → 3.5.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 +494 -488
- package/CHANGELOG.md +61 -0
- package/dist/application/index.js +8 -8
- package/dist/application/mcp/cliMcp.js +8 -8
- package/dist/application/mcp/contractsMcp.js +8 -8
- package/dist/application/mcp/docsMcp.js +8 -8
- package/dist/application/mcp/index.js +8 -8
- package/dist/application/mcp/internalMcp.js +8 -8
- package/dist/application/mcp/providerRankingMcp.js +8 -8
- package/dist/bundles/LibraryBundle.d.ts +126 -0
- package/dist/bundles/LibraryBundle.js +139 -0
- package/dist/bundles/index.d.ts +1 -0
- package/dist/bundles/index.js +139 -0
- package/dist/components/docs/DocsIndexPage.js +91 -91
- package/dist/components/docs/advanced/AdvancedMCPPage.js +125 -125
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +51 -51
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
- package/dist/components/docs/advanced/index.js +482 -482
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
- package/dist/components/docs/architecture/index.js +748 -748
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +97 -97
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +125 -125
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
- package/dist/components/docs/comparison/index.js +738 -738
- package/dist/components/docs/ecosystem/IntegrationsPage.js +45 -45
- package/dist/components/docs/ecosystem/PluginsPage.js +73 -73
- package/dist/components/docs/ecosystem/RegistryPage.js +37 -37
- package/dist/components/docs/ecosystem/TemplatesPage.js +56 -56
- package/dist/components/docs/ecosystem/index.js +211 -211
- package/dist/components/docs/examples/DocsExamplesPage.js +21 -21
- package/dist/components/docs/examples/index.js +21 -21
- package/dist/components/docs/getting-started/CLIPage.js +95 -95
- package/dist/components/docs/getting-started/CompatibilityPage.js +81 -81
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +57 -57
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +61 -61
- package/dist/components/docs/getting-started/HelloWorldPage.js +77 -77
- package/dist/components/docs/getting-started/InstallationPage.js +65 -65
- package/dist/components/docs/getting-started/StartHerePage.js +51 -51
- package/dist/components/docs/getting-started/TroubleshootingPage.js +73 -73
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
- package/dist/components/docs/getting-started/index.js +731 -731
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
- package/dist/components/docs/guides/GuideContractTypesPage.js +232 -232
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +82 -82
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +106 -106
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
- package/dist/components/docs/guides/GuidesIndexPage.js +43 -43
- package/dist/components/docs/guides/index.js +975 -975
- package/dist/components/docs/index.js +10791 -10791
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +61 -61
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +49 -49
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +69 -69
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +121 -121
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
- package/dist/components/docs/integrations/IntegrationsResendPage.js +45 -45
- package/dist/components/docs/integrations/IntegrationsS3Page.js +57 -57
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +63 -63
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
- package/dist/components/docs/integrations/IntegrationsStripePage.js +159 -159
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
- package/dist/components/docs/integrations/index.js +1642 -1642
- package/dist/components/docs/intent/ContractFirstApiPage.js +51 -51
- package/dist/components/docs/intent/DeterministicCodegenPage.js +59 -59
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
- package/dist/components/docs/intent/OpenapiAlternativePage.js +91 -91
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
- package/dist/components/docs/intent/index.js +396 -396
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
- package/dist/components/docs/knowledge/index.js +963 -963
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +43 -43
- package/dist/components/docs/libraries/LibrariesContractsPage.js +125 -125
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +35 -35
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +191 -191
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +49 -49
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +87 -87
- package/dist/components/docs/libraries/LibrariesSLOPage.js +47 -47
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +139 -139
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
- package/dist/components/docs/libraries/LibrariesTestingPage.js +49 -49
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +107 -107
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
- package/dist/components/docs/libraries/index.js +1919 -1919
- package/dist/components/docs/manifesto/ManifestoPage.js +79 -79
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +33 -33
- package/dist/components/docs/ops/index.js +92 -92
- package/dist/components/docs/reference/DocsMarkdownContent.js +27 -27
- package/dist/components/docs/reference/DocsReferenceContent.js +34 -34
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +23 -23
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +26 -26
- package/dist/components/docs/reference/DocsReferencePage.js +37 -37
- package/dist/components/docs/reference/index.js +63 -63
- package/dist/components/docs/safety/SafetyAuditingPage.js +161 -161
- package/dist/components/docs/safety/SafetyMigrationsPage.js +169 -169
- package/dist/components/docs/safety/SafetyOverviewPage.js +99 -99
- package/dist/components/docs/safety/SafetyPDPPage.js +137 -137
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +95 -95
- package/dist/components/docs/safety/SafetySigningPage.js +39 -39
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
- package/dist/components/docs/safety/index.js +733 -733
- package/dist/components/docs/shared/StudioPrompt.js +9 -9
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
- package/dist/components/docs/specs/SpecsDataViewsPage.js +119 -119
- package/dist/components/docs/specs/SpecsOverlaysPage.js +171 -171
- package/dist/components/docs/specs/SpecsOverviewPage.js +167 -167
- package/dist/components/docs/specs/SpecsPolicyPage.js +179 -179
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +141 -141
- package/dist/components/docs/specs/index.js +838 -838
- package/dist/components/docs/studio/StudioBYOKPage.js +9 -9
- package/dist/components/docs/studio/StudioDeploymentsPage.js +9 -9
- package/dist/components/docs/studio/StudioGettingStartedPage.js +9 -9
- package/dist/components/docs/studio/StudioIntegrationsPage.js +9 -9
- package/dist/components/docs/studio/StudioOverviewPage.js +33 -33
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +9 -9
- package/dist/components/docs/studio/index.js +78 -78
- package/dist/components/integrations/index.js +209 -209
- package/dist/components/integrations/molecules/IntegrationCard.js +33 -33
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +71 -71
- package/dist/components/integrations/organisms/IntegrationSettings.js +98 -98
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +40 -40
- package/dist/components/legal/PrivacyTemplate.js +477 -477
- package/dist/components/legal/TermsTemplate.js +421 -421
- package/dist/components/legal/index.js +898 -898
- package/dist/components/shared/FeatureGateNotice.js +13 -13
- package/dist/components/shared/index.js +13 -13
- package/dist/components/shell/WorkspaceHeader.js +37 -37
- package/dist/components/shell/WorkspaceProjectShellLayout.js +77 -77
- package/dist/components/shell/WorkspaceShellRenderer.d.ts +17 -0
- package/dist/components/shell/WorkspaceShellRenderer.js +229 -0
- package/dist/components/shell/WorkspaceSidebar.js +27 -27
- package/dist/components/shell/index.d.ts +1 -0
- package/dist/components/shell/index.js +140 -77
- package/dist/components/templates/index.js +272 -272
- package/dist/components/templates/messaging/ConversationList.js +27 -27
- package/dist/components/templates/messaging/MessageComposer.js +27 -27
- package/dist/components/templates/messaging/MessageThread.js +18 -18
- package/dist/components/templates/messaging/MessagingWorkspace.js +65 -65
- package/dist/components/templates/messaging/index.js +65 -65
- package/dist/components/templates/recipes/LanguageSwitcher.js +5 -5
- package/dist/components/templates/recipes/RecipeCard.js +26 -26
- package/dist/components/templates/recipes/RecipeDetail.js +33 -33
- package/dist/components/templates/recipes/RecipeList.js +80 -80
- package/dist/components/templates/recipes/index.js +80 -80
- package/dist/components/templates/todos/FilterBar.js +39 -39
- package/dist/components/templates/todos/TaskForm.js +43 -43
- package/dist/components/templates/todos/TaskItem.js +30 -30
- package/dist/components/templates/todos/TaskList.js +127 -127
- package/dist/components/templates/todos/index.js +127 -127
- package/dist/index.js +12323 -12260
- package/dist/infrastructure/elysia/index.js +8 -8
- package/dist/infrastructure/elysia/logger.js +8 -8
- package/dist/infrastructure/index.js +8 -8
- package/dist/libs/posthog/client.js +2 -2
- package/dist/node/application/index.js +8 -8
- package/dist/node/application/mcp/cliMcp.js +8 -8
- package/dist/node/application/mcp/contractsMcp.js +8 -8
- package/dist/node/application/mcp/docsMcp.js +8 -8
- package/dist/node/application/mcp/index.js +8 -8
- package/dist/node/application/mcp/internalMcp.js +8 -8
- package/dist/node/application/mcp/providerRankingMcp.js +8 -8
- package/dist/node/bundles/LibraryBundle.js +138 -0
- package/dist/node/bundles/index.js +138 -0
- package/dist/node/components/docs/DocsIndexPage.js +91 -91
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +125 -125
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +51 -51
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
- package/dist/node/components/docs/advanced/index.js +482 -482
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
- package/dist/node/components/docs/architecture/index.js +748 -748
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +97 -97
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +125 -125
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
- package/dist/node/components/docs/comparison/index.js +738 -738
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +45 -45
- package/dist/node/components/docs/ecosystem/PluginsPage.js +73 -73
- package/dist/node/components/docs/ecosystem/RegistryPage.js +37 -37
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +56 -56
- package/dist/node/components/docs/ecosystem/index.js +211 -211
- package/dist/node/components/docs/examples/DocsExamplesPage.js +21 -21
- package/dist/node/components/docs/examples/index.js +21 -21
- package/dist/node/components/docs/getting-started/CLIPage.js +95 -95
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +81 -81
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +57 -57
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +61 -61
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +77 -77
- package/dist/node/components/docs/getting-started/InstallationPage.js +65 -65
- package/dist/node/components/docs/getting-started/StartHerePage.js +51 -51
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +73 -73
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
- package/dist/node/components/docs/getting-started/index.js +731 -731
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +232 -232
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +82 -82
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +106 -106
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
- package/dist/node/components/docs/guides/GuidesIndexPage.js +43 -43
- package/dist/node/components/docs/guides/index.js +975 -975
- package/dist/node/components/docs/index.js +10791 -10791
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +61 -61
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +49 -49
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +69 -69
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +121 -121
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +45 -45
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +57 -57
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +63 -63
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +159 -159
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
- package/dist/node/components/docs/integrations/index.js +1642 -1642
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +51 -51
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +59 -59
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +91 -91
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
- package/dist/node/components/docs/intent/index.js +396 -396
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
- package/dist/node/components/docs/knowledge/index.js +963 -963
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +43 -43
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +125 -125
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +35 -35
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +191 -191
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +49 -49
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +87 -87
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +47 -47
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +139 -139
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +49 -49
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +107 -107
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
- package/dist/node/components/docs/libraries/index.js +1919 -1919
- package/dist/node/components/docs/manifesto/ManifestoPage.js +79 -79
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +33 -33
- package/dist/node/components/docs/ops/index.js +92 -92
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +27 -27
- package/dist/node/components/docs/reference/DocsReferenceContent.js +34 -34
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +23 -23
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +26 -26
- package/dist/node/components/docs/reference/DocsReferencePage.js +37 -37
- package/dist/node/components/docs/reference/index.js +63 -63
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +161 -161
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +169 -169
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +99 -99
- package/dist/node/components/docs/safety/SafetyPDPPage.js +137 -137
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +95 -95
- package/dist/node/components/docs/safety/SafetySigningPage.js +39 -39
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
- package/dist/node/components/docs/safety/index.js +733 -733
- package/dist/node/components/docs/shared/StudioPrompt.js +9 -9
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +119 -119
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +171 -171
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +167 -167
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +179 -179
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +141 -141
- package/dist/node/components/docs/specs/index.js +838 -838
- package/dist/node/components/docs/studio/StudioBYOKPage.js +9 -9
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +9 -9
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +9 -9
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +9 -9
- package/dist/node/components/docs/studio/StudioOverviewPage.js +33 -33
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +9 -9
- package/dist/node/components/docs/studio/index.js +78 -78
- package/dist/node/components/integrations/index.js +209 -209
- package/dist/node/components/integrations/molecules/IntegrationCard.js +33 -33
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +71 -71
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +98 -98
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +40 -40
- package/dist/node/components/legal/PrivacyTemplate.js +477 -477
- package/dist/node/components/legal/TermsTemplate.js +421 -421
- package/dist/node/components/legal/index.js +898 -898
- package/dist/node/components/shared/FeatureGateNotice.js +13 -13
- package/dist/node/components/shared/index.js +13 -13
- package/dist/node/components/shell/WorkspaceHeader.js +37 -37
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +77 -77
- package/dist/node/components/shell/WorkspaceShellRenderer.js +228 -0
- package/dist/node/components/shell/WorkspaceSidebar.js +27 -27
- package/dist/node/components/shell/index.js +140 -77
- package/dist/node/components/templates/index.js +272 -272
- package/dist/node/components/templates/messaging/ConversationList.js +27 -27
- package/dist/node/components/templates/messaging/MessageComposer.js +27 -27
- package/dist/node/components/templates/messaging/MessageThread.js +18 -18
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +65 -65
- package/dist/node/components/templates/messaging/index.js +65 -65
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +5 -5
- package/dist/node/components/templates/recipes/RecipeCard.js +26 -26
- package/dist/node/components/templates/recipes/RecipeDetail.js +33 -33
- package/dist/node/components/templates/recipes/RecipeList.js +80 -80
- package/dist/node/components/templates/recipes/index.js +80 -80
- package/dist/node/components/templates/todos/FilterBar.js +39 -39
- package/dist/node/components/templates/todos/TaskForm.js +43 -43
- package/dist/node/components/templates/todos/TaskItem.js +30 -30
- package/dist/node/components/templates/todos/TaskList.js +127 -127
- package/dist/node/components/templates/todos/index.js +127 -127
- package/dist/node/index.js +12323 -12260
- package/dist/node/infrastructure/elysia/index.js +8 -8
- package/dist/node/infrastructure/elysia/logger.js +8 -8
- package/dist/node/infrastructure/index.js +8 -8
- package/dist/node/libs/posthog/client.js +2 -2
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +3 -3
- package/dist/node/presentation/features/atoms/index.js +3 -3
- package/dist/node/presentation/features/index.js +915 -915
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +101 -101
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +23 -23
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
- package/dist/node/presentation/features/molecules/index.js +139 -139
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
- package/dist/node/presentation/features/organisms/FeatureDetail/index.js +57 -57
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +7 -7
- package/dist/node/presentation/features/organisms/index.js +275 -275
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
- package/dist/presentation/features/atoms/FeatureIcon/index.js +3 -3
- package/dist/presentation/features/atoms/index.js +3 -3
- package/dist/presentation/features/index.js +915 -915
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
- package/dist/presentation/features/molecules/FeatureCard/index.js +101 -101
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
- package/dist/presentation/features/molecules/FeatureFilters/index.js +23 -23
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
- package/dist/presentation/features/molecules/index.js +139 -139
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +7 -7
- package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
- package/dist/presentation/features/organisms/FeatureDetail/index.js +57 -57
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
- package/dist/presentation/features/organisms/FeatureEventsList.js +7 -7
- package/dist/presentation/features/organisms/FeatureFormsList.js +7 -7
- package/dist/presentation/features/organisms/FeatureOperationsList.js +7 -7
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +7 -7
- package/dist/presentation/features/organisms/index.js +275 -275
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
- package/package.json +71 -22
- package/src/bundles/LibraryBundle.ts +152 -0
- package/src/bundles/index.ts +1 -0
- package/src/components/shell/WorkspaceShellRenderer.tsx +90 -0
- package/src/components/shell/index.ts +1 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// src/components/shell/WorkspaceHeader.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import {
|
|
4
|
+
Select,
|
|
5
|
+
SelectContent,
|
|
6
|
+
SelectItem,
|
|
7
|
+
SelectTrigger,
|
|
8
|
+
SelectValue
|
|
9
|
+
} from "@contractspec/lib.ui-kit-web/ui/select";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function WorkspaceHeader({
|
|
12
|
+
title,
|
|
13
|
+
subtitle,
|
|
14
|
+
workspaceSelect,
|
|
15
|
+
projectSelect,
|
|
16
|
+
environmentSelect,
|
|
17
|
+
stickyHeaderOffsetPx,
|
|
18
|
+
headerRight
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsx("div", {
|
|
21
|
+
className: "border-border bg-card sticky top-0 z-10 border-b",
|
|
22
|
+
style: { top: stickyHeaderOffsetPx ?? 0 },
|
|
23
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "mx-auto flex w-full max-w-7xl flex-col gap-3 px-4 py-3 md:flex-row md:items-center md:justify-between",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsxs("div", {
|
|
27
|
+
className: "min-w-0",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", {
|
|
30
|
+
className: "flex items-center gap-2",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx("p", {
|
|
33
|
+
className: "truncate text-base font-semibold",
|
|
34
|
+
children: title
|
|
35
|
+
}),
|
|
36
|
+
subtitle ? /* @__PURE__ */ jsx("p", {
|
|
37
|
+
className: "text-muted-foreground hidden text-sm md:block",
|
|
38
|
+
children: subtitle
|
|
39
|
+
}) : null
|
|
40
|
+
]
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: "mt-2 flex flex-wrap gap-2",
|
|
44
|
+
children: [
|
|
45
|
+
workspaceSelect ? /* @__PURE__ */ jsx(ShellSelectControl, {
|
|
46
|
+
select: workspaceSelect
|
|
47
|
+
}) : null,
|
|
48
|
+
projectSelect ? /* @__PURE__ */ jsx(ShellSelectControl, {
|
|
49
|
+
select: projectSelect
|
|
50
|
+
}) : null,
|
|
51
|
+
environmentSelect ? /* @__PURE__ */ jsx(ShellSelectControl, {
|
|
52
|
+
select: environmentSelect
|
|
53
|
+
}) : null
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: "flex items-center justify-between gap-2 md:justify-end",
|
|
60
|
+
children: headerRight
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function ShellSelectControl({ select }) {
|
|
67
|
+
const labelId = React.useId();
|
|
68
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
69
|
+
className: "flex min-w-[220px] flex-col gap-1",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ jsx("span", {
|
|
72
|
+
id: labelId,
|
|
73
|
+
className: "text-muted-foreground text-xs",
|
|
74
|
+
children: select.label
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
77
|
+
value: select.value,
|
|
78
|
+
onValueChange: select.onChange,
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ jsx(SelectTrigger, {
|
|
81
|
+
"aria-labelledby": labelId,
|
|
82
|
+
className: "w-full",
|
|
83
|
+
children: /* @__PURE__ */ jsx(SelectValue, {
|
|
84
|
+
placeholder: select.placeholder ?? select.label
|
|
85
|
+
})
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ jsx(SelectContent, {
|
|
88
|
+
children: select.options.map((o) => /* @__PURE__ */ jsx(SelectItem, {
|
|
89
|
+
value: o.value,
|
|
90
|
+
children: o.label
|
|
91
|
+
}, o.value))
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// src/components/shell/WorkspaceSidebar.tsx
|
|
100
|
+
import { Settings } from "lucide-react";
|
|
101
|
+
import {
|
|
102
|
+
Sidebar,
|
|
103
|
+
SidebarContent,
|
|
104
|
+
SidebarFooter,
|
|
105
|
+
SidebarHeader,
|
|
106
|
+
SidebarMenu,
|
|
107
|
+
SidebarMenuButton,
|
|
108
|
+
SidebarMenuItem,
|
|
109
|
+
SidebarRail
|
|
110
|
+
} from "@contractspec/lib.ui-kit-web/ui/sidebar";
|
|
111
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
112
|
+
function WorkspaceSidebar({
|
|
113
|
+
modules,
|
|
114
|
+
activeModuleId,
|
|
115
|
+
onModuleChange,
|
|
116
|
+
sidebarFooter
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ jsxs2(Sidebar, {
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ jsx2(SidebarRail, {}),
|
|
121
|
+
/* @__PURE__ */ jsx2(SidebarHeader, {}),
|
|
122
|
+
/* @__PURE__ */ jsx2(SidebarContent, {
|
|
123
|
+
children: /* @__PURE__ */ jsxs2(SidebarMenu, {
|
|
124
|
+
children: [
|
|
125
|
+
modules.map((m) => /* @__PURE__ */ jsx2(SidebarMenuItem, {
|
|
126
|
+
children: /* @__PURE__ */ jsxs2(SidebarMenuButton, {
|
|
127
|
+
isActive: m.id === activeModuleId,
|
|
128
|
+
onClick: () => onModuleChange(m.id),
|
|
129
|
+
children: [
|
|
130
|
+
m.icon,
|
|
131
|
+
/* @__PURE__ */ jsx2("span", {
|
|
132
|
+
children: m.label
|
|
133
|
+
}),
|
|
134
|
+
m.badge != null ? /* @__PURE__ */ jsx2("span", {
|
|
135
|
+
className: "text-muted-foreground ml-auto text-xs",
|
|
136
|
+
children: String(m.badge)
|
|
137
|
+
}) : null
|
|
138
|
+
]
|
|
139
|
+
})
|
|
140
|
+
}, m.id)),
|
|
141
|
+
/* @__PURE__ */ jsx2(SidebarMenuItem, {
|
|
142
|
+
children: /* @__PURE__ */ jsxs2(SidebarMenuButton, {
|
|
143
|
+
isActive: activeModuleId === "settings",
|
|
144
|
+
onClick: () => onModuleChange("settings"),
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ jsx2(Settings, {
|
|
147
|
+
className: "size-4"
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ jsx2("span", {
|
|
150
|
+
children: "Settings"
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ jsx2(SidebarFooter, {
|
|
159
|
+
children: sidebarFooter
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// src/components/shell/WorkspaceShellRenderer.tsx
|
|
166
|
+
import { SidebarProvider } from "@contractspec/lib.ui-kit-web/ui/sidebar";
|
|
167
|
+
import {
|
|
168
|
+
BundleProvider,
|
|
169
|
+
BundleRenderer
|
|
170
|
+
} from "@contractspec/lib.surface-runtime/react";
|
|
171
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
172
|
+
"use client";
|
|
173
|
+
function WorkspaceShellRenderer({
|
|
174
|
+
plan,
|
|
175
|
+
title,
|
|
176
|
+
subtitle,
|
|
177
|
+
workspaceSelect,
|
|
178
|
+
projectSelect,
|
|
179
|
+
environmentSelect,
|
|
180
|
+
stickyHeaderOffsetPx,
|
|
181
|
+
headerRight,
|
|
182
|
+
modules,
|
|
183
|
+
activeModuleId,
|
|
184
|
+
onModuleChange,
|
|
185
|
+
sidebarFooter,
|
|
186
|
+
assistant,
|
|
187
|
+
children,
|
|
188
|
+
className
|
|
189
|
+
}) {
|
|
190
|
+
const slotContent = {
|
|
191
|
+
header: /* @__PURE__ */ jsx3(WorkspaceHeader, {
|
|
192
|
+
title,
|
|
193
|
+
subtitle,
|
|
194
|
+
workspaceSelect,
|
|
195
|
+
projectSelect,
|
|
196
|
+
environmentSelect,
|
|
197
|
+
stickyHeaderOffsetPx,
|
|
198
|
+
headerRight
|
|
199
|
+
}),
|
|
200
|
+
sidebar: /* @__PURE__ */ jsx3(WorkspaceSidebar, {
|
|
201
|
+
modules,
|
|
202
|
+
activeModuleId,
|
|
203
|
+
onModuleChange,
|
|
204
|
+
sidebarFooter
|
|
205
|
+
}),
|
|
206
|
+
primary: /* @__PURE__ */ jsx3("main", {
|
|
207
|
+
className: className ? `m-4 ${className}` : "m-4",
|
|
208
|
+
children
|
|
209
|
+
})
|
|
210
|
+
};
|
|
211
|
+
if (assistant != null) {
|
|
212
|
+
slotContent.assistant = assistant;
|
|
213
|
+
}
|
|
214
|
+
return /* @__PURE__ */ jsx3(SidebarProvider, {
|
|
215
|
+
children: /* @__PURE__ */ jsx3(BundleProvider, {
|
|
216
|
+
plan,
|
|
217
|
+
children: /* @__PURE__ */ jsx3("div", {
|
|
218
|
+
className: "bg-background min-h-svh",
|
|
219
|
+
children: /* @__PURE__ */ jsx3(BundleRenderer, {
|
|
220
|
+
slotContent
|
|
221
|
+
})
|
|
222
|
+
})
|
|
223
|
+
})
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
export {
|
|
227
|
+
WorkspaceShellRenderer
|
|
228
|
+
};
|
|
@@ -10,58 +10,58 @@ import {
|
|
|
10
10
|
SidebarMenuItem,
|
|
11
11
|
SidebarRail
|
|
12
12
|
} from "@contractspec/lib.ui-kit-web/ui/sidebar";
|
|
13
|
-
import {
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
function WorkspaceSidebar({
|
|
15
15
|
modules,
|
|
16
16
|
activeModuleId,
|
|
17
17
|
onModuleChange,
|
|
18
18
|
sidebarFooter
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsxs(Sidebar, {
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
children: /* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ jsx(SidebarRail, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(SidebarHeader, {}),
|
|
24
|
+
/* @__PURE__ */ jsx(SidebarContent, {
|
|
25
|
+
children: /* @__PURE__ */ jsxs(SidebarMenu, {
|
|
26
26
|
children: [
|
|
27
|
-
modules.map((m) => /* @__PURE__ */
|
|
28
|
-
children: /* @__PURE__ */
|
|
27
|
+
modules.map((m) => /* @__PURE__ */ jsx(SidebarMenuItem, {
|
|
28
|
+
children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
|
|
29
29
|
isActive: m.id === activeModuleId,
|
|
30
30
|
onClick: () => onModuleChange(m.id),
|
|
31
31
|
children: [
|
|
32
32
|
m.icon,
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ jsx("span", {
|
|
34
34
|
children: m.label
|
|
35
|
-
}
|
|
36
|
-
m.badge != null ? /* @__PURE__ */
|
|
35
|
+
}),
|
|
36
|
+
m.badge != null ? /* @__PURE__ */ jsx("span", {
|
|
37
37
|
className: "text-muted-foreground ml-auto text-xs",
|
|
38
38
|
children: String(m.badge)
|
|
39
|
-
}
|
|
39
|
+
}) : null
|
|
40
40
|
]
|
|
41
|
-
}
|
|
42
|
-
}, m.id
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
children: /* @__PURE__ */
|
|
41
|
+
})
|
|
42
|
+
}, m.id)),
|
|
43
|
+
/* @__PURE__ */ jsx(SidebarMenuItem, {
|
|
44
|
+
children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
|
|
45
45
|
isActive: activeModuleId === "settings",
|
|
46
46
|
onClick: () => onModuleChange("settings"),
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ jsx(Settings, {
|
|
49
49
|
className: "size-4"
|
|
50
|
-
}
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ jsx("span", {
|
|
52
52
|
children: "Settings"
|
|
53
|
-
}
|
|
53
|
+
})
|
|
54
54
|
]
|
|
55
|
-
}
|
|
56
|
-
}
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
57
|
]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
/* @__PURE__ */
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx(SidebarFooter, {
|
|
61
61
|
children: sidebarFooter
|
|
62
|
-
}
|
|
62
|
+
})
|
|
63
63
|
]
|
|
64
|
-
}
|
|
64
|
+
});
|
|
65
65
|
}
|
|
66
66
|
export {
|
|
67
67
|
WorkspaceSidebar
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SelectTrigger,
|
|
8
8
|
SelectValue
|
|
9
9
|
} from "@contractspec/lib.ui-kit-web/ui/select";
|
|
10
|
-
import {
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
function WorkspaceHeader({
|
|
12
12
|
title,
|
|
13
13
|
subtitle,
|
|
@@ -17,83 +17,83 @@ function WorkspaceHeader({
|
|
|
17
17
|
stickyHeaderOffsetPx,
|
|
18
18
|
headerRight
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsx("div", {
|
|
21
21
|
className: "border-border bg-card sticky top-0 z-10 border-b",
|
|
22
22
|
style: { top: stickyHeaderOffsetPx ?? 0 },
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
24
24
|
className: "mx-auto flex w-full max-w-7xl flex-col gap-3 px-4 py-3 md:flex-row md:items-center md:justify-between",
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ jsxs("div", {
|
|
27
27
|
className: "min-w-0",
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ jsxs("div", {
|
|
30
30
|
className: "flex items-center gap-2",
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ jsx("p", {
|
|
33
33
|
className: "truncate text-base font-semibold",
|
|
34
34
|
children: title
|
|
35
|
-
}
|
|
36
|
-
subtitle ? /* @__PURE__ */
|
|
35
|
+
}),
|
|
36
|
+
subtitle ? /* @__PURE__ */ jsx("p", {
|
|
37
37
|
className: "text-muted-foreground hidden text-sm md:block",
|
|
38
38
|
children: subtitle
|
|
39
|
-
}
|
|
39
|
+
}) : null
|
|
40
40
|
]
|
|
41
|
-
}
|
|
42
|
-
/* @__PURE__ */
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsxs("div", {
|
|
43
43
|
className: "mt-2 flex flex-wrap gap-2",
|
|
44
44
|
children: [
|
|
45
|
-
workspaceSelect ? /* @__PURE__ */
|
|
45
|
+
workspaceSelect ? /* @__PURE__ */ jsx(ShellSelectControl, {
|
|
46
46
|
select: workspaceSelect
|
|
47
|
-
}
|
|
48
|
-
projectSelect ? /* @__PURE__ */
|
|
47
|
+
}) : null,
|
|
48
|
+
projectSelect ? /* @__PURE__ */ jsx(ShellSelectControl, {
|
|
49
49
|
select: projectSelect
|
|
50
|
-
}
|
|
51
|
-
environmentSelect ? /* @__PURE__ */
|
|
50
|
+
}) : null,
|
|
51
|
+
environmentSelect ? /* @__PURE__ */ jsx(ShellSelectControl, {
|
|
52
52
|
select: environmentSelect
|
|
53
|
-
}
|
|
53
|
+
}) : null
|
|
54
54
|
]
|
|
55
|
-
}
|
|
55
|
+
})
|
|
56
56
|
]
|
|
57
|
-
}
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("div", {
|
|
59
59
|
className: "flex items-center justify-between gap-2 md:justify-end",
|
|
60
60
|
children: headerRight
|
|
61
|
-
}
|
|
61
|
+
})
|
|
62
62
|
]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
65
|
}
|
|
66
66
|
function ShellSelectControl({ select }) {
|
|
67
67
|
const labelId = React.useId();
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
69
69
|
className: "flex min-w-[220px] flex-col gap-1",
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ jsx("span", {
|
|
72
72
|
id: labelId,
|
|
73
73
|
className: "text-muted-foreground text-xs",
|
|
74
74
|
children: select.label
|
|
75
|
-
}
|
|
76
|
-
/* @__PURE__ */
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
77
77
|
value: select.value,
|
|
78
78
|
onValueChange: select.onChange,
|
|
79
79
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ jsx(SelectTrigger, {
|
|
81
81
|
"aria-labelledby": labelId,
|
|
82
82
|
className: "w-full",
|
|
83
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ jsx(SelectValue, {
|
|
84
84
|
placeholder: select.placeholder ?? select.label
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
children: select.options.map((o) => /* @__PURE__ */
|
|
85
|
+
})
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ jsx(SelectContent, {
|
|
88
|
+
children: select.options.map((o) => /* @__PURE__ */ jsx(SelectItem, {
|
|
89
89
|
value: o.value,
|
|
90
90
|
children: o.label
|
|
91
|
-
}, o.value
|
|
92
|
-
}
|
|
91
|
+
}, o.value))
|
|
92
|
+
})
|
|
93
93
|
]
|
|
94
|
-
}
|
|
94
|
+
})
|
|
95
95
|
]
|
|
96
|
-
}
|
|
96
|
+
});
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// src/components/shell/WorkspaceSidebar.tsx
|
|
@@ -108,58 +108,58 @@ import {
|
|
|
108
108
|
SidebarMenuItem,
|
|
109
109
|
SidebarRail
|
|
110
110
|
} from "@contractspec/lib.ui-kit-web/ui/sidebar";
|
|
111
|
-
import {
|
|
111
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
112
112
|
function WorkspaceSidebar({
|
|
113
113
|
modules,
|
|
114
114
|
activeModuleId,
|
|
115
115
|
onModuleChange,
|
|
116
116
|
sidebarFooter
|
|
117
117
|
}) {
|
|
118
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ jsxs2(Sidebar, {
|
|
119
119
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
children: /* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ jsx2(SidebarRail, {}),
|
|
121
|
+
/* @__PURE__ */ jsx2(SidebarHeader, {}),
|
|
122
|
+
/* @__PURE__ */ jsx2(SidebarContent, {
|
|
123
|
+
children: /* @__PURE__ */ jsxs2(SidebarMenu, {
|
|
124
124
|
children: [
|
|
125
|
-
modules.map((m) => /* @__PURE__ */
|
|
126
|
-
children: /* @__PURE__ */
|
|
125
|
+
modules.map((m) => /* @__PURE__ */ jsx2(SidebarMenuItem, {
|
|
126
|
+
children: /* @__PURE__ */ jsxs2(SidebarMenuButton, {
|
|
127
127
|
isActive: m.id === activeModuleId,
|
|
128
128
|
onClick: () => onModuleChange(m.id),
|
|
129
129
|
children: [
|
|
130
130
|
m.icon,
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ jsx2("span", {
|
|
132
132
|
children: m.label
|
|
133
|
-
}
|
|
134
|
-
m.badge != null ? /* @__PURE__ */
|
|
133
|
+
}),
|
|
134
|
+
m.badge != null ? /* @__PURE__ */ jsx2("span", {
|
|
135
135
|
className: "text-muted-foreground ml-auto text-xs",
|
|
136
136
|
children: String(m.badge)
|
|
137
|
-
}
|
|
137
|
+
}) : null
|
|
138
138
|
]
|
|
139
|
-
}
|
|
140
|
-
}, m.id
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
children: /* @__PURE__ */
|
|
139
|
+
})
|
|
140
|
+
}, m.id)),
|
|
141
|
+
/* @__PURE__ */ jsx2(SidebarMenuItem, {
|
|
142
|
+
children: /* @__PURE__ */ jsxs2(SidebarMenuButton, {
|
|
143
143
|
isActive: activeModuleId === "settings",
|
|
144
144
|
onClick: () => onModuleChange("settings"),
|
|
145
145
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ jsx2(Settings, {
|
|
147
147
|
className: "size-4"
|
|
148
|
-
}
|
|
149
|
-
/* @__PURE__ */
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ jsx2("span", {
|
|
150
150
|
children: "Settings"
|
|
151
|
-
}
|
|
151
|
+
})
|
|
152
152
|
]
|
|
153
|
-
}
|
|
154
|
-
}
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
155
|
]
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/* @__PURE__ */
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ jsx2(SidebarFooter, {
|
|
159
159
|
children: sidebarFooter
|
|
160
|
-
}
|
|
160
|
+
})
|
|
161
161
|
]
|
|
162
|
-
}
|
|
162
|
+
});
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// src/components/shell/WorkspaceProjectShellLayout.tsx
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
SidebarProvider,
|
|
169
169
|
SidebarInset
|
|
170
170
|
} from "@contractspec/lib.ui-kit-web/ui/sidebar";
|
|
171
|
-
import {
|
|
171
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
172
172
|
function WorkspaceProjectShellLayout({
|
|
173
173
|
title,
|
|
174
174
|
subtitle,
|
|
@@ -185,19 +185,19 @@ function WorkspaceProjectShellLayout({
|
|
|
185
185
|
children,
|
|
186
186
|
className
|
|
187
187
|
}) {
|
|
188
|
-
return /* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ jsxs3(SidebarProvider, {
|
|
189
189
|
children: [
|
|
190
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ jsx3(WorkspaceSidebar, {
|
|
191
191
|
modules,
|
|
192
192
|
activeModuleId,
|
|
193
193
|
onModuleChange,
|
|
194
194
|
sidebarFooter
|
|
195
|
-
}
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
children: /* @__PURE__ */
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ jsx3(SidebarInset, {
|
|
197
|
+
children: /* @__PURE__ */ jsxs3("div", {
|
|
198
198
|
className: cn("bg-background min-h-svh", className),
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ jsx3(WorkspaceHeader, {
|
|
201
201
|
title,
|
|
202
202
|
subtitle,
|
|
203
203
|
workspaceSelect,
|
|
@@ -205,20 +205,83 @@ function WorkspaceProjectShellLayout({
|
|
|
205
205
|
environmentSelect,
|
|
206
206
|
stickyHeaderOffsetPx,
|
|
207
207
|
headerRight
|
|
208
|
-
}
|
|
209
|
-
/* @__PURE__ */
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ jsx3("main", {
|
|
210
210
|
className: "m-4",
|
|
211
211
|
children
|
|
212
|
-
}
|
|
212
|
+
})
|
|
213
213
|
]
|
|
214
|
-
}
|
|
215
|
-
}
|
|
214
|
+
})
|
|
215
|
+
}),
|
|
216
216
|
assistant
|
|
217
217
|
]
|
|
218
|
-
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// src/components/shell/WorkspaceShellRenderer.tsx
|
|
222
|
+
import { SidebarProvider as SidebarProvider2 } from "@contractspec/lib.ui-kit-web/ui/sidebar";
|
|
223
|
+
import {
|
|
224
|
+
BundleProvider,
|
|
225
|
+
BundleRenderer
|
|
226
|
+
} from "@contractspec/lib.surface-runtime/react";
|
|
227
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
228
|
+
"use client";
|
|
229
|
+
function WorkspaceShellRenderer({
|
|
230
|
+
plan,
|
|
231
|
+
title,
|
|
232
|
+
subtitle,
|
|
233
|
+
workspaceSelect,
|
|
234
|
+
projectSelect,
|
|
235
|
+
environmentSelect,
|
|
236
|
+
stickyHeaderOffsetPx,
|
|
237
|
+
headerRight,
|
|
238
|
+
modules,
|
|
239
|
+
activeModuleId,
|
|
240
|
+
onModuleChange,
|
|
241
|
+
sidebarFooter,
|
|
242
|
+
assistant,
|
|
243
|
+
children,
|
|
244
|
+
className
|
|
245
|
+
}) {
|
|
246
|
+
const slotContent = {
|
|
247
|
+
header: /* @__PURE__ */ jsx4(WorkspaceHeader, {
|
|
248
|
+
title,
|
|
249
|
+
subtitle,
|
|
250
|
+
workspaceSelect,
|
|
251
|
+
projectSelect,
|
|
252
|
+
environmentSelect,
|
|
253
|
+
stickyHeaderOffsetPx,
|
|
254
|
+
headerRight
|
|
255
|
+
}),
|
|
256
|
+
sidebar: /* @__PURE__ */ jsx4(WorkspaceSidebar, {
|
|
257
|
+
modules,
|
|
258
|
+
activeModuleId,
|
|
259
|
+
onModuleChange,
|
|
260
|
+
sidebarFooter
|
|
261
|
+
}),
|
|
262
|
+
primary: /* @__PURE__ */ jsx4("main", {
|
|
263
|
+
className: className ? `m-4 ${className}` : "m-4",
|
|
264
|
+
children
|
|
265
|
+
})
|
|
266
|
+
};
|
|
267
|
+
if (assistant != null) {
|
|
268
|
+
slotContent.assistant = assistant;
|
|
269
|
+
}
|
|
270
|
+
return /* @__PURE__ */ jsx4(SidebarProvider2, {
|
|
271
|
+
children: /* @__PURE__ */ jsx4(BundleProvider, {
|
|
272
|
+
plan,
|
|
273
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
274
|
+
className: "bg-background min-h-svh",
|
|
275
|
+
children: /* @__PURE__ */ jsx4(BundleRenderer, {
|
|
276
|
+
slotContent
|
|
277
|
+
})
|
|
278
|
+
})
|
|
279
|
+
})
|
|
280
|
+
});
|
|
219
281
|
}
|
|
220
282
|
export {
|
|
221
283
|
WorkspaceSidebar,
|
|
284
|
+
WorkspaceShellRenderer,
|
|
222
285
|
WorkspaceProjectShellLayout,
|
|
223
286
|
WorkspaceHeader
|
|
224
287
|
};
|