@superblocksteam/vite-plugin-file-sync 2.0.162 → 2.0.163-next.1
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/dist/ai-service/agent/middleware.d.ts.map +1 -1
- package/dist/ai-service/agent/middleware.js +18 -7
- package/dist/ai-service/agent/middleware.js.map +1 -1
- package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -1
- package/dist/ai-service/agent/prompts/build-base-system-prompt.js +43 -29
- package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts.map +1 -1
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.js +25 -0
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.js.map +1 -1
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts.map +1 -1
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js +15 -0
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js.map +1 -1
- package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/apis/test-api.js +4 -2
- package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -1
- package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.d.ts +18 -0
- package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.js +61 -0
- package/dist/ai-service/agent/tools/app-environment/switch-selected-environment.js.map +1 -0
- package/dist/ai-service/agent/tools/build-capture-screenshot.js +1 -1
- package/dist/ai-service/agent/tools/build-install-packages.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/build-install-packages.js +21 -8
- package/dist/ai-service/agent/tools/build-install-packages.js.map +1 -1
- package/dist/ai-service/agent/tools/build-read-file.d.ts +87 -1
- package/dist/ai-service/agent/tools/build-read-file.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/build-read-file.js +453 -82
- package/dist/ai-service/agent/tools/build-read-file.js.map +1 -1
- package/dist/ai-service/agent/tools/build-write-file.d.ts +1 -0
- package/dist/ai-service/agent/tools/build-write-file.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/build-write-file.js +18 -2
- package/dist/ai-service/agent/tools/build-write-file.js.map +1 -1
- package/dist/ai-service/agent/tools/debug-cache.d.ts +11 -0
- package/dist/ai-service/agent/tools/debug-cache.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/debug-cache.js +62 -14
- package/dist/ai-service/agent/tools/debug-cache.js.map +1 -1
- package/dist/ai-service/agent/tools/index.d.ts +2 -1
- package/dist/ai-service/agent/tools/index.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/index.js +2 -1
- package/dist/ai-service/agent/tools/index.js.map +1 -1
- package/dist/ai-service/agent/tools/integrations/metadata.d.ts +1 -0
- package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/integrations/metadata.js +7 -2
- package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -1
- package/dist/ai-service/agent/tools/read-file-metrics.d.ts +30 -0
- package/dist/ai-service/agent/tools/read-file-metrics.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/read-file-metrics.js +158 -0
- package/dist/ai-service/agent/tools/read-file-metrics.js.map +1 -0
- package/dist/ai-service/agent/tools/subagent-isolation.d.ts +27 -0
- package/dist/ai-service/agent/tools/subagent-isolation.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/subagent-isolation.js +57 -0
- package/dist/ai-service/agent/tools/subagent-isolation.js.map +1 -0
- package/dist/ai-service/agent/tools.d.ts +4 -1
- package/dist/ai-service/agent/tools.d.ts.map +1 -1
- package/dist/ai-service/agent/tools.js +51 -5
- package/dist/ai-service/agent/tools.js.map +1 -1
- package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts.map +1 -1
- package/dist/ai-service/agent/tools2/tools/download-attachments.js +1 -0
- package/dist/ai-service/agent/tools2/tools/download-attachments.js.map +1 -1
- package/dist/ai-service/agent/tools2/tools/start-test-run.d.ts.map +1 -1
- package/dist/ai-service/agent/tools2/tools/start-test-run.js +14 -0
- package/dist/ai-service/agent/tools2/tools/start-test-run.js.map +1 -1
- package/dist/ai-service/agent/utils.d.ts.map +1 -1
- package/dist/ai-service/agent/utils.js +2 -2
- package/dist/ai-service/agent/utils.js.map +1 -1
- package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts +2 -1
- package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts.map +1 -1
- package/dist/ai-service/app-interface/filesystem/draft-manager.js +3 -0
- package/dist/ai-service/app-interface/filesystem/draft-manager.js.map +1 -1
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts +2 -1
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts.map +1 -1
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js +13 -11
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js.map +1 -1
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts.map +1 -1
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.js +1 -1
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.js.map +1 -1
- package/dist/ai-service/app-interface/shell.d.ts +18 -9
- package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
- package/dist/ai-service/app-interface/shell.js +92 -112
- package/dist/ai-service/app-interface/shell.js.map +1 -1
- package/dist/ai-service/app-interface/typecheck-output-parser.d.ts +9 -0
- package/dist/ai-service/app-interface/typecheck-output-parser.d.ts.map +1 -0
- package/dist/ai-service/app-interface/typecheck-output-parser.js +21 -0
- package/dist/ai-service/app-interface/typecheck-output-parser.js.map +1 -0
- package/dist/ai-service/app-interface/vulnerability-gate.d.ts +5 -0
- package/dist/ai-service/app-interface/vulnerability-gate.d.ts.map +1 -1
- package/dist/ai-service/app-interface/vulnerability-gate.js +9 -2
- package/dist/ai-service/app-interface/vulnerability-gate.js.map +1 -1
- package/dist/ai-service/app-layout.d.ts +13 -0
- package/dist/ai-service/app-layout.d.ts.map +1 -0
- package/dist/ai-service/app-layout.js +25 -0
- package/dist/ai-service/app-layout.js.map +1 -0
- package/dist/ai-service/app-skills/manager.d.ts +2 -0
- package/dist/ai-service/app-skills/manager.d.ts.map +1 -1
- package/dist/ai-service/app-skills/manager.js +13 -6
- package/dist/ai-service/app-skills/manager.js.map +1 -1
- package/dist/ai-service/attachment-label-metrics.d.ts +5 -0
- package/dist/ai-service/attachment-label-metrics.d.ts.map +1 -0
- package/dist/ai-service/attachment-label-metrics.js +26 -0
- package/dist/ai-service/attachment-label-metrics.js.map +1 -0
- package/dist/ai-service/attachment-upload.d.ts.map +1 -1
- package/dist/ai-service/attachment-upload.js +6 -1
- package/dist/ai-service/attachment-upload.js.map +1 -1
- package/dist/ai-service/attachments/validate-prompt-attachments.d.ts +7 -0
- package/dist/ai-service/attachments/validate-prompt-attachments.d.ts.map +1 -0
- package/dist/ai-service/attachments/validate-prompt-attachments.js +96 -0
- package/dist/ai-service/attachments/validate-prompt-attachments.js.map +1 -0
- package/dist/ai-service/chat/chat-push-metrics.d.ts +17 -0
- package/dist/ai-service/chat/chat-push-metrics.d.ts.map +1 -1
- package/dist/ai-service/chat/chat-push-metrics.js +45 -0
- package/dist/ai-service/chat/chat-push-metrics.js.map +1 -1
- package/dist/ai-service/chat/chat-session-store.d.ts +51 -0
- package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -1
- package/dist/ai-service/chat/chat-session-store.js +181 -4
- package/dist/ai-service/chat/chat-session-store.js.map +1 -1
- package/dist/ai-service/features.d.ts +32 -0
- package/dist/ai-service/features.d.ts.map +1 -1
- package/dist/ai-service/features.js +32 -0
- package/dist/ai-service/features.js.map +1 -1
- package/dist/ai-service/helper-system-ai-attributes.d.ts +1 -1
- package/dist/ai-service/helper-system-ai-attributes.d.ts.map +1 -1
- package/dist/ai-service/helper-system-ai-attributes.js.map +1 -1
- package/dist/ai-service/index.d.ts +19 -4
- package/dist/ai-service/index.d.ts.map +1 -1
- package/dist/ai-service/index.js +177 -23
- package/dist/ai-service/index.js.map +1 -1
- package/dist/ai-service/llm/client.d.ts +9 -0
- package/dist/ai-service/llm/client.d.ts.map +1 -1
- package/dist/ai-service/llm/client.js +13 -43
- package/dist/ai-service/llm/client.js.map +1 -1
- package/dist/ai-service/llm/context-v2/adapter.d.ts +2 -0
- package/dist/ai-service/llm/context-v2/adapter.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/adapter.js +6 -0
- package/dist/ai-service/llm/context-v2/adapter.js.map +1 -1
- package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts +3 -0
- package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/compaction/client-side.js +3 -0
- package/dist/ai-service/llm/context-v2/compaction/client-side.js.map +1 -1
- package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts +8 -0
- package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/compaction/server-side.js +8 -0
- package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -1
- package/dist/ai-service/llm/context-v2/compactor.d.ts +2 -0
- package/dist/ai-service/llm/context-v2/compactor.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/compactor.js +4 -1
- package/dist/ai-service/llm/context-v2/compactor.js.map +1 -1
- package/dist/ai-service/llm/context-v2/context-component-partition.d.ts +24 -0
- package/dist/ai-service/llm/context-v2/context-component-partition.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/context-component-partition.js +222 -0
- package/dist/ai-service/llm/context-v2/context-component-partition.js.map +1 -0
- package/dist/ai-service/llm/context-v2/context-management.d.ts +7 -0
- package/dist/ai-service/llm/context-v2/context-management.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/context-management.js +4 -0
- package/dist/ai-service/llm/context-v2/context-management.js.map +1 -1
- package/dist/ai-service/llm/context-v2/context-metrics.d.ts +9 -0
- package/dist/ai-service/llm/context-v2/context-metrics.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/context-metrics.js +40 -2
- package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -1
- package/dist/ai-service/llm/context-v2/context.d.ts +116 -4
- package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/context.js +276 -64
- package/dist/ai-service/llm/context-v2/context.js.map +1 -1
- package/dist/ai-service/llm/context-v2/conversation-context.d.ts +18 -0
- package/dist/ai-service/llm/context-v2/conversation-context.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/file-read-ledger.d.ts +218 -0
- package/dist/ai-service/llm/context-v2/file-read-ledger.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/file-read-ledger.js +275 -0
- package/dist/ai-service/llm/context-v2/file-read-ledger.js.map +1 -0
- package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/manager.js +1 -0
- package/dist/ai-service/llm/context-v2/manager.js.map +1 -1
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts +8 -0
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js +53 -4
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js.map +1 -1
- package/dist/ai-service/llm/context-v2/token-tracker.d.ts +2 -0
- package/dist/ai-service/llm/context-v2/token-tracker.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/token-tracker.js +4 -0
- package/dist/ai-service/llm/context-v2/token-tracker.js.map +1 -1
- package/dist/ai-service/llm/context-v2/tool-schema-tokens.d.ts +22 -0
- package/dist/ai-service/llm/context-v2/tool-schema-tokens.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/tool-schema-tokens.js +36 -0
- package/dist/ai-service/llm/context-v2/tool-schema-tokens.js.map +1 -0
- package/dist/ai-service/llm/context-v2/types.d.ts +8 -0
- package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/types.js +48 -0
- package/dist/ai-service/llm/context-v2/types.js.map +1 -1
- package/dist/ai-service/llm/error.d.ts +2 -0
- package/dist/ai-service/llm/error.d.ts.map +1 -1
- package/dist/ai-service/llm/error.js +1 -0
- package/dist/ai-service/llm/error.js.map +1 -1
- package/dist/ai-service/llm/retry-exhaustion-reason.d.ts +2 -0
- package/dist/ai-service/llm/retry-exhaustion-reason.d.ts.map +1 -0
- package/dist/ai-service/llm/retry-exhaustion-reason.js +2 -0
- package/dist/ai-service/llm/retry-exhaustion-reason.js.map +1 -0
- package/dist/ai-service/llm/stream/config.d.ts +1 -1
- package/dist/ai-service/llm/stream/config.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/config.js.map +1 -1
- package/dist/ai-service/llm/stream/errors.d.ts +6 -7
- package/dist/ai-service/llm/stream/errors.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/errors.js +7 -1
- package/dist/ai-service/llm/stream/errors.js.map +1 -1
- package/dist/ai-service/llm/stream/event-bus.d.ts +9 -1
- package/dist/ai-service/llm/stream/event-bus.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/event-bus.js.map +1 -1
- package/dist/ai-service/llm/stream/idle-monitor.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/idle-monitor.js.map +1 -1
- package/dist/ai-service/llm/stream/observers/context.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/observers/context.js +13 -0
- package/dist/ai-service/llm/stream/observers/context.js.map +1 -1
- package/dist/ai-service/llm/stream/observers/llmobs.d.ts +14 -1
- package/dist/ai-service/llm/stream/observers/llmobs.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/observers/llmobs.js +91 -7
- package/dist/ai-service/llm/stream/observers/llmobs.js.map +1 -1
- package/dist/ai-service/llm/stream/observers/logging.d.ts +3 -1
- package/dist/ai-service/llm/stream/observers/logging.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/observers/logging.js +73 -52
- package/dist/ai-service/llm/stream/observers/logging.js.map +1 -1
- package/dist/ai-service/llm/stream/observers/retry-notification.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/observers/retry-notification.js +16 -9
- package/dist/ai-service/llm/stream/observers/retry-notification.js.map +1 -1
- package/dist/ai-service/llm/stream/orchestrator.d.ts +5 -1
- package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/orchestrator.js +103 -12
- package/dist/ai-service/llm/stream/orchestrator.js.map +1 -1
- package/dist/ai-service/llm/stream/retry-engine.d.ts +3 -1
- package/dist/ai-service/llm/stream/retry-engine.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/retry-engine.js +9 -0
- package/dist/ai-service/llm/stream/retry-engine.js.map +1 -1
- package/dist/ai-service/llm/stream/session.d.ts +8 -1
- package/dist/ai-service/llm/stream/session.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/session.js +19 -0
- package/dist/ai-service/llm/stream/session.js.map +1 -1
- package/dist/ai-service/llm/stream/types.d.ts +13 -0
- package/dist/ai-service/llm/stream/types.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/wait-state-tracker.d.ts +5 -14
- package/dist/ai-service/llm/stream/wait-state-tracker.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/wait-state-tracker.js +25 -0
- package/dist/ai-service/llm/stream/wait-state-tracker.js.map +1 -1
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +8 -8
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -1
- package/dist/ai-service/migration-llm-config.d.ts.map +1 -1
- package/dist/ai-service/migration-llm-config.js +2 -11
- package/dist/ai-service/migration-llm-config.js.map +1 -1
- package/dist/ai-service/policy-gate-remediation-usage.d.ts +2 -0
- package/dist/ai-service/policy-gate-remediation-usage.d.ts.map +1 -0
- package/dist/ai-service/policy-gate-remediation-usage.js +56 -0
- package/dist/ai-service/policy-gate-remediation-usage.js.map +1 -0
- package/dist/ai-service/prompts/summarize-destructive-migration.d.ts +12 -0
- package/dist/ai-service/prompts/summarize-destructive-migration.d.ts.map +1 -0
- package/dist/ai-service/prompts/summarize-destructive-migration.js +37 -0
- package/dist/ai-service/prompts/summarize-destructive-migration.js.map +1 -0
- package/dist/ai-service/recording/storage/session-recording-storage.js +2 -2
- package/dist/ai-service/recording/storage/session-recording-storage.js.map +1 -1
- package/dist/ai-service/security/secret-scanner-service.d.ts.map +1 -1
- package/dist/ai-service/security/secret-scanner-service.js +88 -23
- package/dist/ai-service/security/secret-scanner-service.js.map +1 -1
- package/dist/ai-service/skills/index.d.ts +0 -7
- package/dist/ai-service/skills/index.d.ts.map +1 -1
- package/dist/ai-service/skills/index.js +0 -9
- package/dist/ai-service/skills/index.js.map +1 -1
- package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -1
- package/dist/ai-service/skills/system/_registry.generated.js +4 -0
- package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
- package/dist/ai-service/skills/system/resolve.d.ts +2 -0
- package/dist/ai-service/skills/system/resolve.d.ts.map +1 -0
- package/dist/ai-service/skills/system/resolve.js +32 -0
- package/dist/ai-service/skills/system/resolve.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.js +9 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-legacy.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.js +11 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/api-imports-sdk.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +1 -1
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -1
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +16 -24
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -1
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +1 -1
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -1
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +1 -1
- package/dist/ai-service/state-machine/clark-fsm.d.ts +11 -0
- package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
- package/dist/ai-service/state-machine/clark-fsm.js +8 -1
- package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/agent-planning.js +21 -0
- package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/llm-generating.js +32 -9
- package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/runtime-reviewing.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/runtime-reviewing.js +21 -2
- package/dist/ai-service/state-machine/handlers/runtime-reviewing.js.map +1 -1
- package/dist/ai-service/state-machine/helpers/stable-peer.d.ts +11 -2
- package/dist/ai-service/state-machine/helpers/stable-peer.d.ts.map +1 -1
- package/dist/ai-service/state-machine/helpers/stable-peer.js +105 -18
- package/dist/ai-service/state-machine/helpers/stable-peer.js.map +1 -1
- package/dist/ai-service/state-machine/mocks.d.ts +3 -1
- package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
- package/dist/ai-service/state-machine/mocks.js +52 -13
- package/dist/ai-service/state-machine/mocks.js.map +1 -1
- package/dist/ai-service/tasks/peer-push.d.ts +3 -0
- package/dist/ai-service/tasks/peer-push.d.ts.map +1 -1
- package/dist/ai-service/tasks/peer-push.js +33 -0
- package/dist/ai-service/tasks/peer-push.js.map +1 -1
- package/dist/ai-service/util/call-peer.d.ts +2 -0
- package/dist/ai-service/util/call-peer.d.ts.map +1 -1
- package/dist/ai-service/util/call-peer.js +17 -4
- package/dist/ai-service/util/call-peer.js.map +1 -1
- package/dist/ai-service/util/line-ranges.d.ts +21 -0
- package/dist/ai-service/util/line-ranges.d.ts.map +1 -0
- package/dist/ai-service/util/line-ranges.js +36 -0
- package/dist/ai-service/util/line-ranges.js.map +1 -0
- package/dist/ai-service/util/peer-liveness.d.ts +1 -0
- package/dist/ai-service/util/peer-liveness.d.ts.map +1 -1
- package/dist/ai-service/util/peer-liveness.js +2 -0
- package/dist/ai-service/util/peer-liveness.js.map +1 -1
- package/dist/dev-server-ws-smoke-client.d.ts.map +1 -1
- package/dist/dev-server-ws-smoke-client.js +7 -0
- package/dist/dev-server-ws-smoke-client.js.map +1 -1
- package/dist/draft-interface.d.ts +8 -0
- package/dist/draft-interface.d.ts.map +1 -1
- package/dist/early-error-relay.d.ts +2 -0
- package/dist/early-error-relay.d.ts.map +1 -1
- package/dist/early-error-relay.js +7 -3
- package/dist/early-error-relay.js.map +1 -1
- package/dist/file-sync-vite-plugin.d.ts.map +1 -1
- package/dist/file-sync-vite-plugin.js +43 -15
- package/dist/file-sync-vite-plugin.js.map +1 -1
- package/dist/file-system-helpers.d.ts +2 -2
- package/dist/file-system-helpers.d.ts.map +1 -1
- package/dist/file-system-helpers.js +3 -3
- package/dist/file-system-helpers.js.map +1 -1
- package/dist/git-service/errors.d.ts +9 -0
- package/dist/git-service/errors.d.ts.map +1 -1
- package/dist/git-service/errors.js +15 -0
- package/dist/git-service/errors.js.map +1 -1
- package/dist/git-service/index.d.ts +2 -2
- package/dist/git-service/index.d.ts.map +1 -1
- package/dist/git-service/index.js +2 -2
- package/dist/git-service/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lock-service/activity-tracker.d.ts +5 -0
- package/dist/lock-service/activity-tracker.d.ts.map +1 -1
- package/dist/lock-service/activity-tracker.js +10 -0
- package/dist/lock-service/activity-tracker.js.map +1 -1
- package/dist/lock-service/index.d.ts +69 -4
- package/dist/lock-service/index.d.ts.map +1 -1
- package/dist/lock-service/index.js +139 -29
- package/dist/lock-service/index.js.map +1 -1
- package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +9 -65
- package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +36 -156
- package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +1 -5
- package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +4 -18
- package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +6 -29
- package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +41 -167
- package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +1 -4
- package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +5 -64
- package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +6 -42
- package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +1 -4
- package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +4 -29
- package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +13 -154
- package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +7 -34
- package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +12 -95
- package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +12 -73
- package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +10 -66
- package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +3 -16
- package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +4 -16
- package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +18 -159
- package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +1 -4
- package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +32 -148
- package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +4 -24
- package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +3 -24
- package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +4 -24
- package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +28 -142
- package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +9 -61
- package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +2 -11
- package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +37 -171
- package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +50 -202
- package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +5 -35
- package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +1 -8
- package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +7 -40
- package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +3 -35
- package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +11 -95
- package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +5 -32
- package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +13 -90
- package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +11 -75
- package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +8 -70
- package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +9 -62
- package/dist/parsing/imports.d.ts +22 -0
- package/dist/parsing/imports.d.ts.map +1 -1
- package/dist/parsing/imports.js +71 -0
- package/dist/parsing/imports.js.map +1 -1
- package/dist/reconnect-guard-plugin.d.ts +53 -0
- package/dist/reconnect-guard-plugin.d.ts.map +1 -0
- package/dist/reconnect-guard-plugin.js +203 -0
- package/dist/reconnect-guard-plugin.js.map +1 -0
- package/dist/resolver.d.ts +2 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +4 -6
- package/dist/resolver.js.map +1 -1
- package/dist/router-parser-metrics.d.ts +2 -1
- package/dist/router-parser-metrics.d.ts.map +1 -1
- package/dist/router-parser-metrics.js.map +1 -1
- package/dist/router-parser.d.ts +10 -1
- package/dist/router-parser.d.ts.map +1 -1
- package/dist/router-parser.js +306 -69
- package/dist/router-parser.js.map +1 -1
- package/dist/scan-scope-merge-metrics.d.ts +2 -0
- package/dist/scan-scope-merge-metrics.d.ts.map +1 -0
- package/dist/scan-scope-merge-metrics.js +18 -0
- package/dist/scan-scope-merge-metrics.js.map +1 -0
- package/dist/scan-scope-merge.d.ts +2 -2
- package/dist/scan-scope-merge.d.ts.map +1 -1
- package/dist/scan-scope-merge.js +64 -14
- package/dist/scan-scope-merge.js.map +1 -1
- package/dist/server-rpc/index.d.ts.map +1 -1
- package/dist/server-rpc/index.js +12 -2
- package/dist/server-rpc/index.js.map +1 -1
- package/dist/socket-manager.d.ts +1 -1
- package/dist/socket-manager.d.ts.map +1 -1
- package/dist/socket-manager.js +276 -15
- package/dist/socket-manager.js.map +1 -1
- package/dist/sync-service/download.js +2 -2
- package/dist/sync-service/download.js.map +1 -1
- package/dist/sync-service/index.d.ts +95 -22
- package/dist/sync-service/index.d.ts.map +1 -1
- package/dist/sync-service/index.js +402 -56
- package/dist/sync-service/index.js.map +1 -1
- package/dist/sync-service/page-reference-guard.d.ts +17 -0
- package/dist/sync-service/page-reference-guard.d.ts.map +1 -0
- package/dist/sync-service/page-reference-guard.js +170 -0
- package/dist/sync-service/page-reference-guard.js.map +1 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +16 -2
- package/dist/util.js.map +1 -1
- package/package.json +15 -14
|
@@ -55,43 +55,16 @@ const hoverCardPropertiesDefinition: PropertiesPanelDefinition<
|
|
|
55
55
|
React.ComponentPropsWithoutRef<typeof HoverCard>
|
|
56
56
|
> = {
|
|
57
57
|
general: Section.category(PropsCategory.Content).children({
|
|
58
|
-
open: Prop.boolean()
|
|
59
|
-
label: "Open",
|
|
60
|
-
controlType: "SWITCH",
|
|
61
|
-
description:
|
|
62
|
-
"The controlled open state of the hover card. Must be used in conjunction with `onOpenChange`.",
|
|
63
|
-
isRemovable: true,
|
|
64
|
-
visibility: "SHOW_NAME",
|
|
65
|
-
}),
|
|
58
|
+
open: Prop.boolean(),
|
|
66
59
|
children: Prop.jsx(),
|
|
67
|
-
openDelay: Prop.number()
|
|
68
|
-
|
|
69
|
-
description:
|
|
70
|
-
"The duration from when the mouse enters the trigger until the hover card opens (in milliseconds)",
|
|
71
|
-
}),
|
|
72
|
-
closeDelay: Prop.number().propertiesPanel({
|
|
73
|
-
label: "Close delay",
|
|
74
|
-
description:
|
|
75
|
-
"The duration from when the mouse leaves the trigger until the hover card closes (in milliseconds)",
|
|
76
|
-
}),
|
|
60
|
+
openDelay: Prop.number(),
|
|
61
|
+
closeDelay: Prop.number(),
|
|
77
62
|
}),
|
|
78
63
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
79
|
-
defaultOpen: Prop.boolean()
|
|
80
|
-
label: "Default open",
|
|
81
|
-
description: "Whether the hover card is open by default",
|
|
82
|
-
}),
|
|
64
|
+
defaultOpen: Prop.boolean(),
|
|
83
65
|
}),
|
|
84
66
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
85
|
-
onOpenChange: Prop.eventHandler()
|
|
86
|
-
label: "onOpenChange",
|
|
87
|
-
computedArgs: [
|
|
88
|
-
{
|
|
89
|
-
name: "open",
|
|
90
|
-
type: "boolean",
|
|
91
|
-
description: "Whether the hover card is open",
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
}),
|
|
67
|
+
onOpenChange: Prop.eventHandler(),
|
|
95
68
|
}),
|
|
96
69
|
};
|
|
97
70
|
|
|
@@ -111,40 +84,11 @@ const hoverCardContentPropertiesDefinition: PropertiesPanelDefinition<
|
|
|
111
84
|
children: Prop.jsx(),
|
|
112
85
|
}),
|
|
113
86
|
appearance: Section.category(PropsCategory.Appearance).children({
|
|
114
|
-
side: Prop.string<"top" | "right" | "bottom" | "left">()
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
{ label: "Top", value: "top" },
|
|
120
|
-
{ label: "Right", value: "right" },
|
|
121
|
-
{ label: "Bottom", value: "bottom" },
|
|
122
|
-
{ label: "Left", value: "left" },
|
|
123
|
-
],
|
|
124
|
-
}),
|
|
125
|
-
align: Prop.string<"start" | "center" | "end">().propertiesPanel({
|
|
126
|
-
label: "Align",
|
|
127
|
-
controlType: "DROP_DOWN",
|
|
128
|
-
description: "The preferred alignment against the trigger",
|
|
129
|
-
options: [
|
|
130
|
-
{ label: "Start", value: "start" },
|
|
131
|
-
{ label: "Center", value: "center" },
|
|
132
|
-
{ label: "End", value: "end" },
|
|
133
|
-
],
|
|
134
|
-
}),
|
|
135
|
-
sideOffset: Prop.number().propertiesPanel({
|
|
136
|
-
label: "Side offset",
|
|
137
|
-
description: "The distance in pixels from the trigger",
|
|
138
|
-
}),
|
|
139
|
-
alignOffset: Prop.number().propertiesPanel({
|
|
140
|
-
label: "Align offset",
|
|
141
|
-
description: "An offset in pixels from the alignment axis",
|
|
142
|
-
}),
|
|
143
|
-
avoidCollisions: Prop.boolean().propertiesPanel({
|
|
144
|
-
label: "Avoid collisions",
|
|
145
|
-
description:
|
|
146
|
-
"Whether the content should avoid collisions with other elements",
|
|
147
|
-
}),
|
|
87
|
+
side: Prop.string<"top" | "right" | "bottom" | "left">(),
|
|
88
|
+
align: Prop.string<"start" | "center" | "end">(),
|
|
89
|
+
sideOffset: Prop.number(),
|
|
90
|
+
alignOffset: Prop.number(),
|
|
91
|
+
avoidCollisions: Prop.boolean(),
|
|
148
92
|
}),
|
|
149
93
|
};
|
|
150
94
|
|
|
@@ -2,12 +2,11 @@ import { DynamicIcon, type IconName } from "lucide-react/dynamic";
|
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
6
5
|
import {
|
|
6
|
+
registerComponent,
|
|
7
7
|
Prop,
|
|
8
8
|
Section,
|
|
9
9
|
PropsCategory,
|
|
10
|
-
tailwindStylesCategory,
|
|
11
10
|
type EditorConfig,
|
|
12
11
|
} from "@superblocksteam/library";
|
|
13
12
|
|
|
@@ -99,24 +98,12 @@ const Icon = ({
|
|
|
99
98
|
// Properties Definition
|
|
100
99
|
const propertiesDefinition = {
|
|
101
100
|
general: Section.category(PropsCategory.Content).children({
|
|
102
|
-
icon: Prop.string<IconName>()
|
|
103
|
-
label: "Icon name",
|
|
104
|
-
controlType: "ICON_SELECTOR",
|
|
105
|
-
description: "The name of the Lucide icon (e.g., 'heart', 'arrow-right')",
|
|
106
|
-
placeholder: "heart" satisfies IconName,
|
|
107
|
-
}),
|
|
108
|
-
// no props panel for now
|
|
101
|
+
icon: Prop.string<IconName>(),
|
|
109
102
|
children: Prop.jsx(),
|
|
110
103
|
}),
|
|
111
|
-
styles: tailwindStylesCategory({
|
|
112
|
-
prioritizedTailwindProperties: ["stroke", "stroke-width"],
|
|
113
|
-
}),
|
|
114
104
|
|
|
115
105
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
116
|
-
onClick: Prop.eventHandler()
|
|
117
|
-
label: "onClick",
|
|
118
|
-
description: "Triggered when the icon is clicked",
|
|
119
|
-
}),
|
|
106
|
+
onClick: Prop.eventHandler(),
|
|
120
107
|
}),
|
|
121
108
|
};
|
|
122
109
|
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
Prop,
|
|
6
6
|
Section,
|
|
7
7
|
PropsCategory,
|
|
8
|
-
tailwindStylesCategory,
|
|
9
8
|
type PropertiesPanelDefinition,
|
|
10
9
|
type EditorConfig,
|
|
11
10
|
} from "@superblocksteam/library";
|
|
@@ -34,23 +33,12 @@ const Image = ({ children: _, ...props }: ImageProps) => {
|
|
|
34
33
|
// Properties Definition
|
|
35
34
|
const propertiesDefinition: PropertiesPanelDefinition<ImageProps> = {
|
|
36
35
|
general: Section.category(PropsCategory.Content).children({
|
|
37
|
-
src: Prop.string()
|
|
38
|
-
|
|
39
|
-
description: "The URL of the image to display",
|
|
40
|
-
}),
|
|
41
|
-
alt: Prop.string().propertiesPanel({
|
|
42
|
-
label: "Alt text",
|
|
43
|
-
description: "Alternative text for the image (for accessibility)",
|
|
44
|
-
}),
|
|
45
|
-
}),
|
|
46
|
-
styles: tailwindStylesCategory({
|
|
47
|
-
prioritizedTailwindProperties: ["rounded", "object-fit", "object-position"],
|
|
36
|
+
src: Prop.string(),
|
|
37
|
+
alt: Prop.string(),
|
|
48
38
|
}),
|
|
39
|
+
|
|
49
40
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
50
|
-
onClick: Prop.eventHandler()
|
|
51
|
-
label: "onClick",
|
|
52
|
-
description: "Triggered when the image is clicked",
|
|
53
|
-
}),
|
|
41
|
+
onClick: Prop.eventHandler(),
|
|
54
42
|
}),
|
|
55
43
|
};
|
|
56
44
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
4
3
|
import {
|
|
4
|
+
registerComponent,
|
|
5
5
|
Prop,
|
|
6
6
|
Section,
|
|
7
7
|
PropsCategory,
|
|
@@ -30,180 +30,39 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
|
30
30
|
|
|
31
31
|
type InputProps = React.ComponentProps<typeof Input>;
|
|
32
32
|
|
|
33
|
-
// Input type constants for property visibility
|
|
34
|
-
const AUTO_COMPLETE_INPUT_TYPES = ["text", "email", "password", "url"];
|
|
35
|
-
const TEXT_INPUT_TYPES = ["text", "email", "password", "url"];
|
|
36
|
-
const NUMERIC_INPUT_TYPES = ["number"];
|
|
37
|
-
const STEP_INPUT_TYPES = ["number"];
|
|
38
|
-
|
|
39
33
|
// Properties Definition
|
|
40
34
|
const propertiesDefinition: PropertiesPanelDefinition<InputProps> = {
|
|
41
35
|
general: Section.category(PropsCategory.Content).children({
|
|
42
|
-
value: Prop.string()
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
isRemovable: true,
|
|
47
|
-
visibility: "SHOW_NAME",
|
|
48
|
-
}),
|
|
49
|
-
defaultValue: Prop.string().propertiesPanel({
|
|
50
|
-
label: "Default value",
|
|
51
|
-
controlType: "INPUT_TEXT",
|
|
52
|
-
description: "The default value of the input",
|
|
53
|
-
}),
|
|
54
|
-
placeholder: Prop.string().propertiesPanel({
|
|
55
|
-
label: "Placeholder",
|
|
56
|
-
controlType: "INPUT_TEXT",
|
|
57
|
-
description: "Placeholder text shown when input is empty",
|
|
58
|
-
}),
|
|
59
|
-
type: Prop.string<
|
|
60
|
-
"text" | "email" | "password" | "number" | "url"
|
|
61
|
-
>().propertiesPanel({
|
|
62
|
-
label: "Type",
|
|
63
|
-
controlType: "DROP_DOWN",
|
|
64
|
-
description: "The type of input",
|
|
65
|
-
options: [
|
|
66
|
-
{ label: "Text", value: "text" },
|
|
67
|
-
{ label: "Email", value: "email" },
|
|
68
|
-
{ label: "Password", value: "password" },
|
|
69
|
-
{ label: "Number", value: "number" },
|
|
70
|
-
{ label: "URL", value: "url" },
|
|
71
|
-
],
|
|
72
|
-
}),
|
|
36
|
+
value: Prop.string(),
|
|
37
|
+
defaultValue: Prop.string(),
|
|
38
|
+
placeholder: Prop.string(),
|
|
39
|
+
type: Prop.string<"text" | "email" | "password" | "number" | "url">(),
|
|
73
40
|
}),
|
|
74
41
|
appearance: Section.category(PropsCategory.Appearance).children({
|
|
75
|
-
autoComplete: Prop.string()
|
|
76
|
-
label: "Auto complete",
|
|
77
|
-
controlType: "DROP_DOWN",
|
|
78
|
-
description: "Hint for form autofill feature",
|
|
79
|
-
options: [
|
|
80
|
-
{ label: "Off", value: "off" },
|
|
81
|
-
{ label: "On", value: "on" },
|
|
82
|
-
{ label: "Name", value: "name" },
|
|
83
|
-
{ label: "Email", value: "email" },
|
|
84
|
-
{ label: "Username", value: "username" },
|
|
85
|
-
{ label: "Current password", value: "current-password" },
|
|
86
|
-
{ label: "New password", value: "new-password" },
|
|
87
|
-
{ label: "URL", value: "url" },
|
|
88
|
-
],
|
|
89
|
-
isRemovable: true,
|
|
90
|
-
visibility: "SHOW_NAME",
|
|
91
|
-
defaultOnAdd: "off",
|
|
92
|
-
isVisible: function (this: { type?: string }) {
|
|
93
|
-
return AUTO_COMPLETE_INPUT_TYPES.includes(this.type ?? "text");
|
|
94
|
-
},
|
|
95
|
-
}),
|
|
42
|
+
autoComplete: Prop.string(),
|
|
96
43
|
}),
|
|
97
44
|
|
|
98
45
|
interaction: Section.category(PropsCategory.Interaction)
|
|
99
46
|
.children({
|
|
100
|
-
disabled: Prop.boolean()
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
description: "Whether the input is disabled",
|
|
104
|
-
}),
|
|
105
|
-
readOnly: Prop.boolean().propertiesPanel({
|
|
106
|
-
label: "Read only",
|
|
107
|
-
controlType: "SWITCH",
|
|
108
|
-
description: "Whether the input is read only",
|
|
109
|
-
}),
|
|
110
|
-
autoFocus: Prop.boolean().propertiesPanel({
|
|
111
|
-
label: "Auto focus",
|
|
112
|
-
controlType: "SWITCH",
|
|
113
|
-
description: "Whether the input should auto focus on page load",
|
|
114
|
-
}),
|
|
47
|
+
disabled: Prop.boolean(),
|
|
48
|
+
readOnly: Prop.boolean(),
|
|
49
|
+
autoFocus: Prop.boolean(),
|
|
115
50
|
})
|
|
116
51
|
.add({
|
|
117
|
-
minLength: Prop.number()
|
|
118
|
-
|
|
119
|
-
controlType: "INPUT_TEXT",
|
|
120
|
-
description: "Minimum number of characters required",
|
|
121
|
-
isRemovable: true,
|
|
122
|
-
visibility: "SHOW_NAME",
|
|
123
|
-
defaultOnAdd: 0,
|
|
124
|
-
isVisible: function (this: { type?: string }) {
|
|
125
|
-
return TEXT_INPUT_TYPES.includes(this.type ?? "text");
|
|
126
|
-
},
|
|
127
|
-
}),
|
|
128
|
-
maxLength: Prop.number().propertiesPanel({
|
|
129
|
-
label: "Max length",
|
|
130
|
-
controlType: "INPUT_TEXT",
|
|
131
|
-
description: "Maximum number of characters allowed",
|
|
132
|
-
isRemovable: true,
|
|
133
|
-
visibility: "SHOW_NAME",
|
|
134
|
-
defaultOnAdd: 100,
|
|
135
|
-
isVisible: function (this: { type?: string }) {
|
|
136
|
-
return TEXT_INPUT_TYPES.includes(this.type ?? "text");
|
|
137
|
-
},
|
|
138
|
-
}),
|
|
52
|
+
minLength: Prop.number(),
|
|
53
|
+
maxLength: Prop.number(),
|
|
139
54
|
})
|
|
140
55
|
.add({
|
|
141
|
-
min: Prop.number()
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
description: "Minimum value for number inputs",
|
|
145
|
-
isRemovable: true,
|
|
146
|
-
visibility: "SHOW_NAME",
|
|
147
|
-
defaultOnAdd: 0,
|
|
148
|
-
isVisible: function (this: { type?: string }) {
|
|
149
|
-
return NUMERIC_INPUT_TYPES.includes(this.type ?? "text");
|
|
150
|
-
},
|
|
151
|
-
}),
|
|
152
|
-
max: Prop.number().propertiesPanel({
|
|
153
|
-
label: "Max value",
|
|
154
|
-
controlType: "INPUT_TEXT",
|
|
155
|
-
description: "Maximum value for number inputs",
|
|
156
|
-
isRemovable: true,
|
|
157
|
-
visibility: "SHOW_NAME",
|
|
158
|
-
defaultOnAdd: 100,
|
|
159
|
-
isVisible: function (this: { type?: string }) {
|
|
160
|
-
return NUMERIC_INPUT_TYPES.includes(this.type ?? "text");
|
|
161
|
-
},
|
|
162
|
-
}),
|
|
163
|
-
step: Prop.number().propertiesPanel({
|
|
164
|
-
label: "Step",
|
|
165
|
-
controlType: "INPUT_TEXT",
|
|
166
|
-
description: "Step value for number inputs",
|
|
167
|
-
isRemovable: true,
|
|
168
|
-
visibility: "SHOW_NAME",
|
|
169
|
-
defaultOnAdd: 1,
|
|
170
|
-
isVisible: function (this: { type?: string }) {
|
|
171
|
-
return STEP_INPUT_TYPES.includes(this.type ?? "text");
|
|
172
|
-
},
|
|
173
|
-
}),
|
|
56
|
+
min: Prop.number(),
|
|
57
|
+
max: Prop.number(),
|
|
58
|
+
step: Prop.number(),
|
|
174
59
|
}),
|
|
175
60
|
|
|
176
61
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
177
|
-
onChange: Prop.eventHandler()
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
name: "event",
|
|
183
|
-
type: "object",
|
|
184
|
-
description: "The event object",
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
}),
|
|
188
|
-
onFocus: Prop.eventHandler().propertiesPanel({
|
|
189
|
-
label: "On focus",
|
|
190
|
-
description: "Triggered when the input receives focus",
|
|
191
|
-
}),
|
|
192
|
-
onBlur: Prop.eventHandler().propertiesPanel({
|
|
193
|
-
label: "On blur",
|
|
194
|
-
description: "Triggered when the input loses focus",
|
|
195
|
-
}),
|
|
196
|
-
onKeyDown: Prop.eventHandler().propertiesPanel({
|
|
197
|
-
label: "On key down",
|
|
198
|
-
description: "Triggered when a key is pressed down",
|
|
199
|
-
computedArgs: [
|
|
200
|
-
{
|
|
201
|
-
name: "event",
|
|
202
|
-
type: "object",
|
|
203
|
-
description: "The event object",
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
}),
|
|
62
|
+
onChange: Prop.eventHandler(),
|
|
63
|
+
onFocus: Prop.eventHandler(),
|
|
64
|
+
onBlur: Prop.eventHandler(),
|
|
65
|
+
onKeyDown: Prop.eventHandler(),
|
|
207
66
|
}),
|
|
208
67
|
};
|
|
209
68
|
|
|
@@ -34,10 +34,7 @@ type LabelProps = React.ComponentProps<typeof Label>;
|
|
|
34
34
|
// Properties Definition
|
|
35
35
|
const propertiesDefinition: PropertiesPanelDefinition<LabelProps> = {
|
|
36
36
|
general: Section.category(PropsCategory.Content).children({
|
|
37
|
-
children: Prop.jsx()
|
|
38
|
-
label: "Text",
|
|
39
|
-
controlType: "INPUT_TEXT",
|
|
40
|
-
}),
|
|
37
|
+
children: Prop.jsx(),
|
|
41
38
|
htmlFor: Prop.string(),
|
|
42
39
|
}),
|
|
43
40
|
};
|
|
@@ -208,123 +208,37 @@ const LineChart = ({ className, ...props }: ComponentProps) => {
|
|
|
208
208
|
|
|
209
209
|
registerComponent(LineChart, {
|
|
210
210
|
general: Section.category(PropsCategory.Content).children({
|
|
211
|
-
data: Prop.array<any>()
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
description: "Array of data objects for the line chart",
|
|
215
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
216
|
-
isJSConvertible: false,
|
|
217
|
-
})
|
|
218
|
-
.docs({
|
|
219
|
-
description:
|
|
220
|
-
"Array of objects where each object represents a data point with X-axis and Y-axis values. Each object should contain the xAxisKey property and properties for each data series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple line series that can be styled independently.",
|
|
221
|
-
}),
|
|
222
|
-
xAxisKey: Prop.string()
|
|
223
|
-
.propertiesPanel({
|
|
224
|
-
label: "X-axis data key",
|
|
225
|
-
description: " name for X-axis values (categories)",
|
|
226
|
-
placeholder: "month",
|
|
227
|
-
controlType: "DROP_DOWN",
|
|
228
|
-
options: function (this) {
|
|
229
|
-
if (!this.data || !Array.isArray(this.data) || !this.data.length) {
|
|
230
|
-
return [];
|
|
231
|
-
}
|
|
232
|
-
return Object.keys(this.data[0]).map((key) => ({
|
|
233
|
-
label: key,
|
|
234
|
-
value: key,
|
|
235
|
-
}));
|
|
236
|
-
},
|
|
237
|
-
})
|
|
238
|
-
.docs({
|
|
239
|
-
description:
|
|
240
|
-
"The property name in your data objects that contains the X-axis values (categories, dates, or sequential values). This determines the horizontal positioning and connection order of data points along the line. Should be consistent across all data objects.",
|
|
241
|
-
}),
|
|
242
|
-
categories: Prop.array<string>()
|
|
243
|
-
.propertiesPanel({
|
|
244
|
-
label: "Categories",
|
|
245
|
-
description:
|
|
246
|
-
"Array of data keys to plot as line series (optional, auto-detects numeric properties if not provided)",
|
|
247
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
248
|
-
isJSConvertible: false,
|
|
249
|
-
})
|
|
250
|
-
.docs({
|
|
251
|
-
description:
|
|
252
|
-
"Array of property names from your data objects to plot as separate line series. Example: ['desktop', 'mobile'] will create two line series. Each category should correspond to a numeric property in your data. If not provided, automatically detects all numeric properties (excluding xAxisKey) from the data.",
|
|
253
|
-
}),
|
|
254
|
-
seriesLabels: Prop.any<Record<string, string>>()
|
|
255
|
-
.propertiesPanel({
|
|
256
|
-
label: "Series labels",
|
|
257
|
-
description:
|
|
258
|
-
"Optional labels for series (optional, defaults to category names)",
|
|
259
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
260
|
-
isJSConvertible: false,
|
|
261
|
-
})
|
|
262
|
-
.docs({
|
|
263
|
-
description:
|
|
264
|
-
"Optional object mapping category keys to display labels. Example: {desktop: 'Desktop Users', mobile: 'Mobile Users'}. If not provided, the category keys are used as labels.",
|
|
265
|
-
}),
|
|
266
|
-
colors: Prop.array<string>()
|
|
267
|
-
.propertiesPanel({
|
|
268
|
-
label: "Colors",
|
|
269
|
-
description: "Array of colors for series (optional)",
|
|
270
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
271
|
-
isJSConvertible: false,
|
|
272
|
-
})
|
|
273
|
-
.docs({
|
|
274
|
-
description:
|
|
275
|
-
"Optional array of color values to use for series in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
|
|
276
|
-
}),
|
|
277
|
-
}),
|
|
278
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
279
|
-
gridStyle: Prop.string<"solid" | "dashed" | "hidden">().propertiesPanel({
|
|
280
|
-
label: "Grid style",
|
|
281
|
-
description: "Style of the chart grid lines",
|
|
282
|
-
controlType: "DROP_DOWN",
|
|
283
|
-
options: [
|
|
284
|
-
{ label: "Solid", value: "solid" },
|
|
285
|
-
{ label: "Dashed", value: "dashed" },
|
|
286
|
-
{ label: "Hidden", value: "hidden" },
|
|
287
|
-
],
|
|
288
|
-
}),
|
|
289
|
-
showXAxis: Prop.boolean().propertiesPanel({
|
|
290
|
-
label: "Show X-axis",
|
|
291
|
-
description: "Display X-axis with labels",
|
|
292
|
-
controlType: "SWITCH",
|
|
293
|
-
}),
|
|
294
|
-
showYAxis: Prop.boolean().propertiesPanel({
|
|
295
|
-
label: "Show Y-axis",
|
|
296
|
-
description: "Display Y-axis with labels",
|
|
297
|
-
controlType: "SWITCH",
|
|
298
|
-
}),
|
|
299
|
-
showTooltip: Prop.boolean().propertiesPanel({
|
|
300
|
-
label: "Show tooltip",
|
|
301
|
-
description: "Display tooltip on hover",
|
|
302
|
-
controlType: "SWITCH",
|
|
303
|
-
}),
|
|
304
|
-
showLegend: Prop.boolean().propertiesPanel({
|
|
305
|
-
label: "Show legend",
|
|
306
|
-
description: "Display chart legend",
|
|
307
|
-
controlType: "SWITCH",
|
|
211
|
+
data: Prop.array<any>().docs({
|
|
212
|
+
description:
|
|
213
|
+
"Array of objects where each object represents a data point with X-axis and Y-axis values. Each object should contain the xAxisKey property and properties for each data series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple line series that can be styled independently.",
|
|
308
214
|
}),
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
controlType: "SWITCH",
|
|
215
|
+
xAxisKey: Prop.string().docs({
|
|
216
|
+
description:
|
|
217
|
+
"The property name in your data objects that contains the X-axis values (categories, dates, or sequential values). This determines the horizontal positioning and connection order of data points along the line. Should be consistent across all data objects.",
|
|
313
218
|
}),
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
219
|
+
categories: Prop.array<string>().docs({
|
|
220
|
+
description:
|
|
221
|
+
"Array of property names from your data objects to plot as separate line series. Example: ['desktop', 'mobile'] will create two line series. Each category should correspond to a numeric property in your data. If not provided, automatically detects all numeric properties (excluding xAxisKey) from the data.",
|
|
317
222
|
}),
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
controlType: "SWITCH",
|
|
223
|
+
seriesLabels: Prop.any<Record<string, string>>().docs({
|
|
224
|
+
description:
|
|
225
|
+
"Optional object mapping category keys to display labels. Example: {desktop: 'Desktop Users', mobile: 'Mobile Users'}. If not provided, the category keys are used as labels.",
|
|
322
226
|
}),
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
controlType: "SWITCH",
|
|
227
|
+
colors: Prop.array<string>().docs({
|
|
228
|
+
description:
|
|
229
|
+
"Optional array of color values to use for series in order. Can be hex codes, rgb values, or CSS variables like 'var(--chart-1)'. Falls back to theme colors if not provided.",
|
|
327
230
|
}),
|
|
231
|
+
}),
|
|
232
|
+
appearance: Section.category(PropsCategory.Appearance).children({
|
|
233
|
+
gridStyle: Prop.string<"solid" | "dashed" | "hidden">(),
|
|
234
|
+
showXAxis: Prop.boolean(),
|
|
235
|
+
showYAxis: Prop.boolean(),
|
|
236
|
+
showTooltip: Prop.boolean(),
|
|
237
|
+
showLegend: Prop.boolean(),
|
|
238
|
+
showPointLabels: Prop.boolean(),
|
|
239
|
+
strokeWidth: Prop.number(),
|
|
240
|
+
showDots: Prop.boolean(),
|
|
241
|
+
connectNulls: Prop.boolean(),
|
|
328
242
|
lineType: Prop.string<
|
|
329
243
|
| "linear"
|
|
330
244
|
| "bump"
|
|
@@ -334,46 +248,16 @@ registerComponent(LineChart, {
|
|
|
334
248
|
| "stepAfter"
|
|
335
249
|
| "natural"
|
|
336
250
|
| "monotone"
|
|
337
|
-
>()
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
controlType: "DROP_DOWN",
|
|
342
|
-
options: [
|
|
343
|
-
{ label: "Linear", value: "linear" },
|
|
344
|
-
{ label: "Bump", value: "bump" },
|
|
345
|
-
{ label: "Step", value: "step" },
|
|
346
|
-
{ label: "Basis", value: "basis" },
|
|
347
|
-
{ label: "Step Before", value: "stepBefore" },
|
|
348
|
-
{ label: "Step After", value: "stepAfter" },
|
|
349
|
-
{ label: "Natural", value: "natural" },
|
|
350
|
-
{ label: "Monotone", value: "monotone" },
|
|
351
|
-
],
|
|
352
|
-
})
|
|
353
|
-
.docs({
|
|
354
|
-
description:
|
|
355
|
-
"Curve interpolation type for line paths. 'linear' creates straight line segments between points, 'monotone' creates smooth curves that preserve monotonicity (no overshooting), 'natural' creates natural spline curves for smoothest appearance, 'step' creates step functions with sharp transitions, 'basis' creates B-spline curves, 'bump' creates rounded transitions, 'stepBefore' steps before each point, 'stepAfter' steps after each point. Choose 'monotone' for smooth data trends, 'linear' for precise point-to-point connections.",
|
|
356
|
-
}),
|
|
251
|
+
>().docs({
|
|
252
|
+
description:
|
|
253
|
+
"Curve interpolation type for line paths. 'linear' creates straight line segments between points, 'monotone' creates smooth curves that preserve monotonicity (no overshooting), 'natural' creates natural spline curves for smoothest appearance, 'step' creates step functions with sharp transitions, 'basis' creates B-spline curves, 'bump' creates rounded transitions, 'stepBefore' steps before each point, 'stepAfter' steps after each point. Choose 'monotone' for smooth data trends, 'linear' for precise point-to-point connections.",
|
|
254
|
+
}),
|
|
357
255
|
}),
|
|
358
256
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
359
|
-
enableAnimation: Prop.boolean()
|
|
360
|
-
label: "Enable animation",
|
|
361
|
-
description: "Enable chart animations on load",
|
|
362
|
-
controlType: "SWITCH",
|
|
363
|
-
}),
|
|
257
|
+
enableAnimation: Prop.boolean(),
|
|
364
258
|
}),
|
|
365
259
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
366
|
-
onDataClick: Prop.eventHandler()
|
|
367
|
-
label: "onDataClick",
|
|
368
|
-
description: "Triggered when a line is clicked",
|
|
369
|
-
computedArgs: [
|
|
370
|
-
{
|
|
371
|
-
name: "data",
|
|
372
|
-
type: "object",
|
|
373
|
-
description: "The data point that was clicked",
|
|
374
|
-
},
|
|
375
|
-
],
|
|
376
|
-
}),
|
|
260
|
+
onDataClick: Prop.eventHandler(),
|
|
377
261
|
}),
|
|
378
262
|
}).editorConfig({ icon: "chart" });
|
|
379
263
|
|
|
@@ -92,34 +92,14 @@ const Link = ({
|
|
|
92
92
|
// Properties Definition
|
|
93
93
|
const propertiesDefinition: PropertiesPanelDefinition<LinkProps> = {
|
|
94
94
|
general: Section.category(PropsCategory.Content).add({
|
|
95
|
-
children: Prop.jsx()
|
|
96
|
-
|
|
97
|
-
}),
|
|
98
|
-
openInNewTab: Prop.boolean().propertiesPanel({
|
|
99
|
-
label: "Open in new tab",
|
|
100
|
-
controlType: "SWITCH",
|
|
101
|
-
description: "Open the link in a new browser tab",
|
|
102
|
-
}),
|
|
95
|
+
children: Prop.jsx(),
|
|
96
|
+
openInNewTab: Prop.boolean(),
|
|
103
97
|
}),
|
|
104
98
|
appearance: Section.category(PropsCategory.Appearance).children({
|
|
105
|
-
variant: Prop.string<"link" | "button-default" | "button-secondary">()
|
|
106
|
-
|
|
107
|
-
.propertiesPanel({
|
|
108
|
-
label: "Style",
|
|
109
|
-
controlType: "DROP_DOWN",
|
|
110
|
-
options: [
|
|
111
|
-
{ label: "Link", value: "link" },
|
|
112
|
-
{ label: "Default button", value: "button-default" },
|
|
113
|
-
{ label: "Secondary button", value: "button-secondary" },
|
|
114
|
-
],
|
|
115
|
-
description: "Choose how the link should be styled",
|
|
116
|
-
}),
|
|
99
|
+
variant: Prop.string<"link" | "button-default" | "button-secondary">(),
|
|
117
100
|
}),
|
|
118
101
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
119
|
-
onClick: Prop.eventHandler()
|
|
120
|
-
label: "onClick",
|
|
121
|
-
description: "Triggered when the badge is clicked",
|
|
122
|
-
}),
|
|
102
|
+
onClick: Prop.eventHandler(),
|
|
123
103
|
}),
|
|
124
104
|
};
|
|
125
105
|
|
|
@@ -289,35 +289,14 @@ const NavigationMenu = ({
|
|
|
289
289
|
// Properties Definition
|
|
290
290
|
const propertiesDefinition: PropertiesPanelDefinition<NavigationMenuProps> = {
|
|
291
291
|
general: Section.category(PropsCategory.Content).children({
|
|
292
|
-
menuItems: Prop.array<MenuItem>()
|
|
293
|
-
|
|
294
|
-
.propertiesPanel({
|
|
295
|
-
label: "Menu items",
|
|
296
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
297
|
-
description:
|
|
298
|
-
"Array of menu items. Items with 'content' array become dropdowns.",
|
|
299
|
-
}),
|
|
292
|
+
menuItems: Prop.array<MenuItem>(),
|
|
300
293
|
}),
|
|
301
294
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
302
|
-
disabled: Prop.boolean()
|
|
303
|
-
label: "Disabled",
|
|
304
|
-
controlType: "SWITCH",
|
|
305
|
-
description: "Whether the navigation menu is disabled",
|
|
306
|
-
}),
|
|
295
|
+
disabled: Prop.boolean(),
|
|
307
296
|
}),
|
|
308
297
|
|
|
309
298
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
310
|
-
onItemClick: Prop.eventHandler()
|
|
311
|
-
label: "onItemClick",
|
|
312
|
-
description: "Triggered when a menu item is clicked",
|
|
313
|
-
computedArgs: [
|
|
314
|
-
{
|
|
315
|
-
name: "href",
|
|
316
|
-
type: "string",
|
|
317
|
-
description: "The clicked item's href",
|
|
318
|
-
},
|
|
319
|
-
],
|
|
320
|
-
}),
|
|
299
|
+
onItemClick: Prop.eventHandler(),
|
|
321
300
|
}),
|
|
322
301
|
};
|
|
323
302
|
|