@superblocksteam/vite-plugin-file-sync 2.0.162 → 2.0.163-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +176 -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/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/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-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/phase1-tool-summarizer.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js +5 -2
- 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/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/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 +7 -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
|
@@ -83,15 +83,8 @@ function AccordionContent({
|
|
|
83
83
|
const accordionItemPropertiesDefinition: PropertiesPanelDefinition<AccordionItemProps> =
|
|
84
84
|
{
|
|
85
85
|
general: Section.category(PropsCategory.Content).children({
|
|
86
|
-
value: Prop.string()
|
|
87
|
-
|
|
88
|
-
description:
|
|
89
|
-
"Unique identifier for this accordion item. Used to identify which item is open/closed",
|
|
90
|
-
}),
|
|
91
|
-
children: Prop.jsx().propertiesPanel({
|
|
92
|
-
label: "Children",
|
|
93
|
-
description: "The content of the accordion item",
|
|
94
|
-
}),
|
|
86
|
+
value: Prop.string(),
|
|
87
|
+
children: Prop.jsx(),
|
|
95
88
|
}),
|
|
96
89
|
};
|
|
97
90
|
|
|
@@ -117,68 +110,19 @@ interface AccordionPropsForPanel {
|
|
|
117
110
|
const accordionPropertiesDefinition: PropertiesPanelDefinition<AccordionPropsForPanel> =
|
|
118
111
|
{
|
|
119
112
|
general: Section.category(PropsCategory.Content).children({
|
|
120
|
-
value: Prop.any<string | string[]>()
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
isRemovable: true,
|
|
126
|
-
visibility: "SHOW_NAME",
|
|
127
|
-
}),
|
|
128
|
-
type: Prop.string<"single" | "multiple">().propertiesPanel({
|
|
129
|
-
label: "Type",
|
|
130
|
-
controlType: "RADIO_BUTTON_GROUP",
|
|
131
|
-
options: [
|
|
132
|
-
{
|
|
133
|
-
label: "Single",
|
|
134
|
-
value: "single",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: "Multiple",
|
|
138
|
-
value: "multiple",
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
}),
|
|
142
|
-
children: Prop.jsx().propertiesPanel({
|
|
143
|
-
label: "Children",
|
|
144
|
-
description: "The accordion items to display",
|
|
145
|
-
}),
|
|
146
|
-
defaultValue: Prop.any<string | string[]>().propertiesPanel({
|
|
147
|
-
label: "Default value",
|
|
148
|
-
controlType: "INPUT_TEXT",
|
|
149
|
-
description:
|
|
150
|
-
"The default value of the accordion (string or array of strings)",
|
|
151
|
-
defaultOnAdd: "item-1",
|
|
152
|
-
visibility: "SHOW_NAME",
|
|
153
|
-
isRemovable: true,
|
|
154
|
-
}),
|
|
155
|
-
collapsible: Prop.boolean().propertiesPanel({
|
|
156
|
-
label: "Collapsible",
|
|
157
|
-
controlType: "SWITCH",
|
|
158
|
-
description: "Allow all items to be collapsed",
|
|
159
|
-
}),
|
|
113
|
+
value: Prop.any<string | string[]>(),
|
|
114
|
+
type: Prop.string<"single" | "multiple">(),
|
|
115
|
+
children: Prop.jsx(),
|
|
116
|
+
defaultValue: Prop.any<string | string[]>(),
|
|
117
|
+
collapsible: Prop.boolean(),
|
|
160
118
|
}),
|
|
161
119
|
|
|
162
120
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
163
|
-
disabled: Prop.boolean()
|
|
164
|
-
label: "Disabled",
|
|
165
|
-
controlType: "SWITCH",
|
|
166
|
-
description: "Disable the accordion",
|
|
167
|
-
}),
|
|
121
|
+
disabled: Prop.boolean(),
|
|
168
122
|
}),
|
|
169
123
|
|
|
170
124
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
171
|
-
onValueChange: Prop.eventHandler()
|
|
172
|
-
label: "onValueChange",
|
|
173
|
-
description: "Triggered when the accordion value changes",
|
|
174
|
-
computedArgs: [
|
|
175
|
-
{
|
|
176
|
-
name: "value",
|
|
177
|
-
type: "string",
|
|
178
|
-
description: "The selected value",
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
}),
|
|
125
|
+
onValueChange: Prop.eventHandler(),
|
|
182
126
|
}),
|
|
183
127
|
};
|
|
184
128
|
|
|
@@ -245,132 +245,42 @@ const AreaChart = ({ className, ...props }: ComponentProps) => {
|
|
|
245
245
|
|
|
246
246
|
const properties = {
|
|
247
247
|
general: Section.category(PropsCategory.Content).children({
|
|
248
|
-
data: Prop.array<any>()
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
253
|
-
isJSConvertible: false,
|
|
254
|
-
})
|
|
255
|
-
.docs({
|
|
256
|
-
description:
|
|
257
|
-
"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 area series.",
|
|
258
|
-
}),
|
|
248
|
+
data: Prop.array<any>().docs({
|
|
249
|
+
description:
|
|
250
|
+
"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 area series.",
|
|
251
|
+
}),
|
|
259
252
|
|
|
260
|
-
xAxisKey: Prop.string()
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
placeholder: "month",
|
|
265
|
-
controlType: "DROP_DOWN",
|
|
266
|
-
options: function (this) {
|
|
267
|
-
if (!this.data || !Array.isArray(this.data) || !this.data.length) {
|
|
268
|
-
return [];
|
|
269
|
-
}
|
|
270
|
-
const keys = Object.keys(this.data[0]);
|
|
271
|
-
return keys.map((key) => ({
|
|
272
|
-
label: key,
|
|
273
|
-
value: key,
|
|
274
|
-
}));
|
|
275
|
-
},
|
|
276
|
-
})
|
|
277
|
-
.docs({
|
|
278
|
-
description:
|
|
279
|
-
"The property name in your data objects that contains the X-axis values (categories, dates, or labels). This determines the horizontal positioning of data points. Should be consistent across all data objects.",
|
|
280
|
-
}),
|
|
253
|
+
xAxisKey: Prop.string().docs({
|
|
254
|
+
description:
|
|
255
|
+
"The property name in your data objects that contains the X-axis values (categories, dates, or labels). This determines the horizontal positioning of data points. Should be consistent across all data objects.",
|
|
256
|
+
}),
|
|
281
257
|
|
|
282
|
-
categories: Prop.array<string>()
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"Array of data keys to plot as area series (optional, auto-detects numeric properties if not provided)",
|
|
287
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
288
|
-
isJSConvertible: false,
|
|
289
|
-
})
|
|
290
|
-
.docs({
|
|
291
|
-
description:
|
|
292
|
-
"Array of property names from your data objects to plot as separate area series. Example: ['desktop', 'mobile'] will create two area 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.",
|
|
293
|
-
}),
|
|
258
|
+
categories: Prop.array<string>().docs({
|
|
259
|
+
description:
|
|
260
|
+
"Array of property names from your data objects to plot as separate area series. Example: ['desktop', 'mobile'] will create two area 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.",
|
|
261
|
+
}),
|
|
294
262
|
|
|
295
|
-
seriesLabels: Prop.any<Record<string, string>>()
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
"Optional labels for series (optional, defaults to category names)",
|
|
300
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
301
|
-
isJSConvertible: false,
|
|
302
|
-
})
|
|
303
|
-
.docs({
|
|
304
|
-
description:
|
|
305
|
-
"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.",
|
|
306
|
-
}),
|
|
263
|
+
seriesLabels: Prop.any<Record<string, string>>().docs({
|
|
264
|
+
description:
|
|
265
|
+
"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.",
|
|
266
|
+
}),
|
|
307
267
|
|
|
308
|
-
colors: Prop.array<string>()
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
313
|
-
isJSConvertible: false,
|
|
314
|
-
})
|
|
315
|
-
.docs({
|
|
316
|
-
description:
|
|
317
|
-
"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.",
|
|
318
|
-
}),
|
|
268
|
+
colors: Prop.array<string>().docs({
|
|
269
|
+
description:
|
|
270
|
+
"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.",
|
|
271
|
+
}),
|
|
319
272
|
}),
|
|
320
273
|
appearance: Section.category(PropsCategory.Appearance).children({
|
|
321
|
-
gridStyle: Prop.string<"solid" | "dashed" | "hidden">()
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
showXAxis: Prop.boolean().propertiesPanel({
|
|
332
|
-
label: "Show X-axis",
|
|
333
|
-
description: "Display X-axis with labels",
|
|
334
|
-
controlType: "SWITCH",
|
|
335
|
-
}),
|
|
336
|
-
showYAxis: Prop.boolean().propertiesPanel({
|
|
337
|
-
label: "Show Y-axis",
|
|
338
|
-
description: "Display Y-axis with labels",
|
|
339
|
-
controlType: "SWITCH",
|
|
340
|
-
}),
|
|
341
|
-
showTooltip: Prop.boolean().propertiesPanel({
|
|
342
|
-
label: "Show tooltip",
|
|
343
|
-
description: "Display tooltip on hover",
|
|
344
|
-
controlType: "SWITCH",
|
|
345
|
-
}),
|
|
346
|
-
showLegend: Prop.boolean().propertiesPanel({
|
|
347
|
-
label: "Show legend",
|
|
348
|
-
description: "Display chart legend",
|
|
349
|
-
controlType: "SWITCH",
|
|
350
|
-
}),
|
|
351
|
-
fillOpacity: Prop.number().propertiesPanel({
|
|
352
|
-
label: "Fill opacity",
|
|
353
|
-
description: "Opacity of the area fill (0-1)",
|
|
354
|
-
}),
|
|
355
|
-
strokeWidth: Prop.number().propertiesPanel({
|
|
356
|
-
label: "Stroke width",
|
|
357
|
-
description: "Width of the area border line",
|
|
358
|
-
}),
|
|
359
|
-
useGradient: Prop.boolean().propertiesPanel({
|
|
360
|
-
label: "Use gradient",
|
|
361
|
-
description: "Use gradient fill for the area",
|
|
362
|
-
controlType: "SWITCH",
|
|
363
|
-
}),
|
|
364
|
-
showDots: Prop.boolean().propertiesPanel({
|
|
365
|
-
label: "Show dots",
|
|
366
|
-
description: "Display dots on the area",
|
|
367
|
-
controlType: "SWITCH",
|
|
368
|
-
}),
|
|
369
|
-
connectNulls: Prop.boolean().propertiesPanel({
|
|
370
|
-
label: "Connect nulls",
|
|
371
|
-
description: "Connect nulls with the previous non-null value",
|
|
372
|
-
controlType: "SWITCH",
|
|
373
|
-
}),
|
|
274
|
+
gridStyle: Prop.string<"solid" | "dashed" | "hidden">(),
|
|
275
|
+
showXAxis: Prop.boolean(),
|
|
276
|
+
showYAxis: Prop.boolean(),
|
|
277
|
+
showTooltip: Prop.boolean(),
|
|
278
|
+
showLegend: Prop.boolean(),
|
|
279
|
+
fillOpacity: Prop.number(),
|
|
280
|
+
strokeWidth: Prop.number(),
|
|
281
|
+
useGradient: Prop.boolean(),
|
|
282
|
+
showDots: Prop.boolean(),
|
|
283
|
+
connectNulls: Prop.boolean(),
|
|
374
284
|
areaType: Prop.string<
|
|
375
285
|
| "linear"
|
|
376
286
|
| "bump"
|
|
@@ -380,46 +290,16 @@ const properties = {
|
|
|
380
290
|
| "stepAfter"
|
|
381
291
|
| "natural"
|
|
382
292
|
| "monotone"
|
|
383
|
-
>()
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
controlType: "DROP_DOWN",
|
|
388
|
-
options: [
|
|
389
|
-
{ label: "Linear", value: "linear" },
|
|
390
|
-
{ label: "Bump", value: "bump" },
|
|
391
|
-
{ label: "Step", value: "step" },
|
|
392
|
-
{ label: "Basis", value: "basis" },
|
|
393
|
-
{ label: "Step Before", value: "stepBefore" },
|
|
394
|
-
{ label: "Step After", value: "stepAfter" },
|
|
395
|
-
{ label: "Natural", value: "natural" },
|
|
396
|
-
{ label: "Monotone", value: "monotone" },
|
|
397
|
-
],
|
|
398
|
-
})
|
|
399
|
-
.docs({
|
|
400
|
-
description:
|
|
401
|
-
"Curve interpolation type for area paths. 'linear' creates straight lines, 'monotone' creates smooth curves that preserve monotonicity, 'natural' creates natural spline curves, 'step' creates step functions, 'basis' creates B-spline curves, 'bump' creates rounded bumps, 'stepBefore' steps before point, 'stepAfter' steps after point.",
|
|
402
|
-
}),
|
|
293
|
+
>().docs({
|
|
294
|
+
description:
|
|
295
|
+
"Curve interpolation type for area paths. 'linear' creates straight lines, 'monotone' creates smooth curves that preserve monotonicity, 'natural' creates natural spline curves, 'step' creates step functions, 'basis' creates B-spline curves, 'bump' creates rounded bumps, 'stepBefore' steps before point, 'stepAfter' steps after point.",
|
|
296
|
+
}),
|
|
403
297
|
}),
|
|
404
298
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
405
|
-
enableAnimation: Prop.boolean()
|
|
406
|
-
label: "Enable animation",
|
|
407
|
-
description: "Enable chart animations on load",
|
|
408
|
-
controlType: "SWITCH",
|
|
409
|
-
}),
|
|
299
|
+
enableAnimation: Prop.boolean(),
|
|
410
300
|
}),
|
|
411
301
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
412
|
-
onDataClick: Prop.eventHandler()
|
|
413
|
-
label: "onDataClick",
|
|
414
|
-
description: "Triggered when an area is clicked",
|
|
415
|
-
computedArgs: [
|
|
416
|
-
{
|
|
417
|
-
name: "data",
|
|
418
|
-
type: "object",
|
|
419
|
-
description: "The data point that was clicked",
|
|
420
|
-
},
|
|
421
|
-
],
|
|
422
|
-
}),
|
|
302
|
+
onDataClick: Prop.eventHandler(),
|
|
423
303
|
}),
|
|
424
304
|
};
|
|
425
305
|
|
|
@@ -23,11 +23,7 @@ type AspectRatioProps = React.ComponentPropsWithoutRef<typeof AspectRatio>;
|
|
|
23
23
|
// Properties Definition
|
|
24
24
|
const propertiesDefinition: PropertiesPanelDefinition<AspectRatioProps> = {
|
|
25
25
|
general: Section.category(PropsCategory.Content).children({
|
|
26
|
-
ratio: Prop.number()
|
|
27
|
-
label: "Aspect ratio",
|
|
28
|
-
description: "The desired width/height ratio (e.g., 1.777 for 16:9)",
|
|
29
|
-
placeholder: "1.777",
|
|
30
|
-
}),
|
|
26
|
+
ratio: Prop.number(),
|
|
31
27
|
}),
|
|
32
28
|
};
|
|
33
29
|
|
|
@@ -78,14 +78,8 @@ const avatarImagePropertiesDefinition: PropertiesPanelDefinition<
|
|
|
78
78
|
React.ComponentPropsWithoutRef<typeof AvatarImage>
|
|
79
79
|
> = {
|
|
80
80
|
general: Section.category(PropsCategory.Content).children({
|
|
81
|
-
src: Prop.string()
|
|
82
|
-
|
|
83
|
-
description: "URL of the avatar image",
|
|
84
|
-
}),
|
|
85
|
-
alt: Prop.string().propertiesPanel({
|
|
86
|
-
label: "Alt text",
|
|
87
|
-
description: "Alternative text for the avatar image",
|
|
88
|
-
}),
|
|
81
|
+
src: Prop.string(),
|
|
82
|
+
alt: Prop.string(),
|
|
89
83
|
}),
|
|
90
84
|
};
|
|
91
85
|
|
|
@@ -94,18 +88,10 @@ const avatarFallbackPropertiesDefinition: PropertiesPanelDefinition<
|
|
|
94
88
|
React.ComponentPropsWithoutRef<typeof AvatarFallback>
|
|
95
89
|
> = {
|
|
96
90
|
general: Section.category(PropsCategory.Content).children({
|
|
97
|
-
children: Prop.jsx()
|
|
98
|
-
label: "Fallback content",
|
|
99
|
-
description:
|
|
100
|
-
"Content to display when image fails to load (typically initials)",
|
|
101
|
-
}),
|
|
91
|
+
children: Prop.jsx(),
|
|
102
92
|
}),
|
|
103
93
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
104
|
-
delayMs: Prop.number()
|
|
105
|
-
label: "Delay (ms)",
|
|
106
|
-
description:
|
|
107
|
-
"How long to wait before showing the fallback. This is useful to only show the fallback for those with slower connections.",
|
|
108
|
-
}),
|
|
94
|
+
delayMs: Prop.number(),
|
|
109
95
|
}),
|
|
110
96
|
};
|
|
111
97
|
|
|
@@ -90,41 +90,18 @@ type BadgeVariant = NonNullable<BadgeVariantProps["variant"]>;
|
|
|
90
90
|
// Properties Definition
|
|
91
91
|
const propertiesDefinition: PropertiesPanelDefinition<BadgeProps> = {
|
|
92
92
|
general: Section.category(PropsCategory.Content).children({
|
|
93
|
-
children: Prop.jsx()
|
|
94
|
-
|
|
95
|
-
description:
|
|
93
|
+
children: Prop.jsx(),
|
|
94
|
+
icon: Prop.any<JSX.Element | IconName>().docs({
|
|
95
|
+
description:
|
|
96
|
+
"The icon to display in the component. You can use the Lucide icon library to find the icon you want.",
|
|
96
97
|
}),
|
|
97
|
-
icon: Prop.any<JSX.Element | IconName>()
|
|
98
|
-
.propertiesPanel({
|
|
99
|
-
label: "Icon",
|
|
100
|
-
visibility: "SHOW_NAME",
|
|
101
|
-
defaultOnAdd: "info",
|
|
102
|
-
controlType: "ICON_SELECTOR",
|
|
103
|
-
})
|
|
104
|
-
.docs({
|
|
105
|
-
description:
|
|
106
|
-
"The icon to display in the component. You can use the Lucide icon library to find the icon you want.",
|
|
107
|
-
}),
|
|
108
98
|
}),
|
|
109
99
|
appearance: Section.category(PropsCategory.Appearance).children({
|
|
110
|
-
variant: Prop.string<BadgeVariant>()
|
|
111
|
-
label: "Variant",
|
|
112
|
-
controlType: "DROP_DOWN",
|
|
113
|
-
description: "The visual style of the badge",
|
|
114
|
-
options: [
|
|
115
|
-
{ label: "Default", value: "default" },
|
|
116
|
-
{ label: "Secondary", value: "secondary" },
|
|
117
|
-
{ label: "Destructive", value: "destructive" },
|
|
118
|
-
{ label: "Outline", value: "outline" },
|
|
119
|
-
],
|
|
120
|
-
}),
|
|
100
|
+
variant: Prop.string<BadgeVariant>(),
|
|
121
101
|
}),
|
|
122
102
|
|
|
123
103
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
124
|
-
onClick: Prop.eventHandler()
|
|
125
|
-
label: "onClick",
|
|
126
|
-
description: "Triggered when the badge is clicked",
|
|
127
|
-
}),
|
|
104
|
+
onClick: Prop.eventHandler(),
|
|
128
105
|
}),
|
|
129
106
|
};
|
|
130
107
|
|
|
@@ -198,186 +198,60 @@ const BarChart = ({ className, ...props }: ComponentProps) => {
|
|
|
198
198
|
|
|
199
199
|
const properties = {
|
|
200
200
|
general: Section.category(PropsCategory.Content).children({
|
|
201
|
-
data: Prop.array<any>()
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
206
|
-
isJSConvertible: false,
|
|
207
|
-
})
|
|
208
|
-
.docs({
|
|
209
|
-
description:
|
|
210
|
-
"Array of objects where each object represents a category with X-axis value and Y-axis values for each data series. Each object should contain the xAxisKey property and properties for each bar series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple bar series (grouped or stacked).",
|
|
211
|
-
}),
|
|
201
|
+
data: Prop.array<any>().docs({
|
|
202
|
+
description:
|
|
203
|
+
"Array of objects where each object represents a category with X-axis value and Y-axis values for each data series. Each object should contain the xAxisKey property and properties for each bar series defined in categories. Example: [{month: 'January', desktop: 186, mobile: 80}, {month: 'February', desktop: 305, mobile: 200}]. Multiple Y-value properties create multiple bar series (grouped or stacked).",
|
|
204
|
+
}),
|
|
212
205
|
|
|
213
|
-
xAxisKey: Prop.string()
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
placeholder: "category",
|
|
218
|
-
controlType: "DROP_DOWN",
|
|
219
|
-
options: function (this) {
|
|
220
|
-
if (!this.data || !Array.isArray(this.data) || !this.data.length) {
|
|
221
|
-
return [];
|
|
222
|
-
}
|
|
223
|
-
return Object.keys(this.data[0]).map((key) => ({
|
|
224
|
-
label: key,
|
|
225
|
-
value: key,
|
|
226
|
-
}));
|
|
227
|
-
},
|
|
228
|
-
})
|
|
229
|
-
.docs({
|
|
230
|
-
description:
|
|
231
|
-
"The property name in your data objects that contains the X-axis values (categories, labels, or identifiers). This determines the horizontal grouping of bars and should be consistent across all data objects.",
|
|
232
|
-
}),
|
|
206
|
+
xAxisKey: Prop.string().docs({
|
|
207
|
+
description:
|
|
208
|
+
"The property name in your data objects that contains the X-axis values (categories, labels, or identifiers). This determines the horizontal grouping of bars and should be consistent across all data objects.",
|
|
209
|
+
}),
|
|
233
210
|
|
|
234
|
-
categories: Prop.array<string>()
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"Array of data keys to plot as bar series (optional, auto-detects numeric properties if not provided)",
|
|
239
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
240
|
-
isJSConvertible: false,
|
|
241
|
-
})
|
|
242
|
-
.docs({
|
|
243
|
-
description:
|
|
244
|
-
"Array of property names from your data objects to plot as separate bar series. Example: ['desktop', 'mobile'] will create two bar 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.",
|
|
245
|
-
}),
|
|
211
|
+
categories: Prop.array<string>().docs({
|
|
212
|
+
description:
|
|
213
|
+
"Array of property names from your data objects to plot as separate bar series. Example: ['desktop', 'mobile'] will create two bar 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.",
|
|
214
|
+
}),
|
|
246
215
|
|
|
247
|
-
seriesLabels: Prop.any<Record<string, string>>()
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"Optional labels for series (optional, defaults to category names)",
|
|
252
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
253
|
-
isJSConvertible: false,
|
|
254
|
-
})
|
|
255
|
-
.docs({
|
|
256
|
-
description:
|
|
257
|
-
"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.",
|
|
258
|
-
}),
|
|
216
|
+
seriesLabels: Prop.any<Record<string, string>>().docs({
|
|
217
|
+
description:
|
|
218
|
+
"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.",
|
|
219
|
+
}),
|
|
259
220
|
|
|
260
|
-
colors: Prop.array<string>()
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
265
|
-
isJSConvertible: false,
|
|
266
|
-
})
|
|
267
|
-
.docs({
|
|
268
|
-
description:
|
|
269
|
-
"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.",
|
|
270
|
-
}),
|
|
221
|
+
colors: Prop.array<string>().docs({
|
|
222
|
+
description:
|
|
223
|
+
"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.",
|
|
224
|
+
}),
|
|
271
225
|
|
|
272
|
-
stackIds: Prop.any<Record<string, string>>()
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
controlType: "FUNCTION_CODE_EDITOR",
|
|
277
|
-
isJSConvertible: false,
|
|
278
|
-
})
|
|
279
|
-
.docs({
|
|
280
|
-
description:
|
|
281
|
-
"Optional object mapping category keys to stack IDs. Bars with the same stack ID will be stacked together. Example: {desktop: 'stack1', mobile: 'stack1'} stacks desktop and mobile bars.",
|
|
282
|
-
}),
|
|
226
|
+
stackIds: Prop.any<Record<string, string>>().docs({
|
|
227
|
+
description:
|
|
228
|
+
"Optional object mapping category keys to stack IDs. Bars with the same stack ID will be stacked together. Example: {desktop: 'stack1', mobile: 'stack1'} stacks desktop and mobile bars.",
|
|
229
|
+
}),
|
|
283
230
|
}),
|
|
284
231
|
appearance: Section.category(PropsCategory.Appearance).children({
|
|
285
|
-
layout: Prop.string<"vertical" | "horizontal">()
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
description: "Orientation of the bars",
|
|
289
|
-
controlType: "DROP_DOWN",
|
|
290
|
-
options: [
|
|
291
|
-
{ label: "Vertical", value: "vertical" },
|
|
292
|
-
{ label: "Horizontal", value: "horizontal" },
|
|
293
|
-
],
|
|
294
|
-
})
|
|
295
|
-
.docs({
|
|
296
|
-
description:
|
|
297
|
-
"Chart orientation. 'vertical' creates bars that extend upward from bottom (categories on X-axis, values on Y-axis). 'horizontal' creates bars that extend rightward from left (categories on Y-axis, values on X-axis). Layout affects axis configuration and bar positioning.",
|
|
298
|
-
}),
|
|
299
|
-
|
|
300
|
-
gridStyle: Prop.string<"solid" | "dashed" | "hidden">().propertiesPanel({
|
|
301
|
-
label: "Grid style",
|
|
302
|
-
description: "Style of the chart grid lines",
|
|
303
|
-
controlType: "DROP_DOWN",
|
|
304
|
-
options: [
|
|
305
|
-
{ label: "Solid", value: "solid" },
|
|
306
|
-
{ label: "Dashed", value: "dashed" },
|
|
307
|
-
{ label: "Hidden", value: "hidden" },
|
|
308
|
-
],
|
|
309
|
-
}),
|
|
310
|
-
showXAxis: Prop.boolean().propertiesPanel({
|
|
311
|
-
label: "Show X-axis",
|
|
312
|
-
description: "Display X-axis with labels",
|
|
313
|
-
controlType: "SWITCH",
|
|
232
|
+
layout: Prop.string<"vertical" | "horizontal">().docs({
|
|
233
|
+
description:
|
|
234
|
+
"Chart orientation. 'vertical' creates bars that extend upward from bottom (categories on X-axis, values on Y-axis). 'horizontal' creates bars that extend rightward from left (categories on Y-axis, values on X-axis). Layout affects axis configuration and bar positioning.",
|
|
314
235
|
}),
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
description: "Display chart legend",
|
|
328
|
-
controlType: "SWITCH",
|
|
329
|
-
}),
|
|
330
|
-
barSize: Prop.number().propertiesPanel({
|
|
331
|
-
label: "Bar size",
|
|
332
|
-
description: "Width/height of the bars",
|
|
333
|
-
visibility: "SHOW_NAME",
|
|
334
|
-
defaultOnAdd: 40,
|
|
335
|
-
}),
|
|
336
|
-
barRadius: Prop.number().propertiesPanel({
|
|
337
|
-
label: "Bar radius",
|
|
338
|
-
description: "Border radius of the bars for rounded corners",
|
|
339
|
-
visibility: "SHOW_NAME",
|
|
340
|
-
defaultOnAdd: 0,
|
|
341
|
-
}),
|
|
342
|
-
showBarLabels: Prop.boolean().propertiesPanel({
|
|
343
|
-
label: "Show bar labels",
|
|
344
|
-
description: "Display value labels on bars",
|
|
345
|
-
controlType: "SWITCH",
|
|
236
|
+
|
|
237
|
+
gridStyle: Prop.string<"solid" | "dashed" | "hidden">(),
|
|
238
|
+
showXAxis: Prop.boolean(),
|
|
239
|
+
showYAxis: Prop.boolean(),
|
|
240
|
+
showTooltip: Prop.boolean(),
|
|
241
|
+
showLegend: Prop.boolean(),
|
|
242
|
+
barSize: Prop.number(),
|
|
243
|
+
barRadius: Prop.number(),
|
|
244
|
+
showBarLabels: Prop.boolean(),
|
|
245
|
+
stackOffset: Prop.string<"none" | "expand">().docs({
|
|
246
|
+
description:
|
|
247
|
+
"Stacking behavior for bars with matching stackId. 'none' shows actual values with bars stacked to their natural heights. 'expand' normalizes all stacked bars to 100% height, showing relative proportions rather than absolute values. Only affects bars that share the same stackId.",
|
|
346
248
|
}),
|
|
347
|
-
stackOffset: Prop.string<"none" | "expand">()
|
|
348
|
-
.propertiesPanel({
|
|
349
|
-
label: "Stack offset",
|
|
350
|
-
description: "Type of stacking for multiple series (expand = 100%)",
|
|
351
|
-
controlType: "DROP_DOWN",
|
|
352
|
-
options: [
|
|
353
|
-
{ label: "None", value: "none" },
|
|
354
|
-
{ label: "Expand (100%)", value: "expand" },
|
|
355
|
-
],
|
|
356
|
-
})
|
|
357
|
-
.docs({
|
|
358
|
-
description:
|
|
359
|
-
"Stacking behavior for bars with matching stackId. 'none' shows actual values with bars stacked to their natural heights. 'expand' normalizes all stacked bars to 100% height, showing relative proportions rather than absolute values. Only affects bars that share the same stackId.",
|
|
360
|
-
}),
|
|
361
249
|
}),
|
|
362
250
|
interaction: Section.category(PropsCategory.Interaction).children({
|
|
363
|
-
enableAnimation: Prop.boolean()
|
|
364
|
-
label: "Enable animation",
|
|
365
|
-
description: "Enable chart animations on load",
|
|
366
|
-
controlType: "SWITCH",
|
|
367
|
-
}),
|
|
251
|
+
enableAnimation: Prop.boolean(),
|
|
368
252
|
}),
|
|
369
253
|
events: Section.category(PropsCategory.EventHandlers).children({
|
|
370
|
-
onDataClick: Prop.eventHandler()
|
|
371
|
-
label: "onDataClick",
|
|
372
|
-
description: "Triggered when a bar is clicked",
|
|
373
|
-
computedArgs: [
|
|
374
|
-
{
|
|
375
|
-
name: "data",
|
|
376
|
-
type: "object",
|
|
377
|
-
description: "The data point that was clicked",
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
}),
|
|
254
|
+
onDataClick: Prop.eventHandler(),
|
|
381
255
|
}),
|
|
382
256
|
};
|
|
383
257
|
|
|
@@ -140,10 +140,7 @@ const Breadcrumb = ({
|
|
|
140
140
|
// Properties Definition
|
|
141
141
|
const propertiesDefinition: PropertiesPanelDefinition<BreadcrumbProps> = {
|
|
142
142
|
general: Section.category(PropsCategory.Content).children({
|
|
143
|
-
children: Prop.jsx()
|
|
144
|
-
label: "Items",
|
|
145
|
-
description: "The items to display",
|
|
146
|
-
}),
|
|
143
|
+
children: Prop.jsx(),
|
|
147
144
|
}),
|
|
148
145
|
};
|
|
149
146
|
|