@specverse/engine-realize 3.5.3
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/assets/examples/09-api/ai-spec.yaml +194 -0
- package/assets/examples/09-api/converted.yaml +95 -0
- package/assets/examples/09-api/diagram-architecture.mmd +10 -0
- package/assets/examples/09-api/diagram-er.mmd +10 -0
- package/assets/examples/09-api/documentation.html +104 -0
- package/assets/examples/09-api/documentation.md +95 -0
- package/assets/examples/09-api/inferred-spec.yaml +420 -0
- package/assets/examples/09-api/openapi.json +61 -0
- package/assets/examples/10-api/README.md +216 -0
- package/assets/examples/10-api/ai-spec.yaml +194 -0
- package/assets/examples/10-api/converted.yaml +96 -0
- package/assets/examples/10-api/diagram-architecture.mmd +10 -0
- package/assets/examples/10-api/diagram-er.mmd +10 -0
- package/assets/examples/10-api/documentation.html +104 -0
- package/assets/examples/10-api/documentation.md +95 -0
- package/assets/examples/10-api/inferred-spec.yaml +7 -0
- package/assets/examples/10-api/metadata.yaml +89 -0
- package/assets/examples/10-api/openapi.json +61 -0
- package/assets/examples/10-api/package-integration-test.js +177 -0
- package/assets/examples/10-api/usage-example.js +323 -0
- package/assets/examples/10-api/usage-example.ts +363 -0
- package/assets/examples/10-api/workflow-test.js +113 -0
- package/assets/examples/manifests/01-simple-default-mappings.yaml +36 -0
- package/assets/examples/manifests/02-capability-mappings.yaml +55 -0
- package/assets/examples/manifests/03-hybrid-mappings.yaml +109 -0
- package/assets/examples/manifests/README.md +245 -0
- package/assets/examples/manifests/backend-only.yaml +43 -0
- package/assets/examples/manifests/blog-api.md +78 -0
- package/assets/examples/manifests/blog-api.specly +79 -0
- package/assets/examples/manifests/frontend-only.yaml +27 -0
- package/assets/examples/manifests/fullstack-app.yaml +44 -0
- package/assets/examples/manifests/fullstack-monorepo.yaml +62 -0
- package/assets/examples/validate-examples-with-expected-failures.cjs +328 -0
- package/assets/examples/validate-examples.cjs +225 -0
- package/assets/examples-decomposed/cloud-native-manifest.example.yaml +8 -0
- package/assets/examples-decomposed/cloud-native-manifest.md +379 -0
- package/assets/examples-decomposed/cloud-native-manifest.specly +60 -0
- package/assets/examples-decomposed/docker-compose-manifest.example.yaml +8 -0
- package/assets/examples-decomposed/docker-compose-manifest.md +326 -0
- package/assets/examples-decomposed/docker-compose-manifest.specly +40 -0
- package/assets/examples-decomposed/kubernetes-deployment-manifest.example.yaml +8 -0
- package/assets/examples-decomposed/kubernetes-deployment-manifest.md +237 -0
- package/assets/examples-decomposed/kubernetes-deployment-manifest.specly +41 -0
- package/assets/templates/README.md +559 -0
- package/assets/templates/TEMPLATE-ENHANCEMENTS-V33.md +462 -0
- package/assets/templates/backend-only/CLAUDE.md +73 -0
- package/assets/templates/backend-only/README.md +197 -0
- package/assets/templates/backend-only/deployments/README.md +149 -0
- package/assets/templates/backend-only/deployments/development.specly +53 -0
- package/assets/templates/backend-only/deployments/production.specly +87 -0
- package/assets/templates/backend-only/docs/README.md +50 -0
- package/assets/templates/backend-only/docs/api/README.md +7 -0
- package/assets/templates/backend-only/docs/diagrams/README.md +85 -0
- package/assets/templates/backend-only/docs/example-documentation-template.md +269 -0
- package/assets/templates/backend-only/docs/guides/README.md +15 -0
- package/assets/templates/backend-only/dot.env.example +18 -0
- package/assets/templates/backend-only/generated/README.md +56 -0
- package/assets/templates/backend-only/generated/code/integration-test.template.js +320 -0
- package/assets/templates/backend-only/generated/code/package.json.template +34 -0
- package/assets/templates/backend-only/generated/docs/README.md +49 -0
- package/assets/templates/backend-only/gitignore +54 -0
- package/assets/templates/backend-only/manifests/README.md +72 -0
- package/assets/templates/backend-only/manifests/docker-compose.specly +91 -0
- package/assets/templates/backend-only/manifests/implementation.yaml +100 -0
- package/assets/templates/backend-only/manifests/kubernetes.specly +140 -0
- package/assets/templates/backend-only/package.json +59 -0
- package/assets/templates/backend-only/scripts/test-all.sh +160 -0
- package/assets/templates/backend-only/scripts/test-generated-code.sh +165 -0
- package/assets/templates/backend-only/specs/main.specly +67 -0
- package/assets/templates/default/CLAUDE.md +141 -0
- package/assets/templates/default/README.md +404 -0
- package/assets/templates/default/deployments/README.md +149 -0
- package/assets/templates/default/deployments/development.specly +53 -0
- package/assets/templates/default/deployments/production.specly +87 -0
- package/assets/templates/default/docs/README.md +50 -0
- package/assets/templates/default/docs/api/README.md +7 -0
- package/assets/templates/default/docs/diagrams/README.md +85 -0
- package/assets/templates/default/docs/example-documentation-template.md +269 -0
- package/assets/templates/default/docs/guides/README.md +15 -0
- package/assets/templates/default/dot.env.example +18 -0
- package/assets/templates/default/generated/README.md +56 -0
- package/assets/templates/default/generated/code/integration-test.template.js +320 -0
- package/assets/templates/default/generated/code/package.json.template +34 -0
- package/assets/templates/default/generated/docs/README.md +49 -0
- package/assets/templates/default/gitignore +54 -0
- package/assets/templates/default/manifests/README.md +72 -0
- package/assets/templates/default/manifests/docker-compose.specly +91 -0
- package/assets/templates/default/manifests/implementation.yaml +176 -0
- package/assets/templates/default/manifests/kubernetes.specly +140 -0
- package/assets/templates/default/package.json +61 -0
- package/assets/templates/default/scripts/test-all.sh +160 -0
- package/assets/templates/default/scripts/test-generated-code.sh +165 -0
- package/assets/templates/default/specs/main.specly +67 -0
- package/assets/templates/frontend-only/CLAUDE.md +75 -0
- package/assets/templates/frontend-only/README.md +231 -0
- package/assets/templates/frontend-only/deployments/README.md +149 -0
- package/assets/templates/frontend-only/deployments/development.specly +53 -0
- package/assets/templates/frontend-only/deployments/production.specly +87 -0
- package/assets/templates/frontend-only/docs/README.md +50 -0
- package/assets/templates/frontend-only/docs/api/README.md +7 -0
- package/assets/templates/frontend-only/docs/diagrams/README.md +85 -0
- package/assets/templates/frontend-only/docs/example-documentation-template.md +269 -0
- package/assets/templates/frontend-only/docs/guides/README.md +15 -0
- package/assets/templates/frontend-only/dot.env.example +18 -0
- package/assets/templates/frontend-only/generated/README.md +56 -0
- package/assets/templates/frontend-only/generated/code/integration-test.template.js +320 -0
- package/assets/templates/frontend-only/generated/code/package.json.template +34 -0
- package/assets/templates/frontend-only/generated/docs/README.md +49 -0
- package/assets/templates/frontend-only/gitignore +54 -0
- package/assets/templates/frontend-only/manifests/README.md +72 -0
- package/assets/templates/frontend-only/manifests/docker-compose.specly +91 -0
- package/assets/templates/frontend-only/manifests/implementation.yaml +58 -0
- package/assets/templates/frontend-only/manifests/kubernetes.specly +140 -0
- package/assets/templates/frontend-only/package.json +59 -0
- package/assets/templates/frontend-only/scripts/test-all.sh +160 -0
- package/assets/templates/frontend-only/scripts/test-generated-code.sh +165 -0
- package/assets/templates/frontend-only/specs/main.specly +57 -0
- package/assets/templates/full-stack/AI-GUIDE.md +60 -0
- package/assets/templates/full-stack/CLAUDE.md +141 -0
- package/assets/templates/full-stack/README.md +382 -0
- package/assets/templates/full-stack/archive/AI-GUIDE-legacy.md +392 -0
- package/assets/templates/full-stack/deployments/README.md +149 -0
- package/assets/templates/full-stack/deployments/development.specly +53 -0
- package/assets/templates/full-stack/deployments/production.specly +87 -0
- package/assets/templates/full-stack/docs/README.md +51 -0
- package/assets/templates/full-stack/docs/api/README.md +7 -0
- package/assets/templates/full-stack/docs/diagrams/README.md +85 -0
- package/assets/templates/full-stack/docs/example-documentation-template.md +269 -0
- package/assets/templates/full-stack/docs/guides/README.md +15 -0
- package/assets/templates/full-stack/generated/README.md +56 -0
- package/assets/templates/full-stack/generated/code/integration-test.template.js +320 -0
- package/assets/templates/full-stack/generated/code/package.json.template +34 -0
- package/assets/templates/full-stack/generated/docs/README.md +49 -0
- package/assets/templates/full-stack/gitignore +54 -0
- package/assets/templates/full-stack/manifests/README.md +72 -0
- package/assets/templates/full-stack/manifests/docker-compose.specly +91 -0
- package/assets/templates/full-stack/manifests/implementation.yaml +155 -0
- package/assets/templates/full-stack/manifests/kubernetes.specly +140 -0
- package/assets/templates/full-stack/package.json +45 -0
- package/assets/templates/full-stack/scripts/test-all.sh +160 -0
- package/assets/templates/full-stack/scripts/test-generated-code.sh +165 -0
- package/assets/templates/full-stack/specs/example-v33.specly +297 -0
- package/assets/templates/full-stack/specs/main-simple.specly +73 -0
- package/assets/templates/full-stack/specs/main.specly +408 -0
- package/dist/engines/code-generator.d.ts +86 -0
- package/dist/engines/code-generator.d.ts.map +1 -0
- package/dist/engines/code-generator.js +159 -0
- package/dist/engines/code-generator.js.map +1 -0
- package/dist/engines/engine-registry.d.ts +94 -0
- package/dist/engines/engine-registry.d.ts.map +1 -0
- package/dist/engines/engine-registry.js +163 -0
- package/dist/engines/engine-registry.js.map +1 -0
- package/dist/engines/index.d.ts +10 -0
- package/dist/engines/index.d.ts.map +1 -0
- package/dist/engines/index.js +12 -0
- package/dist/engines/index.js.map +1 -0
- package/dist/engines/typescript-engine.d.ts +74 -0
- package/dist/engines/typescript-engine.d.ts.map +1 -0
- package/dist/engines/typescript-engine.js +288 -0
- package/dist/engines/typescript-engine.js.map +1 -0
- package/dist/generators/index.d.ts +11 -0
- package/dist/generators/index.d.ts.map +1 -0
- package/dist/generators/index.js +11 -0
- package/dist/generators/index.js.map +1 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +434 -0
- package/dist/index.js.map +1 -0
- package/dist/library/index.d.ts +12 -0
- package/dist/library/index.d.ts.map +1 -0
- package/dist/library/index.js +15 -0
- package/dist/library/index.js.map +1 -0
- package/dist/library/library.d.ts +132 -0
- package/dist/library/library.d.ts.map +1 -0
- package/dist/library/library.js +343 -0
- package/dist/library/library.js.map +1 -0
- package/dist/library/loader.d.ts +73 -0
- package/dist/library/loader.d.ts.map +1 -0
- package/dist/library/loader.js +150 -0
- package/dist/library/loader.js.map +1 -0
- package/dist/library/resolver.d.ts +104 -0
- package/dist/library/resolver.d.ts.map +1 -0
- package/dist/library/resolver.js +299 -0
- package/dist/library/resolver.js.map +1 -0
- package/dist/library/validator.d.ts +65 -0
- package/dist/library/validator.d.ts.map +1 -0
- package/dist/library/validator.js +203 -0
- package/dist/library/validator.js.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/instance-factory.d.ts +289 -0
- package/dist/types/instance-factory.d.ts.map +1 -0
- package/dist/types/instance-factory.js +8 -0
- package/dist/types/instance-factory.js.map +1 -0
- package/dist/types/unified-mappings.d.ts +163 -0
- package/dist/types/unified-mappings.d.ts.map +1 -0
- package/dist/types/unified-mappings.js +110 -0
- package/dist/types/unified-mappings.js.map +1 -0
- package/dist/utils/ai-spec-loader.d.ts +77 -0
- package/dist/utils/ai-spec-loader.d.ts.map +1 -0
- package/dist/utils/ai-spec-loader.js +138 -0
- package/dist/utils/ai-spec-loader.js.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/manifest-loader.d.ts +107 -0
- package/dist/utils/manifest-loader.d.ts.map +1 -0
- package/dist/utils/manifest-loader.js +168 -0
- package/dist/utils/manifest-loader.js.map +1 -0
- package/dist/utils/mapping-migration.d.ts +53 -0
- package/dist/utils/mapping-migration.d.ts.map +1 -0
- package/dist/utils/mapping-migration.js +194 -0
- package/dist/utils/mapping-migration.js.map +1 -0
- package/libs/instance-factories/CURVED-INTERFACE.md +278 -0
- package/libs/instance-factories/README.md +433 -0
- package/libs/instance-factories/applications/generic-app.yaml +52 -0
- package/libs/instance-factories/applications/react-app.yaml +186 -0
- package/libs/instance-factories/applications/templates/generic/backend-env-generator.ts +31 -0
- package/libs/instance-factories/applications/templates/generic/backend-package-json-generator.ts +80 -0
- package/libs/instance-factories/applications/templates/generic/backend-tsconfig-generator.ts +69 -0
- package/libs/instance-factories/applications/templates/generic/main-generator.ts +308 -0
- package/libs/instance-factories/applications/templates/react/_view-components-source.ts +555 -0
- package/libs/instance-factories/applications/templates/react/api-client-generator.ts +436 -0
- package/libs/instance-factories/applications/templates/react/api-types-generator.ts +153 -0
- package/libs/instance-factories/applications/templates/react/app-tsx-generator.ts +94 -0
- package/libs/instance-factories/applications/templates/react/env-example-generator.ts +24 -0
- package/libs/instance-factories/applications/templates/react/field-helpers-generator.ts +106 -0
- package/libs/instance-factories/applications/templates/react/gitignore-generator.ts +38 -0
- package/libs/instance-factories/applications/templates/react/index-css-generator.ts +85 -0
- package/libs/instance-factories/applications/templates/react/index-html-generator.ts +30 -0
- package/libs/instance-factories/applications/templates/react/main-tsx-generator.ts +34 -0
- package/libs/instance-factories/applications/templates/react/package-json-generator.ts +54 -0
- package/libs/instance-factories/applications/templates/react/pattern-adapter-generator.ts +179 -0
- package/libs/instance-factories/applications/templates/react/react-pattern-adapter.tsx +1347 -0
- package/libs/instance-factories/applications/templates/react/relationship-field-generator.ts +150 -0
- package/libs/instance-factories/applications/templates/react/tailwind-adapter-generator.ts +704 -0
- package/libs/instance-factories/applications/templates/react/tailwind-adapter-wrapper-generator.ts +84 -0
- package/libs/instance-factories/applications/templates/react/tsconfig-generator.ts +35 -0
- package/libs/instance-factories/applications/templates/react/use-api-hooks-generator.ts +121 -0
- package/libs/instance-factories/applications/templates/react/view-dashboard-generator.ts +150 -0
- package/libs/instance-factories/applications/templates/react/view-detail-generator.ts +150 -0
- package/libs/instance-factories/applications/templates/react/view-form-generator.ts +362 -0
- package/libs/instance-factories/applications/templates/react/view-list-generator.ts +98 -0
- package/libs/instance-factories/applications/templates/react/view-router-generator.ts +89 -0
- package/libs/instance-factories/applications/templates/react/vite-config-generator.ts +49 -0
- package/libs/instance-factories/archived/fastify-prisma.yaml +104 -0
- package/libs/instance-factories/cli/commander-js.yaml +55 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts +12 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts.map +1 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js +115 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js.map +1 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.ts +145 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.d.ts +14 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.d.ts.map +1 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.js +182 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.js.map +1 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.ts +992 -0
- package/libs/instance-factories/communication/event-emitter.yaml +56 -0
- package/libs/instance-factories/communication/rabbitmq-events.yaml +87 -0
- package/libs/instance-factories/communication/templates/eventemitter/bus-generator.ts +93 -0
- package/libs/instance-factories/communication/templates/eventemitter/publisher-generator.ts +117 -0
- package/libs/instance-factories/communication/templates/eventemitter/subscriber-generator.ts +101 -0
- package/libs/instance-factories/controllers/fastify.yaml +127 -0
- package/libs/instance-factories/controllers/templates/fastify/meta-routes-generator.ts +103 -0
- package/libs/instance-factories/controllers/templates/fastify/routes-generator.ts +389 -0
- package/libs/instance-factories/controllers/templates/fastify/server-generator.ts +76 -0
- package/libs/instance-factories/infrastructure/docker-k8s.yaml +61 -0
- package/libs/instance-factories/infrastructure/templates/docker-k8s/infrastructure-generator.ts +46 -0
- package/libs/instance-factories/orms/prisma.yaml +89 -0
- package/libs/instance-factories/orms/templates/prisma/schema-generator.ts +563 -0
- package/libs/instance-factories/orms/templates/prisma/services-generator.ts +408 -0
- package/libs/instance-factories/scaffolding/generic-scaffold.yaml +65 -0
- package/libs/instance-factories/scaffolding/templates/generic/env-example-generator.ts +73 -0
- package/libs/instance-factories/scaffolding/templates/generic/env-generator.ts +85 -0
- package/libs/instance-factories/scaffolding/templates/generic/gitignore-generator.ts +69 -0
- package/libs/instance-factories/scaffolding/templates/generic/package-json-generator.ts +176 -0
- package/libs/instance-factories/scaffolding/templates/generic/readme-generator.ts +207 -0
- package/libs/instance-factories/scaffolding/templates/generic/tsconfig-generator.ts +78 -0
- package/libs/instance-factories/scaffolding/templates/generic/tsconfig-react-generator.ts +41 -0
- package/libs/instance-factories/sdks/python-sdk.yaml +66 -0
- package/libs/instance-factories/sdks/templates/python/sdk-generator.ts +50 -0
- package/libs/instance-factories/sdks/templates/typescript/sdk-generator.ts +49 -0
- package/libs/instance-factories/sdks/typescript-sdk.yaml +59 -0
- package/libs/instance-factories/services/prisma-services.yaml +71 -0
- package/libs/instance-factories/services/templates/prisma/behavior-generator.ts +303 -0
- package/libs/instance-factories/services/templates/prisma/controller-generator.ts +532 -0
- package/libs/instance-factories/services/templates/prisma/service-generator.ts +315 -0
- package/libs/instance-factories/shared/path-resolver.ts +111 -0
- package/libs/instance-factories/storage/mongodb.yaml +79 -0
- package/libs/instance-factories/storage/postgresql.yaml +75 -0
- package/libs/instance-factories/storage/redis.yaml +79 -0
- package/libs/instance-factories/storage/templates/mongodb/config-generator.ts +15 -0
- package/libs/instance-factories/storage/templates/mongodb/docker-generator.ts +18 -0
- package/libs/instance-factories/storage/templates/postgresql/config-generator.ts +54 -0
- package/libs/instance-factories/storage/templates/postgresql/docker-generator.ts +55 -0
- package/libs/instance-factories/storage/templates/redis/config-generator.ts +16 -0
- package/libs/instance-factories/storage/templates/redis/docker-generator.ts +18 -0
- package/libs/instance-factories/test-generation.ts +192 -0
- package/libs/instance-factories/testing/templates/vitest/tests-generator.ts +51 -0
- package/libs/instance-factories/testing/vitest-tests.yaml +63 -0
- package/libs/instance-factories/tools/templates/mcp/mcp-server-generator.ts +136 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/DEPLOYMENT_GUIDE.md +630 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/HYBRID_RESOURCE_SYSTEM.md +330 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/EXTENSION_DEPLOYMENT.md +552 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/LOCAL_DEPLOYMENT.md +164 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/WEB_DEPLOYMENT.md +247 -0
- package/libs/instance-factories/tools/templates/mcp/static/package.json +92 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-enterprise.js +284 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-extension.js +139 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-local.js +74 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-web.js +156 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/copy-canonical-files.js +41 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/test-deployments.js +259 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-resources.js +231 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-simple.js +196 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/controllers/MCPServerController.ts +293 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/events/EventEmitter.ts +90 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/index.ts +24 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/interfaces/ResourceProvider.ts +15 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/models/LibrarySuggestion.ts +106 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/models/SpecVerseResource.ts +75 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/server/mcp-server.ts +239 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/CLIProxyService.ts +1501 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/EmbeddedResourcesAdapter.ts +211 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/EntityModuleService.ts +308 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/HybridResourcesProvider.ts +210 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/LibraryToolsService.ts +356 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorBridge.ts +524 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorToolsService.ts +530 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/PromptToolsService.ts +594 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/ResourcesProviderService.ts +170 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.init.test.ts +544 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.test.ts +189 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/ResourcesProviderService.test.ts +89 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/types/index.ts +110 -0
- package/libs/instance-factories/tools/templates/mcp/static/tsconfig.json +28 -0
- package/libs/instance-factories/tools/templates/vscode/static/extension.ts +1195 -0
- package/libs/instance-factories/tools/templates/vscode/static/language-configuration.json +34 -0
- package/libs/instance-factories/tools/templates/vscode/static/schemas/specverse-v3-schema.json +4279 -0
- package/libs/instance-factories/tools/templates/vscode/static/syntaxes/specverse.tmLanguage.json +138 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/README.md +74 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/complete-specverse-colors.json +122 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-basic-theme.json +65 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-complete-theme.json +123 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-theme-colors.json +64 -0
- package/libs/instance-factories/tools/templates/vscode/vscode-extension-generator.ts +214 -0
- package/libs/instance-factories/validation/templates/zod/validation-generator.ts +46 -0
- package/libs/instance-factories/validation/zod.yaml +56 -0
- package/libs/instance-factories/views/index.d.ts +13 -0
- package/libs/instance-factories/views/index.d.ts.map +1 -0
- package/libs/instance-factories/views/index.js +18 -0
- package/libs/instance-factories/views/index.js.map +1 -0
- package/libs/instance-factories/views/index.ts +45 -0
- package/libs/instance-factories/views/react-components.yaml +129 -0
- package/libs/instance-factories/views/templates/ARCHITECTURE.md +198 -0
- package/libs/instance-factories/views/templates/react/adapters/antd-adapter.ts +869 -0
- package/libs/instance-factories/views/templates/react/adapters/mui-adapter.ts +953 -0
- package/libs/instance-factories/views/templates/react/adapters/shadcn-adapter.ts +806 -0
- package/libs/instance-factories/views/templates/react/app-generator.ts +55 -0
- package/libs/instance-factories/views/templates/react/components-generator.ts +391 -0
- package/libs/instance-factories/views/templates/react/forms-generator.ts +343 -0
- package/libs/instance-factories/views/templates/react/frontend-package-json-generator.ts +54 -0
- package/libs/instance-factories/views/templates/react/hooks-generator.ts +122 -0
- package/libs/instance-factories/views/templates/react/index-css-generator.ts +209 -0
- package/libs/instance-factories/views/templates/react/index-html-generator.ts +34 -0
- package/libs/instance-factories/views/templates/react/main-tsx-generator.ts +29 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.d.ts +152 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.js +398 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.js.map +1 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.ts +533 -0
- package/libs/instance-factories/views/templates/react/router-generator.ts +197 -0
- package/libs/instance-factories/views/templates/react/router-generic-generator.ts +103 -0
- package/libs/instance-factories/views/templates/react/spec-json-generator.ts +17 -0
- package/libs/instance-factories/views/templates/react/types-generator.ts +76 -0
- package/libs/instance-factories/views/templates/react/views-metadata-generator.ts +42 -0
- package/libs/instance-factories/views/templates/react/vite-config-generator.ts +38 -0
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.js.map +1 -0
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.ts +474 -0
- package/libs/instance-factories/views/templates/shared/__tests__/composite-patterns.test.ts +242 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.d.ts +77 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.js +47 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.ts +142 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts +63 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.js +822 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.ts +908 -0
- package/libs/instance-factories/views/templates/shared/base-generator.d.ts +247 -0
- package/libs/instance-factories/views/templates/shared/base-generator.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/base-generator.js +363 -0
- package/libs/instance-factories/views/templates/shared/base-generator.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/base-generator.ts +608 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.d.ts +254 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.js +602 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.ts +803 -0
- package/libs/instance-factories/views/templates/shared/composite-pattern-types.ts +250 -0
- package/libs/instance-factories/views/templates/shared/composite-patterns.ts +535 -0
- package/libs/instance-factories/views/templates/shared/index.ts +68 -0
- package/libs/instance-factories/views/templates/shared/pattern-validator.ts +279 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.d.ts +149 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.js +580 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.ts +700 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts +143 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.js +420 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.ts +539 -0
- package/package.json +42 -0
- package/schema/SPECVERSE-SCHEMA.json +4274 -0
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Atomic Components Registry
|
|
3
|
+
*
|
|
4
|
+
* Defines all 49 atomic component types from SpecVerse v3.4.0 schema.
|
|
5
|
+
* Each type has metadata about its purpose, properties, and usage patterns.
|
|
6
|
+
*
|
|
7
|
+
* This registry is framework-agnostic. UI library adapters (shadcn, MUI, etc.)
|
|
8
|
+
* implement these types using their specific components.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Complete registry of all 49 atomic component types
|
|
12
|
+
*/
|
|
13
|
+
export const ATOMIC_COMPONENTS_REGISTRY = {
|
|
14
|
+
// =========================================================================
|
|
15
|
+
// DATA DISPLAY (9 types)
|
|
16
|
+
// =========================================================================
|
|
17
|
+
table: {
|
|
18
|
+
type: 'table',
|
|
19
|
+
name: 'Table',
|
|
20
|
+
category: 'data-display',
|
|
21
|
+
description: 'Tabular data display with rows, columns, sorting, and pagination',
|
|
22
|
+
properties: ['columns', 'sortable', 'filterable', 'pagination', 'compact', 'selectable', 'exportable'],
|
|
23
|
+
canHaveChildren: false,
|
|
24
|
+
example: `
|
|
25
|
+
taskTable:
|
|
26
|
+
type: table
|
|
27
|
+
model: Task
|
|
28
|
+
columns: [title, status, priority, assignee, dueDate]
|
|
29
|
+
features: [sorting, filtering, pagination]
|
|
30
|
+
`
|
|
31
|
+
},
|
|
32
|
+
list: {
|
|
33
|
+
type: 'list',
|
|
34
|
+
name: 'List',
|
|
35
|
+
category: 'data-display',
|
|
36
|
+
description: 'Vertical list of items, often with avatars or icons',
|
|
37
|
+
properties: ['items', 'itemTemplate', 'dividers', 'dense', 'interactive'],
|
|
38
|
+
canHaveChildren: true,
|
|
39
|
+
example: `
|
|
40
|
+
userList:
|
|
41
|
+
type: list
|
|
42
|
+
model: User
|
|
43
|
+
properties:
|
|
44
|
+
dense: true
|
|
45
|
+
dividers: true
|
|
46
|
+
`
|
|
47
|
+
},
|
|
48
|
+
grid: {
|
|
49
|
+
type: 'grid',
|
|
50
|
+
name: 'Grid',
|
|
51
|
+
category: 'data-display',
|
|
52
|
+
description: 'Grid layout for cards or items',
|
|
53
|
+
properties: ['columns', 'gap', 'responsive', 'itemsPerRow'],
|
|
54
|
+
canHaveChildren: true,
|
|
55
|
+
example: `
|
|
56
|
+
projectGrid:
|
|
57
|
+
type: grid
|
|
58
|
+
properties:
|
|
59
|
+
columns: 3
|
|
60
|
+
gap: medium
|
|
61
|
+
responsive: true
|
|
62
|
+
`
|
|
63
|
+
},
|
|
64
|
+
card: {
|
|
65
|
+
type: 'card',
|
|
66
|
+
name: 'Card',
|
|
67
|
+
category: 'data-display',
|
|
68
|
+
description: 'Container with optional header, content, and actions',
|
|
69
|
+
properties: ['title', 'subtitle', 'variant', 'elevation', 'clickable', 'hoverable', 'compact', 'showTrend', 'metric'],
|
|
70
|
+
canHaveChildren: true,
|
|
71
|
+
example: `
|
|
72
|
+
budgetCard:
|
|
73
|
+
type: card
|
|
74
|
+
properties:
|
|
75
|
+
variant: metric
|
|
76
|
+
showTrend: true
|
|
77
|
+
metric: budget
|
|
78
|
+
`
|
|
79
|
+
},
|
|
80
|
+
chart: {
|
|
81
|
+
type: 'chart',
|
|
82
|
+
name: 'Chart',
|
|
83
|
+
category: 'data-display',
|
|
84
|
+
description: 'Data visualization (line, bar, pie, etc.)',
|
|
85
|
+
properties: ['chartType', 'data', 'responsive', 'showLegend', 'interactive', 'exportable'],
|
|
86
|
+
canHaveChildren: false,
|
|
87
|
+
example: `
|
|
88
|
+
trendChart:
|
|
89
|
+
type: chart
|
|
90
|
+
properties:
|
|
91
|
+
chartType: trend
|
|
92
|
+
responsive: true
|
|
93
|
+
showLegend: true
|
|
94
|
+
`
|
|
95
|
+
},
|
|
96
|
+
tree: {
|
|
97
|
+
type: 'tree',
|
|
98
|
+
name: 'Tree',
|
|
99
|
+
category: 'data-display',
|
|
100
|
+
description: 'Hierarchical tree structure',
|
|
101
|
+
properties: ['data', 'expandable', 'selectable', 'checkboxes', 'defaultExpanded'],
|
|
102
|
+
canHaveChildren: false,
|
|
103
|
+
example: `
|
|
104
|
+
categoryTree:
|
|
105
|
+
type: tree
|
|
106
|
+
properties:
|
|
107
|
+
expandable: true
|
|
108
|
+
defaultExpanded: false
|
|
109
|
+
`
|
|
110
|
+
},
|
|
111
|
+
timeline: {
|
|
112
|
+
type: 'timeline',
|
|
113
|
+
name: 'Timeline',
|
|
114
|
+
category: 'data-display',
|
|
115
|
+
description: 'Chronological event timeline',
|
|
116
|
+
properties: ['orientation', 'showDateMarkers', 'showDuration', 'showUser'],
|
|
117
|
+
canHaveChildren: true,
|
|
118
|
+
example: `
|
|
119
|
+
activityTimeline:
|
|
120
|
+
type: timeline
|
|
121
|
+
properties:
|
|
122
|
+
orientation: vertical
|
|
123
|
+
showDateMarkers: true
|
|
124
|
+
`
|
|
125
|
+
},
|
|
126
|
+
avatar: {
|
|
127
|
+
type: 'avatar',
|
|
128
|
+
name: 'Avatar',
|
|
129
|
+
category: 'data-display',
|
|
130
|
+
description: 'User avatar or profile image',
|
|
131
|
+
properties: ['src', 'alt', 'size', 'shape', 'initials', 'badge'],
|
|
132
|
+
canHaveChildren: false,
|
|
133
|
+
example: `
|
|
134
|
+
userAvatar:
|
|
135
|
+
type: avatar
|
|
136
|
+
properties:
|
|
137
|
+
size: medium
|
|
138
|
+
shape: circle
|
|
139
|
+
`
|
|
140
|
+
},
|
|
141
|
+
image: {
|
|
142
|
+
type: 'image',
|
|
143
|
+
name: 'Image',
|
|
144
|
+
category: 'data-display',
|
|
145
|
+
description: 'Image display with optional caption',
|
|
146
|
+
properties: ['src', 'alt', 'width', 'height', 'objectFit', 'caption', 'lazy'],
|
|
147
|
+
canHaveChildren: false,
|
|
148
|
+
example: `
|
|
149
|
+
projectImage:
|
|
150
|
+
type: image
|
|
151
|
+
properties:
|
|
152
|
+
objectFit: cover
|
|
153
|
+
lazy: true
|
|
154
|
+
`
|
|
155
|
+
},
|
|
156
|
+
// =========================================================================
|
|
157
|
+
// FORMS & INPUTS (11 types)
|
|
158
|
+
// =========================================================================
|
|
159
|
+
form: {
|
|
160
|
+
type: 'form',
|
|
161
|
+
name: 'Form',
|
|
162
|
+
category: 'forms-inputs',
|
|
163
|
+
description: 'Form container with validation and submission',
|
|
164
|
+
properties: ['onSubmit', 'validation', 'autoSave', 'showValidation', 'layout'],
|
|
165
|
+
canHaveChildren: true,
|
|
166
|
+
example: `
|
|
167
|
+
taskForm:
|
|
168
|
+
type: form
|
|
169
|
+
properties:
|
|
170
|
+
autoSave: false
|
|
171
|
+
showValidation: true
|
|
172
|
+
`
|
|
173
|
+
},
|
|
174
|
+
input: {
|
|
175
|
+
type: 'input',
|
|
176
|
+
name: 'Input',
|
|
177
|
+
category: 'forms-inputs',
|
|
178
|
+
description: 'Text input field',
|
|
179
|
+
properties: ['label', 'placeholder', 'required', 'type', 'disabled', 'error', 'helperText', 'icon', 'multiline'],
|
|
180
|
+
canHaveChildren: false,
|
|
181
|
+
example: `
|
|
182
|
+
titleInput:
|
|
183
|
+
type: input
|
|
184
|
+
properties:
|
|
185
|
+
label: "Title"
|
|
186
|
+
placeholder: "Enter task title"
|
|
187
|
+
required: true
|
|
188
|
+
`
|
|
189
|
+
},
|
|
190
|
+
textarea: {
|
|
191
|
+
type: 'textarea',
|
|
192
|
+
name: 'Textarea',
|
|
193
|
+
category: 'forms-inputs',
|
|
194
|
+
description: 'Multi-line text input',
|
|
195
|
+
properties: ['label', 'placeholder', 'rows', 'required', 'maxLength', 'resize'],
|
|
196
|
+
canHaveChildren: false,
|
|
197
|
+
example: `
|
|
198
|
+
descriptionInput:
|
|
199
|
+
type: textarea
|
|
200
|
+
properties:
|
|
201
|
+
label: "Description"
|
|
202
|
+
rows: 4
|
|
203
|
+
`
|
|
204
|
+
},
|
|
205
|
+
select: {
|
|
206
|
+
type: 'select',
|
|
207
|
+
name: 'Select',
|
|
208
|
+
category: 'forms-inputs',
|
|
209
|
+
description: 'Dropdown selection',
|
|
210
|
+
properties: ['label', 'options', 'required', 'multiple', 'placeholder', 'searchable'],
|
|
211
|
+
canHaveChildren: false,
|
|
212
|
+
example: `
|
|
213
|
+
statusSelect:
|
|
214
|
+
type: select
|
|
215
|
+
properties:
|
|
216
|
+
label: "Status"
|
|
217
|
+
options: [todo, in_progress, done]
|
|
218
|
+
required: true
|
|
219
|
+
`
|
|
220
|
+
},
|
|
221
|
+
checkbox: {
|
|
222
|
+
type: 'checkbox',
|
|
223
|
+
name: 'Checkbox',
|
|
224
|
+
category: 'forms-inputs',
|
|
225
|
+
description: 'Checkbox for boolean values',
|
|
226
|
+
properties: ['label', 'checked', 'disabled', 'indeterminate'],
|
|
227
|
+
canHaveChildren: false,
|
|
228
|
+
example: `
|
|
229
|
+
completedCheckbox:
|
|
230
|
+
type: checkbox
|
|
231
|
+
properties:
|
|
232
|
+
label: "Completed"
|
|
233
|
+
`
|
|
234
|
+
},
|
|
235
|
+
radio: {
|
|
236
|
+
type: 'radio',
|
|
237
|
+
name: 'Radio',
|
|
238
|
+
category: 'forms-inputs',
|
|
239
|
+
description: 'Radio button group',
|
|
240
|
+
properties: ['label', 'options', 'orientation', 'required'],
|
|
241
|
+
canHaveChildren: false,
|
|
242
|
+
example: `
|
|
243
|
+
priorityRadio:
|
|
244
|
+
type: radio
|
|
245
|
+
properties:
|
|
246
|
+
label: "Priority"
|
|
247
|
+
options: [low, medium, high]
|
|
248
|
+
orientation: horizontal
|
|
249
|
+
`
|
|
250
|
+
},
|
|
251
|
+
slider: {
|
|
252
|
+
type: 'slider',
|
|
253
|
+
name: 'Slider',
|
|
254
|
+
category: 'forms-inputs',
|
|
255
|
+
description: 'Slider for numeric ranges',
|
|
256
|
+
properties: ['label', 'min', 'max', 'step', 'value', 'marks', 'showValue'],
|
|
257
|
+
canHaveChildren: false,
|
|
258
|
+
example: `
|
|
259
|
+
progressSlider:
|
|
260
|
+
type: slider
|
|
261
|
+
properties:
|
|
262
|
+
label: "Progress"
|
|
263
|
+
min: 0
|
|
264
|
+
max: 100
|
|
265
|
+
showValue: true
|
|
266
|
+
`
|
|
267
|
+
},
|
|
268
|
+
switch: {
|
|
269
|
+
type: 'switch',
|
|
270
|
+
name: 'Switch',
|
|
271
|
+
category: 'forms-inputs',
|
|
272
|
+
description: 'Toggle switch for boolean values',
|
|
273
|
+
properties: ['label', 'checked', 'disabled', 'size'],
|
|
274
|
+
canHaveChildren: false,
|
|
275
|
+
example: `
|
|
276
|
+
notificationsSwitch:
|
|
277
|
+
type: switch
|
|
278
|
+
properties:
|
|
279
|
+
label: "Enable Notifications"
|
|
280
|
+
`
|
|
281
|
+
},
|
|
282
|
+
autocomplete: {
|
|
283
|
+
type: 'autocomplete',
|
|
284
|
+
name: 'Autocomplete',
|
|
285
|
+
category: 'forms-inputs',
|
|
286
|
+
description: 'Searchable dropdown with autocomplete',
|
|
287
|
+
properties: ['label', 'options', 'multiple', 'searchable', 'placeholder', 'limit', 'freeSolo'],
|
|
288
|
+
canHaveChildren: false,
|
|
289
|
+
example: `
|
|
290
|
+
assigneeSelect:
|
|
291
|
+
type: autocomplete
|
|
292
|
+
model: User
|
|
293
|
+
properties:
|
|
294
|
+
label: "Assignee"
|
|
295
|
+
searchable: true
|
|
296
|
+
`
|
|
297
|
+
},
|
|
298
|
+
datepicker: {
|
|
299
|
+
type: 'datepicker',
|
|
300
|
+
name: 'DatePicker',
|
|
301
|
+
category: 'forms-inputs',
|
|
302
|
+
description: 'Date selection input',
|
|
303
|
+
properties: ['label', 'format', 'minDate', 'maxDate', 'required', 'showTime', 'range'],
|
|
304
|
+
canHaveChildren: false,
|
|
305
|
+
example: `
|
|
306
|
+
dueDatePicker:
|
|
307
|
+
type: datepicker
|
|
308
|
+
properties:
|
|
309
|
+
label: "Due Date"
|
|
310
|
+
format: "MM/DD/YYYY"
|
|
311
|
+
`
|
|
312
|
+
},
|
|
313
|
+
timepicker: {
|
|
314
|
+
type: 'timepicker',
|
|
315
|
+
name: 'TimePicker',
|
|
316
|
+
category: 'forms-inputs',
|
|
317
|
+
description: 'Time selection input',
|
|
318
|
+
properties: ['label', 'format', 'required', 'step', 'use24Hour'],
|
|
319
|
+
canHaveChildren: false,
|
|
320
|
+
example: `
|
|
321
|
+
meetingTime:
|
|
322
|
+
type: timepicker
|
|
323
|
+
properties:
|
|
324
|
+
label: "Meeting Time"
|
|
325
|
+
use24Hour: false
|
|
326
|
+
`
|
|
327
|
+
},
|
|
328
|
+
// =========================================================================
|
|
329
|
+
// ACTIONS (5 types)
|
|
330
|
+
// =========================================================================
|
|
331
|
+
button: {
|
|
332
|
+
type: 'button',
|
|
333
|
+
name: 'Button',
|
|
334
|
+
category: 'actions',
|
|
335
|
+
description: 'Clickable button',
|
|
336
|
+
properties: ['label', 'variant', 'size', 'disabled', 'loading', 'icon', 'onClick', 'type'],
|
|
337
|
+
canHaveChildren: false,
|
|
338
|
+
example: `
|
|
339
|
+
submitButton:
|
|
340
|
+
type: button
|
|
341
|
+
properties:
|
|
342
|
+
label: "Submit"
|
|
343
|
+
variant: primary
|
|
344
|
+
type: submit
|
|
345
|
+
`
|
|
346
|
+
},
|
|
347
|
+
'button-group': {
|
|
348
|
+
type: 'button-group',
|
|
349
|
+
name: 'ButtonGroup',
|
|
350
|
+
category: 'actions',
|
|
351
|
+
description: 'Group of related buttons',
|
|
352
|
+
properties: ['orientation', 'variant', 'size', 'buttons'],
|
|
353
|
+
canHaveChildren: true,
|
|
354
|
+
example: `
|
|
355
|
+
actions:
|
|
356
|
+
type: button-group
|
|
357
|
+
properties:
|
|
358
|
+
orientation: horizontal
|
|
359
|
+
uiComponents:
|
|
360
|
+
editButton: { type: button }
|
|
361
|
+
deleteButton: { type: button }
|
|
362
|
+
`
|
|
363
|
+
},
|
|
364
|
+
link: {
|
|
365
|
+
type: 'link',
|
|
366
|
+
name: 'Link',
|
|
367
|
+
category: 'actions',
|
|
368
|
+
description: 'Hyperlink or navigation link',
|
|
369
|
+
properties: ['href', 'label', 'external', 'underline', 'color'],
|
|
370
|
+
canHaveChildren: false,
|
|
371
|
+
example: `
|
|
372
|
+
viewDetails:
|
|
373
|
+
type: link
|
|
374
|
+
properties:
|
|
375
|
+
label: "View Details"
|
|
376
|
+
href: "/tasks/:id"
|
|
377
|
+
`
|
|
378
|
+
},
|
|
379
|
+
icon: {
|
|
380
|
+
type: 'icon',
|
|
381
|
+
name: 'Icon',
|
|
382
|
+
category: 'actions',
|
|
383
|
+
description: 'Icon display',
|
|
384
|
+
properties: ['name', 'size', 'color', 'clickable', 'tooltip'],
|
|
385
|
+
canHaveChildren: false,
|
|
386
|
+
example: `
|
|
387
|
+
deleteIcon:
|
|
388
|
+
type: icon
|
|
389
|
+
properties:
|
|
390
|
+
name: "trash"
|
|
391
|
+
color: danger
|
|
392
|
+
`
|
|
393
|
+
},
|
|
394
|
+
menu: {
|
|
395
|
+
type: 'menu',
|
|
396
|
+
name: 'Menu',
|
|
397
|
+
category: 'actions',
|
|
398
|
+
description: 'Dropdown menu with actions',
|
|
399
|
+
properties: ['items', 'trigger', 'placement'],
|
|
400
|
+
canHaveChildren: true,
|
|
401
|
+
example: `
|
|
402
|
+
contextMenu:
|
|
403
|
+
type: menu
|
|
404
|
+
properties:
|
|
405
|
+
trigger: click
|
|
406
|
+
placement: bottom-start
|
|
407
|
+
`
|
|
408
|
+
},
|
|
409
|
+
// =========================================================================
|
|
410
|
+
// OVERLAYS & FEEDBACK (9 types)
|
|
411
|
+
// =========================================================================
|
|
412
|
+
modal: {
|
|
413
|
+
type: 'modal',
|
|
414
|
+
name: 'Modal',
|
|
415
|
+
category: 'overlays-feedback',
|
|
416
|
+
description: 'Modal dialog overlay',
|
|
417
|
+
properties: ['title', 'size', 'closeOnBackdrop', 'closeButton', 'footer'],
|
|
418
|
+
canHaveChildren: true,
|
|
419
|
+
example: `
|
|
420
|
+
confirmDialog:
|
|
421
|
+
type: modal
|
|
422
|
+
properties:
|
|
423
|
+
title: "Confirm Deletion"
|
|
424
|
+
size: small
|
|
425
|
+
closeOnBackdrop: false
|
|
426
|
+
`
|
|
427
|
+
},
|
|
428
|
+
dialog: {
|
|
429
|
+
type: 'dialog',
|
|
430
|
+
name: 'Dialog',
|
|
431
|
+
category: 'overlays-feedback',
|
|
432
|
+
description: 'Dialog box (similar to modal, often simpler)',
|
|
433
|
+
properties: ['title', 'message', 'actions', 'variant'],
|
|
434
|
+
canHaveChildren: true,
|
|
435
|
+
example: `
|
|
436
|
+
alertDialog:
|
|
437
|
+
type: dialog
|
|
438
|
+
properties:
|
|
439
|
+
title: "Alert"
|
|
440
|
+
variant: warning
|
|
441
|
+
`
|
|
442
|
+
},
|
|
443
|
+
drawer: {
|
|
444
|
+
type: 'drawer',
|
|
445
|
+
name: 'Drawer',
|
|
446
|
+
category: 'overlays-feedback',
|
|
447
|
+
description: 'Slide-out panel from edge',
|
|
448
|
+
properties: ['position', 'width', 'closeOnBackdrop', 'persistent'],
|
|
449
|
+
canHaveChildren: true,
|
|
450
|
+
example: `
|
|
451
|
+
filterDrawer:
|
|
452
|
+
type: drawer
|
|
453
|
+
properties:
|
|
454
|
+
position: right
|
|
455
|
+
width: 400
|
|
456
|
+
`
|
|
457
|
+
},
|
|
458
|
+
popover: {
|
|
459
|
+
type: 'popover',
|
|
460
|
+
name: 'Popover',
|
|
461
|
+
category: 'overlays-feedback',
|
|
462
|
+
description: 'Floating content container',
|
|
463
|
+
properties: ['trigger', 'placement', 'arrow', 'offset'],
|
|
464
|
+
canHaveChildren: true,
|
|
465
|
+
example: `
|
|
466
|
+
helpPopover:
|
|
467
|
+
type: popover
|
|
468
|
+
properties:
|
|
469
|
+
trigger: hover
|
|
470
|
+
placement: top
|
|
471
|
+
`
|
|
472
|
+
},
|
|
473
|
+
tooltip: {
|
|
474
|
+
type: 'tooltip',
|
|
475
|
+
name: 'Tooltip',
|
|
476
|
+
category: 'overlays-feedback',
|
|
477
|
+
description: 'Brief informational tooltip',
|
|
478
|
+
properties: ['content', 'placement', 'arrow', 'delay'],
|
|
479
|
+
canHaveChildren: false,
|
|
480
|
+
example: `
|
|
481
|
+
infoTooltip:
|
|
482
|
+
type: tooltip
|
|
483
|
+
properties:
|
|
484
|
+
content: "Additional information"
|
|
485
|
+
placement: top
|
|
486
|
+
`
|
|
487
|
+
},
|
|
488
|
+
alert: {
|
|
489
|
+
type: 'alert',
|
|
490
|
+
name: 'Alert',
|
|
491
|
+
category: 'overlays-feedback',
|
|
492
|
+
description: 'Alert or notification message',
|
|
493
|
+
properties: ['variant', 'title', 'message', 'closable', 'icon'],
|
|
494
|
+
canHaveChildren: false,
|
|
495
|
+
example: `
|
|
496
|
+
successAlert:
|
|
497
|
+
type: alert
|
|
498
|
+
properties:
|
|
499
|
+
variant: success
|
|
500
|
+
message: "Task created successfully"
|
|
501
|
+
`
|
|
502
|
+
},
|
|
503
|
+
snackbar: {
|
|
504
|
+
type: 'snackbar',
|
|
505
|
+
name: 'Snackbar',
|
|
506
|
+
category: 'overlays-feedback',
|
|
507
|
+
description: 'Temporary notification (toast)',
|
|
508
|
+
properties: ['message', 'duration', 'position', 'action', 'variant'],
|
|
509
|
+
canHaveChildren: false,
|
|
510
|
+
example: `
|
|
511
|
+
notification:
|
|
512
|
+
type: snackbar
|
|
513
|
+
properties:
|
|
514
|
+
message: "Changes saved"
|
|
515
|
+
duration: 3000
|
|
516
|
+
position: bottom-right
|
|
517
|
+
`
|
|
518
|
+
},
|
|
519
|
+
badge: {
|
|
520
|
+
type: 'badge',
|
|
521
|
+
name: 'Badge',
|
|
522
|
+
category: 'overlays-feedback',
|
|
523
|
+
description: 'Small status indicator or count',
|
|
524
|
+
properties: ['content', 'variant', 'position', 'max', 'dot'],
|
|
525
|
+
canHaveChildren: false,
|
|
526
|
+
example: `
|
|
527
|
+
notificationBadge:
|
|
528
|
+
type: badge
|
|
529
|
+
properties:
|
|
530
|
+
content: 5
|
|
531
|
+
variant: error
|
|
532
|
+
`
|
|
533
|
+
},
|
|
534
|
+
spinner: {
|
|
535
|
+
type: 'spinner',
|
|
536
|
+
name: 'Spinner',
|
|
537
|
+
category: 'overlays-feedback',
|
|
538
|
+
description: 'Loading spinner',
|
|
539
|
+
properties: ['size', 'color', 'thickness'],
|
|
540
|
+
canHaveChildren: false,
|
|
541
|
+
example: `
|
|
542
|
+
loadingSpinner:
|
|
543
|
+
type: spinner
|
|
544
|
+
properties:
|
|
545
|
+
size: medium
|
|
546
|
+
`
|
|
547
|
+
},
|
|
548
|
+
// =========================================================================
|
|
549
|
+
// NAVIGATION (5 types)
|
|
550
|
+
// =========================================================================
|
|
551
|
+
tabs: {
|
|
552
|
+
type: 'tabs',
|
|
553
|
+
name: 'Tabs',
|
|
554
|
+
category: 'navigation',
|
|
555
|
+
description: 'Tabbed navigation',
|
|
556
|
+
properties: ['orientation', 'variant', 'sections', 'showProgress'],
|
|
557
|
+
canHaveChildren: true,
|
|
558
|
+
example: `
|
|
559
|
+
profileTabs:
|
|
560
|
+
type: tabs
|
|
561
|
+
properties:
|
|
562
|
+
sections: [about, activity, settings]
|
|
563
|
+
`
|
|
564
|
+
},
|
|
565
|
+
breadcrumb: {
|
|
566
|
+
type: 'breadcrumb',
|
|
567
|
+
name: 'Breadcrumb',
|
|
568
|
+
category: 'navigation',
|
|
569
|
+
description: 'Breadcrumb navigation trail',
|
|
570
|
+
properties: ['items', 'separator', 'maxItems'],
|
|
571
|
+
canHaveChildren: false,
|
|
572
|
+
example: `
|
|
573
|
+
pageBreadcrumb:
|
|
574
|
+
type: breadcrumb
|
|
575
|
+
properties:
|
|
576
|
+
separator: "/"
|
|
577
|
+
`
|
|
578
|
+
},
|
|
579
|
+
navbar: {
|
|
580
|
+
type: 'navbar',
|
|
581
|
+
name: 'Navbar',
|
|
582
|
+
category: 'navigation',
|
|
583
|
+
description: 'Top navigation bar',
|
|
584
|
+
properties: ['brand', 'items', 'sticky', 'transparent'],
|
|
585
|
+
canHaveChildren: true,
|
|
586
|
+
example: `
|
|
587
|
+
mainNav:
|
|
588
|
+
type: navbar
|
|
589
|
+
properties:
|
|
590
|
+
sticky: true
|
|
591
|
+
`
|
|
592
|
+
},
|
|
593
|
+
sidebar: {
|
|
594
|
+
type: 'sidebar',
|
|
595
|
+
name: 'Sidebar',
|
|
596
|
+
category: 'navigation',
|
|
597
|
+
description: 'Side navigation menu',
|
|
598
|
+
properties: ['items', 'collapsible', 'width', 'position'],
|
|
599
|
+
canHaveChildren: true,
|
|
600
|
+
example: `
|
|
601
|
+
appSidebar:
|
|
602
|
+
type: sidebar
|
|
603
|
+
properties:
|
|
604
|
+
collapsible: true
|
|
605
|
+
position: left
|
|
606
|
+
`
|
|
607
|
+
},
|
|
608
|
+
pagination: {
|
|
609
|
+
type: 'pagination',
|
|
610
|
+
name: 'Pagination',
|
|
611
|
+
category: 'navigation',
|
|
612
|
+
description: 'Page navigation controls',
|
|
613
|
+
properties: ['pageSize', 'total', 'showSizeChanger', 'showTotal'],
|
|
614
|
+
canHaveChildren: false,
|
|
615
|
+
example: `
|
|
616
|
+
tablePagination:
|
|
617
|
+
type: pagination
|
|
618
|
+
properties:
|
|
619
|
+
pageSize: 25
|
|
620
|
+
showSizeChanger: true
|
|
621
|
+
`
|
|
622
|
+
},
|
|
623
|
+
// =========================================================================
|
|
624
|
+
// LAYOUT (6 types)
|
|
625
|
+
// =========================================================================
|
|
626
|
+
accordion: {
|
|
627
|
+
type: 'accordion',
|
|
628
|
+
name: 'Accordion',
|
|
629
|
+
category: 'layout',
|
|
630
|
+
description: 'Expandable/collapsible sections',
|
|
631
|
+
properties: ['allowMultiple', 'defaultExpanded', 'variant'],
|
|
632
|
+
canHaveChildren: true,
|
|
633
|
+
example: `
|
|
634
|
+
faqAccordion:
|
|
635
|
+
type: accordion
|
|
636
|
+
properties:
|
|
637
|
+
allowMultiple: false
|
|
638
|
+
`
|
|
639
|
+
},
|
|
640
|
+
carousel: {
|
|
641
|
+
type: 'carousel',
|
|
642
|
+
name: 'Carousel',
|
|
643
|
+
category: 'layout',
|
|
644
|
+
description: 'Slideshow of items',
|
|
645
|
+
properties: ['autoplay', 'interval', 'showArrows', 'showDots', 'infinite'],
|
|
646
|
+
canHaveChildren: true,
|
|
647
|
+
example: `
|
|
648
|
+
imageCarousel:
|
|
649
|
+
type: carousel
|
|
650
|
+
properties:
|
|
651
|
+
autoplay: true
|
|
652
|
+
interval: 5000
|
|
653
|
+
`
|
|
654
|
+
},
|
|
655
|
+
container: {
|
|
656
|
+
type: 'container',
|
|
657
|
+
name: 'Container',
|
|
658
|
+
category: 'layout',
|
|
659
|
+
description: 'Generic layout container',
|
|
660
|
+
properties: ['layout', 'gap', 'padding', 'alignment', 'scrollable', 'renderType', 'allowDrop'],
|
|
661
|
+
canHaveChildren: true,
|
|
662
|
+
example: `
|
|
663
|
+
boardContainer:
|
|
664
|
+
type: container
|
|
665
|
+
properties:
|
|
666
|
+
layout: horizontal
|
|
667
|
+
scrollable: true
|
|
668
|
+
`
|
|
669
|
+
},
|
|
670
|
+
divider: {
|
|
671
|
+
type: 'divider',
|
|
672
|
+
name: 'Divider',
|
|
673
|
+
category: 'layout',
|
|
674
|
+
description: 'Visual separator',
|
|
675
|
+
properties: ['orientation', 'variant', 'spacing'],
|
|
676
|
+
canHaveChildren: false,
|
|
677
|
+
example: `
|
|
678
|
+
sectionDivider:
|
|
679
|
+
type: divider
|
|
680
|
+
properties:
|
|
681
|
+
orientation: horizontal
|
|
682
|
+
`
|
|
683
|
+
},
|
|
684
|
+
header: {
|
|
685
|
+
type: 'header',
|
|
686
|
+
name: 'Header',
|
|
687
|
+
category: 'layout',
|
|
688
|
+
description: 'Header section',
|
|
689
|
+
properties: ['title', 'subtitle', 'showAvatar', 'showCover', 'actions'],
|
|
690
|
+
canHaveChildren: true,
|
|
691
|
+
example: `
|
|
692
|
+
pageHeader:
|
|
693
|
+
type: header
|
|
694
|
+
properties:
|
|
695
|
+
title: "Dashboard"
|
|
696
|
+
`
|
|
697
|
+
},
|
|
698
|
+
footer: {
|
|
699
|
+
type: 'footer',
|
|
700
|
+
name: 'Footer',
|
|
701
|
+
category: 'layout',
|
|
702
|
+
description: 'Footer section',
|
|
703
|
+
properties: ['content', 'links', 'copyright', 'sticky'],
|
|
704
|
+
canHaveChildren: true,
|
|
705
|
+
example: `
|
|
706
|
+
pageFooter:
|
|
707
|
+
type: footer
|
|
708
|
+
properties:
|
|
709
|
+
copyright: "2025 Company"
|
|
710
|
+
`
|
|
711
|
+
},
|
|
712
|
+
// =========================================================================
|
|
713
|
+
// PROGRESS (2 types)
|
|
714
|
+
// =========================================================================
|
|
715
|
+
'progress-bar': {
|
|
716
|
+
type: 'progress-bar',
|
|
717
|
+
name: 'ProgressBar',
|
|
718
|
+
category: 'progress',
|
|
719
|
+
description: 'Linear progress indicator',
|
|
720
|
+
properties: ['value', 'max', 'label', 'variant', 'animated'],
|
|
721
|
+
canHaveChildren: false,
|
|
722
|
+
example: `
|
|
723
|
+
taskProgress:
|
|
724
|
+
type: progress-bar
|
|
725
|
+
properties:
|
|
726
|
+
value: 75
|
|
727
|
+
max: 100
|
|
728
|
+
label: true
|
|
729
|
+
`
|
|
730
|
+
},
|
|
731
|
+
'progress-circle': {
|
|
732
|
+
type: 'progress-circle',
|
|
733
|
+
name: 'ProgressCircle',
|
|
734
|
+
category: 'progress',
|
|
735
|
+
description: 'Circular progress indicator',
|
|
736
|
+
properties: ['value', 'max', 'size', 'thickness', 'label'],
|
|
737
|
+
canHaveChildren: false,
|
|
738
|
+
example: `
|
|
739
|
+
completionProgress:
|
|
740
|
+
type: progress-circle
|
|
741
|
+
properties:
|
|
742
|
+
value: 75
|
|
743
|
+
size: large
|
|
744
|
+
`
|
|
745
|
+
},
|
|
746
|
+
// =========================================================================
|
|
747
|
+
// SPECIALIZED (2 types)
|
|
748
|
+
// =========================================================================
|
|
749
|
+
searchBar: {
|
|
750
|
+
type: 'searchBar',
|
|
751
|
+
name: 'SearchBar',
|
|
752
|
+
category: 'specialized',
|
|
753
|
+
description: 'Search input with icon and actions',
|
|
754
|
+
properties: ['placeholder', 'onSearch', 'showClear', 'autofocus'],
|
|
755
|
+
canHaveChildren: false,
|
|
756
|
+
example: `
|
|
757
|
+
taskSearch:
|
|
758
|
+
type: searchBar
|
|
759
|
+
properties:
|
|
760
|
+
placeholder: "Search tasks..."
|
|
761
|
+
showClear: true
|
|
762
|
+
`
|
|
763
|
+
},
|
|
764
|
+
filterPanel: {
|
|
765
|
+
type: 'filterPanel',
|
|
766
|
+
name: 'FilterPanel',
|
|
767
|
+
category: 'specialized',
|
|
768
|
+
description: 'Panel with multiple filter controls',
|
|
769
|
+
properties: ['position', 'collapsible', 'advanced', 'showDateRange', 'showCategories', 'showActivityTypes'],
|
|
770
|
+
canHaveChildren: true,
|
|
771
|
+
example: `
|
|
772
|
+
dataFilters:
|
|
773
|
+
type: filterPanel
|
|
774
|
+
properties:
|
|
775
|
+
position: top
|
|
776
|
+
collapsible: true
|
|
777
|
+
advanced: true
|
|
778
|
+
`
|
|
779
|
+
},
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* Get component definition by type
|
|
783
|
+
*/
|
|
784
|
+
export function getComponentDefinition(type) {
|
|
785
|
+
return ATOMIC_COMPONENTS_REGISTRY[type];
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Get all components in a category
|
|
789
|
+
*/
|
|
790
|
+
export function getComponentsByCategory(category) {
|
|
791
|
+
return Object.values(ATOMIC_COMPONENTS_REGISTRY).filter(comp => comp.category === category);
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Validate if a component type exists
|
|
795
|
+
*/
|
|
796
|
+
export function isValidComponentType(type) {
|
|
797
|
+
return type in ATOMIC_COMPONENTS_REGISTRY;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Get all component types as array
|
|
801
|
+
*/
|
|
802
|
+
export function getAllComponentTypes() {
|
|
803
|
+
return Object.keys(ATOMIC_COMPONENTS_REGISTRY);
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Component categories summary
|
|
807
|
+
*/
|
|
808
|
+
export const COMPONENT_CATEGORIES = {
|
|
809
|
+
'data-display': 9,
|
|
810
|
+
'forms-inputs': 11,
|
|
811
|
+
'actions': 5,
|
|
812
|
+
'overlays-feedback': 9,
|
|
813
|
+
'navigation': 5,
|
|
814
|
+
'layout': 6,
|
|
815
|
+
'progress': 2,
|
|
816
|
+
'specialized': 2,
|
|
817
|
+
};
|
|
818
|
+
/**
|
|
819
|
+
* Total count: 49 atomic components
|
|
820
|
+
*/
|
|
821
|
+
export const TOTAL_COMPONENT_COUNT = 49;
|
|
822
|
+
//# sourceMappingURL=atomic-components-registry.js.map
|