@superblocksteam/vite-plugin-file-sync 2.0.170-next.1 → 2.0.171-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/prompts/api-prompts.d.ts.map +1 -1
- package/dist/ai-service/agent/prompts/api-prompts.js +4 -6
- package/dist/ai-service/agent/prompts/api-prompts.js.map +1 -1
- package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts +3 -12
- 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 +144 -71
- package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
- package/dist/ai-service/agent/subagents/testing/types.d.ts +2 -1
- package/dist/ai-service/agent/subagents/testing/types.d.ts.map +1 -1
- package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -1
- package/dist/ai-service/agent/tool-message-utils.js +47 -36
- package/dist/ai-service/agent/tool-message-utils.js.map +1 -1
- package/dist/ai-service/agent/tool-result-metrics.d.ts +15 -0
- package/dist/ai-service/agent/tool-result-metrics.d.ts.map +1 -1
- package/dist/ai-service/agent/tool-result-metrics.js +28 -0
- package/dist/ai-service/agent/tool-result-metrics.js.map +1 -1
- package/dist/ai-service/agent/tools/apis/analysis.d.ts +24 -2
- package/dist/ai-service/agent/tools/apis/analysis.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/apis/analysis.js +164 -11
- package/dist/ai-service/agent/tools/apis/analysis.js.map +1 -1
- package/dist/ai-service/agent/tools/apis/api-comparator.d.ts +2 -1
- package/dist/ai-service/agent/tools/apis/api-comparator.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/apis/contained-source-reader.d.ts +11 -0
- package/dist/ai-service/agent/tools/apis/contained-source-reader.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/contained-source-reader.js +48 -0
- package/dist/ai-service/agent/tools/apis/contained-source-reader.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts +37 -10
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js +140 -70
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js.map +1 -1
- package/dist/ai-service/agent/tools/apis/spreadsheet-csv.d.ts +6 -20
- package/dist/ai-service/agent/tools/apis/spreadsheet-csv.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/apis/spreadsheet-csv.js +3 -3
- package/dist/ai-service/agent/tools/apis/spreadsheet-csv.js.map +1 -1
- package/dist/ai-service/agent/tools/apis/test-api-metrics.d.ts +8 -0
- package/dist/ai-service/agent/tools/apis/test-api-metrics.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/test-api-metrics.js +41 -0
- package/dist/ai-service/agent/tools/apis/test-api-metrics.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/test-api-timing.d.ts +27 -0
- package/dist/ai-service/agent/tools/apis/test-api-timing.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/test-api-timing.js +25 -0
- package/dist/ai-service/agent/tools/apis/test-api-timing.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/test-api.d.ts +4 -0
- package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/apis/test-api.js +119 -20
- package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -1
- package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts +0 -18
- package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/build-capture-screenshot.js +2 -2
- package/dist/ai-service/agent/tools/build-capture-screenshot.js.map +1 -1
- package/dist/ai-service/agent/tools/build-install-packages.d.ts +32 -5
- package/dist/ai-service/agent/tools/build-install-packages.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/build-install-packages.js +20 -19
- package/dist/ai-service/agent/tools/build-install-packages.js.map +1 -1
- package/dist/ai-service/agent/tools/build-manage-checklist.d.ts +1 -1
- package/dist/ai-service/agent/tools/build-manage-packages.d.ts +19 -0
- package/dist/ai-service/agent/tools/build-manage-packages.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-manage-packages.js +220 -0
- package/dist/ai-service/agent/tools/build-manage-packages.js.map +1 -0
- package/dist/ai-service/agent/tools/build-read-file.d.ts +5 -14
- package/dist/ai-service/agent/tools/build-read-file.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/build-read-file.js +5 -8
- package/dist/ai-service/agent/tools/build-read-file.js.map +1 -1
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts +2 -90
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.js +1 -2
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.js.map +1 -1
- package/dist/ai-service/agent/tools/debug-cache.d.ts +0 -12
- package/dist/ai-service/agent/tools/debug-cache.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/debug-cache.js +1 -1
- package/dist/ai-service/agent/tools/debug-cache.js.map +1 -1
- package/dist/ai-service/agent/tools/index.d.ts +3 -3
- package/dist/ai-service/agent/tools/index.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/index.js +2 -2
- package/dist/ai-service/agent/tools/index.js.map +1 -1
- package/dist/ai-service/agent/tools/integrations/errors.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/integrations/errors.js +3 -0
- package/dist/ai-service/agent/tools/integrations/errors.js.map +1 -1
- package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +27 -0
- package/dist/ai-service/agent/tools/integrations/execute-request.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/integrations/execute-request.js +85 -11
- package/dist/ai-service/agent/tools/integrations/execute-request.js.map +1 -1
- package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts +0 -2
- package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/integrations/managed-app-database.js +1 -1
- package/dist/ai-service/agent/tools/integrations/managed-app-database.js.map +1 -1
- package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/integrations/metadata.js +1 -0
- package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -1
- package/dist/ai-service/agent/tools/read-state-trackers.d.ts +16 -2
- package/dist/ai-service/agent/tools/read-state-trackers.d.ts.map +1 -1
- package/dist/ai-service/agent/tools/read-state-trackers.js +11 -2
- package/dist/ai-service/agent/tools/read-state-trackers.js.map +1 -1
- package/dist/ai-service/agent/tools.d.ts.map +1 -1
- package/dist/ai-service/agent/tools.js +13 -6
- package/dist/ai-service/agent/tools.js.map +1 -1
- package/dist/ai-service/agent/tools2/registry.d.ts +20 -1
- package/dist/ai-service/agent/tools2/registry.d.ts.map +1 -1
- package/dist/ai-service/agent/tools2/registry.js +55 -9
- package/dist/ai-service/agent/tools2/registry.js.map +1 -1
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.d.ts.map +1 -1
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js +25 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js.map +1 -1
- package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts +8 -2
- package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts.map +1 -1
- package/dist/ai-service/agent/tools2/tools/grep-metadata.js +17 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata.js.map +1 -1
- package/dist/ai-service/agent/tools2/tools/grep.d.ts.map +1 -1
- package/dist/ai-service/agent/tools2/tools/grep.js +50 -25
- package/dist/ai-service/agent/tools2/tools/grep.js.map +1 -1
- package/dist/ai-service/agent/utils.d.ts.map +1 -1
- package/dist/ai-service/agent/utils.js +3 -3
- package/dist/ai-service/agent/utils.js.map +1 -1
- package/dist/ai-service/app-interface/file-system-interface.d.ts +0 -6
- package/dist/ai-service/app-interface/file-system-interface.d.ts.map +1 -1
- package/dist/ai-service/app-interface/file-system-interface.js +39 -97
- package/dist/ai-service/app-interface/file-system-interface.js.map +1 -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 +2 -2
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js.map +1 -1
- package/dist/ai-service/app-interface/filesystem/validation.js +1 -1
- package/dist/ai-service/app-interface/filesystem/validation.js.map +1 -1
- package/dist/ai-service/app-interface/npm-package-lookup.d.ts +1 -3
- package/dist/ai-service/app-interface/npm-package-lookup.d.ts.map +1 -1
- package/dist/ai-service/app-interface/npm-package-lookup.js +1 -1
- package/dist/ai-service/app-interface/npm-package-lookup.js.map +1 -1
- package/dist/ai-service/app-interface/pnpm-lockfile.d.ts.map +1 -1
- package/dist/ai-service/app-interface/pnpm-lockfile.js +2 -4
- package/dist/ai-service/app-interface/pnpm-lockfile.js.map +1 -1
- package/dist/ai-service/app-interface/shell.d.ts +38 -15
- package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
- package/dist/ai-service/app-interface/shell.js +646 -48
- package/dist/ai-service/app-interface/shell.js.map +1 -1
- package/dist/ai-service/app-interface/vulnerability-gate.d.ts +7 -0
- package/dist/ai-service/app-interface/vulnerability-gate.d.ts.map +1 -1
- package/dist/ai-service/app-interface/vulnerability-gate.js +16 -6
- package/dist/ai-service/app-interface/vulnerability-gate.js.map +1 -1
- package/dist/ai-service/app-layout.d.ts +3 -0
- package/dist/ai-service/app-layout.d.ts.map +1 -1
- package/dist/ai-service/app-layout.js +14 -0
- package/dist/ai-service/app-layout.js.map +1 -1
- package/dist/ai-service/app-skills/parser.d.ts +2 -1
- package/dist/ai-service/app-skills/parser.d.ts.map +1 -1
- package/dist/ai-service/attachments/store.d.ts +4 -4
- package/dist/ai-service/attachments/store.d.ts.map +1 -1
- package/dist/ai-service/chat/chat-session-store-metrics.d.ts +1 -2
- package/dist/ai-service/chat/chat-session-store-metrics.d.ts.map +1 -1
- package/dist/ai-service/chat/chat-session-store-metrics.js +0 -6
- package/dist/ai-service/chat/chat-session-store-metrics.js.map +1 -1
- package/dist/ai-service/chat/chat-session-store.d.ts +2 -11
- package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -1
- package/dist/ai-service/chat/chat-session-store.js +21 -4
- package/dist/ai-service/chat/chat-session-store.js.map +1 -1
- package/dist/ai-service/chat/utils.d.ts +1 -2
- package/dist/ai-service/chat/utils.d.ts.map +1 -1
- package/dist/ai-service/chat/utils.js +0 -1
- package/dist/ai-service/chat/utils.js.map +1 -1
- package/dist/ai-service/checklist/persisted-checklist-store.d.ts +3 -3
- package/dist/ai-service/checklist/persisted-checklist-store.d.ts.map +1 -1
- package/dist/ai-service/checklist/persisted-checklist-store.js +4 -2
- package/dist/ai-service/checklist/persisted-checklist-store.js.map +1 -1
- package/dist/ai-service/context/app-context.d.ts +7 -39
- package/dist/ai-service/context/app-context.d.ts.map +1 -1
- package/dist/ai-service/context/app-context.js +29 -110
- package/dist/ai-service/context/app-context.js.map +1 -1
- package/dist/ai-service/context-clear-metrics.d.ts +11 -0
- package/dist/ai-service/context-clear-metrics.d.ts.map +1 -0
- package/dist/ai-service/context-clear-metrics.js +64 -0
- package/dist/ai-service/context-clear-metrics.js.map +1 -0
- package/dist/ai-service/context-download.js +2 -2
- package/dist/ai-service/context-download.js.map +1 -1
- package/dist/ai-service/edit-after-clark.d.ts +0 -5
- package/dist/ai-service/edit-after-clark.d.ts.map +1 -1
- package/dist/ai-service/edit-after-clark.js +1 -1
- package/dist/ai-service/edit-after-clark.js.map +1 -1
- package/dist/ai-service/features.d.ts +20 -4
- package/dist/ai-service/features.d.ts.map +1 -1
- package/dist/ai-service/features.js +20 -4
- package/dist/ai-service/features.js.map +1 -1
- package/dist/ai-service/filter-disabled-tools-for-migration.js +1 -1
- package/dist/ai-service/filter-disabled-tools-for-migration.js.map +1 -1
- package/dist/ai-service/index.d.ts +58 -0
- package/dist/ai-service/index.d.ts.map +1 -1
- package/dist/ai-service/index.js +186 -21
- package/dist/ai-service/index.js.map +1 -1
- package/dist/ai-service/integrations/store.d.ts +6 -0
- package/dist/ai-service/integrations/store.d.ts.map +1 -1
- package/dist/ai-service/integrations/store.js +101 -3
- package/dist/ai-service/integrations/store.js.map +1 -1
- package/dist/ai-service/live-edit-events/forwarder.d.ts +1 -12
- package/dist/ai-service/live-edit-events/forwarder.d.ts.map +1 -1
- package/dist/ai-service/live-edit-events/forwarder.js +1 -7
- package/dist/ai-service/live-edit-events/forwarder.js.map +1 -1
- 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 +15 -5
- package/dist/ai-service/llm/context-v2/compaction/client-side.js.map +1 -1
- package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts +6 -0
- package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts.map +1 -1
- 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 +5 -1
- package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -1
- package/dist/ai-service/llm/context-v2/compactor.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/compactor.js +34 -12
- package/dist/ai-service/llm/context-v2/compactor.js.map +1 -1
- package/dist/ai-service/llm/context-v2/context-management.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/context-management.js +9 -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 +4 -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 +15 -3
- package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -1
- package/dist/ai-service/llm/context-v2/context.d.ts +36 -6
- package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/context.js +72 -28
- package/dist/ai-service/llm/context-v2/context.js.map +1 -1
- package/dist/ai-service/llm/context-v2/manager.d.ts +3 -3
- package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/manager.js +13 -7
- package/dist/ai-service/llm/context-v2/manager.js.map +1 -1
- package/dist/ai-service/llm/context-v2/migrations/types.d.ts +2 -1
- package/dist/ai-service/llm/context-v2/migrations/types.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/storage/event-types.d.ts +5 -5
- package/dist/ai-service/llm/context-v2/storage/event-types.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/storage/event-types.js +3 -23
- package/dist/ai-service/llm/context-v2/storage/event-types.js.map +1 -1
- package/dist/ai-service/llm/context-v2/types.d.ts +9 -1
- package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/types.js.map +1 -1
- package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts +20 -4
- package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts.map +1 -1
- package/dist/ai-service/llm/context-v2/uniquify-filenames.js +128 -29
- package/dist/ai-service/llm/context-v2/uniquify-filenames.js.map +1 -1
- package/dist/ai-service/llm/error.d.ts +1 -1
- package/dist/ai-service/llm/error.d.ts.map +1 -1
- package/dist/ai-service/llm/error.js +57 -7
- package/dist/ai-service/llm/error.js.map +1 -1
- package/dist/ai-service/llm/stream/config.d.ts +3 -3
- package/dist/ai-service/llm/stream/config.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/errors.d.ts +3 -0
- package/dist/ai-service/llm/stream/errors.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/errors.js +72 -4
- package/dist/ai-service/llm/stream/errors.js.map +1 -1
- package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts +0 -6
- package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/observers/workflow-usage.js +2 -2
- package/dist/ai-service/llm/stream/observers/workflow-usage.js.map +1 -1
- package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -1
- package/dist/ai-service/llm/stream/orchestrator.js +6 -1
- package/dist/ai-service/llm/stream/orchestrator.js.map +1 -1
- package/dist/ai-service/managed-native-db-availability.d.ts +5 -2
- package/dist/ai-service/managed-native-db-availability.d.ts.map +1 -1
- package/dist/ai-service/managed-native-db-availability.js +5 -1
- package/dist/ai-service/managed-native-db-availability.js.map +1 -1
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +2 -0
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -1
- package/dist/ai-service/migration-prompt-gating.d.ts +1 -0
- package/dist/ai-service/migration-prompt-gating.d.ts.map +1 -1
- package/dist/ai-service/migration-prompt-gating.js +3 -0
- package/dist/ai-service/migration-prompt-gating.js.map +1 -1
- package/dist/ai-service/migration-turns-log.d.ts +3 -2
- package/dist/ai-service/migration-turns-log.d.ts.map +1 -1
- package/dist/ai-service/migration-turns-log.js.map +1 -1
- package/dist/ai-service/policy-agent-metrics.d.ts +2 -4
- package/dist/ai-service/policy-agent-metrics.d.ts.map +1 -1
- package/dist/ai-service/policy-agent-metrics.js +3 -3
- package/dist/ai-service/policy-agent-metrics.js.map +1 -1
- package/dist/ai-service/policy-gate-remediation-usage.d.ts.map +1 -1
- package/dist/ai-service/policy-gate-remediation-usage.js +29 -19
- package/dist/ai-service/policy-gate-remediation-usage.js.map +1 -1
- package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js +1 -1
- package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js.map +1 -1
- package/dist/ai-service/recording/types.d.ts +6 -5
- package/dist/ai-service/recording/types.d.ts.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 +10 -0
- package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
- package/dist/ai-service/skills/system/app-database/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/app-database/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/app-database/skill.generated.js +79 -0
- package/dist/ai-service/skills/system/app-database/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/resolve.d.ts +1 -1
- package/dist/ai-service/skills/system/resolve.d.ts.map +1 -1
- package/dist/ai-service/skills/system/resolve.js +25 -2
- package/dist/ai-service/skills/system/resolve.js.map +1 -1
- package/dist/ai-service/skills/system/spreadsheet-import/skill.generated.d.ts +1 -1
- package/dist/ai-service/skills/system/spreadsheet-import/skill.generated.d.ts.map +1 -1
- package/dist/ai-service/skills/system/spreadsheet-import/skill.generated.js +1 -1
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.js +5 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.js +5 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.js +32 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.js +34 -0
- package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.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 +99 -68
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -1
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts +1 -1
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts.map +1 -1
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js +4 -4
- package/dist/ai-service/skills/system/superblocks-sdk-api/skill.generated.d.ts +1 -1
- package/dist/ai-service/skills/system/superblocks-sdk-api/skill.generated.d.ts.map +1 -1
- package/dist/ai-service/skills/system/superblocks-sdk-api/skill.generated.js +7 -7
- 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 +2 -3
- package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
- package/dist/ai-service/state-machine/clark-fsm.js +1 -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 +1 -4
- 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 +21 -12
- package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
- package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.d.ts +63 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.js +96 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts +12 -3
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts.map +1 -1
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js +89 -17
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js.map +1 -1
- package/dist/ai-service/state-machine/helpers/prompt-org-claims.d.ts +17 -0
- package/dist/ai-service/state-machine/helpers/prompt-org-claims.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-org-claims.js +50 -0
- package/dist/ai-service/state-machine/helpers/prompt-org-claims.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts +6 -0
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts.map +1 -1
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js +35 -5
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js.map +1 -1
- package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
- package/dist/ai-service/state-machine/mocks.js +1 -4
- package/dist/ai-service/state-machine/mocks.js.map +1 -1
- package/dist/ai-service/tasks/peer-push.d.ts +2 -1
- package/dist/ai-service/tasks/peer-push.d.ts.map +1 -1
- package/dist/ai-service/test-utils/metrics-harness.d.ts +2 -1
- package/dist/ai-service/test-utils/metrics-harness.d.ts.map +1 -1
- package/dist/ai-service/util/llm-config-utils.d.ts +16 -5
- package/dist/ai-service/util/llm-config-utils.d.ts.map +1 -1
- package/dist/ai-service/util/llm-config-utils.js +25 -3
- package/dist/ai-service/util/llm-config-utils.js.map +1 -1
- package/dist/ai-service/util/parse-jwt.d.ts +5 -1
- package/dist/ai-service/util/parse-jwt.d.ts.map +1 -1
- package/dist/ai-service/util/parse-jwt.js +9 -1
- package/dist/ai-service/util/parse-jwt.js.map +1 -1
- package/dist/app-scope-source.d.ts +13 -0
- package/dist/app-scope-source.d.ts.map +1 -0
- package/dist/app-scope-source.js +68 -0
- package/dist/app-scope-source.js.map +1 -0
- package/dist/extract-api-integrations.d.ts +28 -6
- package/dist/extract-api-integrations.d.ts.map +1 -1
- package/dist/extract-api-integrations.js +166 -98
- package/dist/extract-api-integrations.js.map +1 -1
- package/dist/file-sync-vite-plugin.d.ts +1 -5
- package/dist/file-sync-vite-plugin.d.ts.map +1 -1
- package/dist/file-sync-vite-plugin.js +44 -70
- package/dist/file-sync-vite-plugin.js.map +1 -1
- package/dist/file-system-helpers.d.ts +0 -5
- package/dist/file-system-helpers.d.ts.map +1 -1
- package/dist/file-system-helpers.js +1 -1
- package/dist/file-system-helpers.js.map +1 -1
- package/dist/file-system-manager.d.ts +2 -9
- package/dist/file-system-manager.d.ts.map +1 -1
- package/dist/file-system-manager.js +50 -118
- package/dist/file-system-manager.js.map +1 -1
- package/dist/git-service/index.d.ts.map +1 -1
- package/dist/git-service/index.js +8 -0
- package/dist/git-service/index.js.map +1 -1
- package/dist/lock-service/index.d.ts +24 -0
- package/dist/lock-service/index.d.ts.map +1 -1
- package/dist/lock-service/index.js +74 -2
- package/dist/lock-service/index.js.map +1 -1
- package/dist/migration/integration-write-policy.d.ts +2 -1
- package/dist/migration/integration-write-policy.d.ts.map +1 -1
- package/dist/migration/integration-write-policy.js.map +1 -1
- package/dist/migration/restructure.d.ts +1 -1
- package/dist/migration/restructure.d.ts.map +1 -1
- package/dist/migration/restructure.js +1 -1
- package/dist/migration/restructure.js.map +1 -1
- package/dist/migration/translation-prompt.js +1 -1
- package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +0 -69
- package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +0 -31
- package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +0 -52
- package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +5 -79
- package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +14 -161
- package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +1 -53
- package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +4 -56
- package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +0 -34
- package/dist/migration-templates/app-fullstack/client/components/ui/chart.tsx +3 -51
- package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +0 -42
- package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +0 -55
- package/dist/migration-templates/app-fullstack/client/components/ui/dropdown-menu.tsx +0 -29
- package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +0 -64
- package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +0 -57
- package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +0 -30
- package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +16 -172
- package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +0 -44
- package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +0 -64
- package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +0 -31
- package/dist/migration-templates/app-fullstack/client/components/ui/scroll-area.tsx +0 -30
- package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +0 -41
- package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +0 -29
- package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +0 -64
- package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +30 -265
- package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +0 -45
- package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +0 -41
- package/dist/migration-templates/app-fullstack/client/components/ui/table.tsx +0 -32
- package/dist/migration-templates/app-fullstack/client/components/ui/tabs.tsx +0 -23
- package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +0 -48
- package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +0 -81
- package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +0 -46
- package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +0 -63
- package/dist/migration-templates/app-fullstack/eslint.config.js +7 -0
- package/dist/migration-templates/app-fullstack/package.json +0 -3
- package/dist/parsing/types.d.ts +3 -2
- package/dist/parsing/types.d.ts.map +1 -1
- package/dist/policy-gate-runner.d.ts +1 -1
- package/dist/policy-gate-runner.d.ts.map +1 -1
- package/dist/policy-gate-runner.js.map +1 -1
- package/dist/reconnect-guard-plugin.d.ts +0 -1
- package/dist/reconnect-guard-plugin.d.ts.map +1 -1
- package/dist/reconnect-guard-plugin.js +1 -1
- package/dist/reconnect-guard-plugin.js.map +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +2 -2
- package/dist/resolver.js.map +1 -1
- package/dist/socket-manager.d.ts.map +1 -1
- package/dist/socket-manager.js +12 -2
- package/dist/socket-manager.js.map +1 -1
- package/dist/source-tracker.d.ts +5 -15
- package/dist/source-tracker.d.ts.map +1 -1
- package/dist/source-tracker.js +28 -66
- package/dist/source-tracker.js.map +1 -1
- package/dist/sync-service/checkpoint-result.d.ts +6 -5
- package/dist/sync-service/checkpoint-result.d.ts.map +1 -1
- package/dist/sync-service/checkpoint-result.js +9 -8
- package/dist/sync-service/checkpoint-result.js.map +1 -1
- package/dist/sync-service/index.d.ts +1 -0
- package/dist/sync-service/index.d.ts.map +1 -1
- package/dist/sync-service/index.js +8 -1
- package/dist/sync-service/index.js.map +1 -1
- package/dist/sync-service/snapshot/types.d.ts +3 -2
- package/dist/sync-service/snapshot/types.d.ts.map +1 -1
- package/dist/util/generation-wait-timeout-error.d.ts +12 -0
- package/dist/util/generation-wait-timeout-error.d.ts.map +1 -0
- package/dist/util/generation-wait-timeout-error.js +16 -0
- package/dist/util/generation-wait-timeout-error.js.map +1 -0
- package/package.json +9 -13
- package/dist/ai-service/agent/tools/apis/sdk-root-documentation.d.ts +0 -20
- package/dist/ai-service/agent/tools/apis/sdk-root-documentation.d.ts.map +0 -1
- package/dist/ai-service/agent/tools/apis/sdk-root-documentation.js +0 -284
- package/dist/ai-service/agent/tools/apis/sdk-root-documentation.js.map +0 -1
- package/dist/migration-templates/app-fullstack/client/components/hooks/use-active-page.ts +0 -73
- package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +0 -312
- package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +0 -264
- package/dist/migration-templates/app-fullstack/client/components/ui/code-block-content.tsx +0 -66
- package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +0 -255
- package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +0 -312
- package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +0 -105
- package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +0 -120
- package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +0 -56
- package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +0 -264
- package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +0 -119
- package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +0 -181
- package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +0 -252
- package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +0 -250
- package/dist/refactor/entities.d.ts +0 -6
- package/dist/refactor/entities.d.ts.map +0 -1
- package/dist/refactor/entities.js +0 -65
- package/dist/refactor/entities.js.map +0 -1
- package/dist/refactor/javascript.d.ts +0 -15
- package/dist/refactor/javascript.d.ts.map +0 -1
- package/dist/refactor/javascript.js +0 -283
- package/dist/refactor/javascript.js.map +0 -1
- package/dist/rename-manager.d.ts +0 -28
- package/dist/rename-manager.d.ts.map +0 -1
- package/dist/rename-manager.js +0 -161
- package/dist/rename-manager.js.map +0 -1
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
BarChart as BarChartComponent,
|
|
4
|
-
Bar,
|
|
5
|
-
XAxis,
|
|
6
|
-
YAxis,
|
|
7
|
-
CartesianGrid,
|
|
8
|
-
LabelList,
|
|
9
|
-
} from "recharts";
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
registerComponent,
|
|
13
|
-
Prop,
|
|
14
|
-
Section,
|
|
15
|
-
PropsCategory,
|
|
16
|
-
type EditorConfig,
|
|
17
|
-
} from "@superblocksteam/library";
|
|
18
|
-
|
|
19
|
-
import { cn } from "@/lib/utils";
|
|
20
|
-
|
|
21
|
-
import type { ChartConfig } from "./chart";
|
|
22
|
-
import {
|
|
23
|
-
ChartContainer,
|
|
24
|
-
ChartTooltip,
|
|
25
|
-
ChartTooltipContent,
|
|
26
|
-
ChartLegend,
|
|
27
|
-
ChartLegendContent,
|
|
28
|
-
sanitizeForCssVar,
|
|
29
|
-
fixColorFormat,
|
|
30
|
-
createKeyMapping,
|
|
31
|
-
} from "./chart";
|
|
32
|
-
|
|
33
|
-
type ComponentProps = Omit<
|
|
34
|
-
React.ComponentPropsWithoutRef<typeof ChartContainer>,
|
|
35
|
-
"children" | "config"
|
|
36
|
-
> & {
|
|
37
|
-
data?: any[];
|
|
38
|
-
xAxisKey?: string;
|
|
39
|
-
categories?: string[];
|
|
40
|
-
seriesLabels?: Record<string, string>;
|
|
41
|
-
colors?: string[];
|
|
42
|
-
stackIds?: Record<string, string>;
|
|
43
|
-
gridStyle?: "solid" | "dashed" | "hidden";
|
|
44
|
-
showXAxis?: boolean;
|
|
45
|
-
showYAxis?: boolean;
|
|
46
|
-
showTooltip?: boolean;
|
|
47
|
-
showLegend?: boolean;
|
|
48
|
-
layout?: "horizontal" | "vertical";
|
|
49
|
-
barSize?: number;
|
|
50
|
-
stackOffset?: "expand" | "none" | "wiggle" | "silhouette";
|
|
51
|
-
barRadius?: number | [number, number, number, number];
|
|
52
|
-
showBarLabels?: boolean;
|
|
53
|
-
enableAnimation?: boolean;
|
|
54
|
-
onDataClick?: (data: any) => void;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const BarChart = ({ className, ...props }: ComponentProps) => {
|
|
58
|
-
const chartConfig: ChartConfig = React.useMemo(() => {
|
|
59
|
-
const effectiveCategories =
|
|
60
|
-
props.categories && props.categories.length > 0
|
|
61
|
-
? props.categories
|
|
62
|
-
: props.data && props.data.length > 0
|
|
63
|
-
? Object.keys(props.data[0]).filter((key) => {
|
|
64
|
-
if (key === props.xAxisKey) return false;
|
|
65
|
-
const value = props.data![0][key];
|
|
66
|
-
return typeof value === "number";
|
|
67
|
-
})
|
|
68
|
-
: [];
|
|
69
|
-
|
|
70
|
-
if (!effectiveCategories.length) return {};
|
|
71
|
-
|
|
72
|
-
const config: ChartConfig = {};
|
|
73
|
-
effectiveCategories.forEach((key, index) => {
|
|
74
|
-
const sanitizedKey = sanitizeForCssVar(key);
|
|
75
|
-
const label = props.seriesLabels?.[key] || key;
|
|
76
|
-
const color = fixColorFormat(
|
|
77
|
-
props.colors?.[index] || `var(--chart-${(index % 5) + 1})`,
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
config[sanitizedKey] = {
|
|
81
|
-
label,
|
|
82
|
-
color,
|
|
83
|
-
};
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
return config;
|
|
87
|
-
}, [
|
|
88
|
-
props.categories,
|
|
89
|
-
props.seriesLabels,
|
|
90
|
-
props.colors,
|
|
91
|
-
props.data,
|
|
92
|
-
props.xAxisKey,
|
|
93
|
-
]);
|
|
94
|
-
|
|
95
|
-
const keyMapping = React.useMemo(() => {
|
|
96
|
-
const effectiveCategories =
|
|
97
|
-
props.categories && props.categories.length > 0
|
|
98
|
-
? props.categories
|
|
99
|
-
: props.data && props.data.length > 0
|
|
100
|
-
? Object.keys(props.data[0]).filter((key) => {
|
|
101
|
-
if (key === props.xAxisKey) return false;
|
|
102
|
-
const value = props.data![0][key];
|
|
103
|
-
return typeof value === "number";
|
|
104
|
-
})
|
|
105
|
-
: [];
|
|
106
|
-
|
|
107
|
-
return effectiveCategories.length > 0
|
|
108
|
-
? createKeyMapping(
|
|
109
|
-
Object.fromEntries(effectiveCategories.map((k) => [k, { label: k }])),
|
|
110
|
-
)
|
|
111
|
-
: new Map();
|
|
112
|
-
}, [props.categories, props.data, props.xAxisKey]);
|
|
113
|
-
|
|
114
|
-
const hasData = Array.isArray(props.data) && props.data?.length;
|
|
115
|
-
|
|
116
|
-
return (
|
|
117
|
-
<ChartContainer
|
|
118
|
-
className={cn("h-full w-full pt-4 pb-4 pr-4", className)}
|
|
119
|
-
{...props}
|
|
120
|
-
config={chartConfig}
|
|
121
|
-
>
|
|
122
|
-
{hasData ? (
|
|
123
|
-
<BarChartComponent
|
|
124
|
-
data={props.data}
|
|
125
|
-
onClick={props.onDataClick}
|
|
126
|
-
accessibilityLayer
|
|
127
|
-
layout={props.layout}
|
|
128
|
-
barSize={props.barSize}
|
|
129
|
-
stackOffset={props.stackOffset}
|
|
130
|
-
>
|
|
131
|
-
{props.gridStyle !== "hidden" && (
|
|
132
|
-
<CartesianGrid
|
|
133
|
-
vertical={props.layout === "horizontal"}
|
|
134
|
-
strokeDasharray={props.gridStyle === "dashed" ? "3 3" : "0"}
|
|
135
|
-
/>
|
|
136
|
-
)}
|
|
137
|
-
|
|
138
|
-
{props.showXAxis && (
|
|
139
|
-
<XAxis
|
|
140
|
-
type={props.layout === "vertical" ? "number" : "category"}
|
|
141
|
-
dataKey={props.layout === "vertical" ? undefined : props.xAxisKey}
|
|
142
|
-
tickLine={false}
|
|
143
|
-
axisLine={false}
|
|
144
|
-
tickMargin={8}
|
|
145
|
-
/>
|
|
146
|
-
)}
|
|
147
|
-
|
|
148
|
-
{props.showYAxis && (
|
|
149
|
-
<YAxis
|
|
150
|
-
type={props.layout === "vertical" ? "category" : "number"}
|
|
151
|
-
dataKey={props.layout === "vertical" ? props.xAxisKey : undefined}
|
|
152
|
-
tickLine={false}
|
|
153
|
-
axisLine={false}
|
|
154
|
-
tickMargin={8}
|
|
155
|
-
/>
|
|
156
|
-
)}
|
|
157
|
-
|
|
158
|
-
{props.showTooltip && (
|
|
159
|
-
<ChartTooltip
|
|
160
|
-
cursor={{ fill: "rgba(0, 0, 0, 0.1)" }}
|
|
161
|
-
content={<ChartTooltipContent />}
|
|
162
|
-
/>
|
|
163
|
-
)}
|
|
164
|
-
|
|
165
|
-
{props.showLegend && <ChartLegend content={<ChartLegendContent />} />}
|
|
166
|
-
|
|
167
|
-
{Object.keys(chartConfig).map((key) => {
|
|
168
|
-
const originalKey = keyMapping.get(key) || key;
|
|
169
|
-
const stackId = props.stackIds?.[originalKey];
|
|
170
|
-
return (
|
|
171
|
-
<Bar
|
|
172
|
-
key={key}
|
|
173
|
-
dataKey={originalKey}
|
|
174
|
-
fill={`var(--color-${key})`}
|
|
175
|
-
radius={props.barRadius}
|
|
176
|
-
stackId={stackId || undefined}
|
|
177
|
-
isAnimationActive={props.enableAnimation}
|
|
178
|
-
>
|
|
179
|
-
{props.showBarLabels && (
|
|
180
|
-
<LabelList
|
|
181
|
-
dataKey={originalKey}
|
|
182
|
-
position={props.layout === "vertical" ? "right" : "top"}
|
|
183
|
-
className="fill-foreground font-semibold text-xs"
|
|
184
|
-
/>
|
|
185
|
-
)}
|
|
186
|
-
</Bar>
|
|
187
|
-
);
|
|
188
|
-
})}
|
|
189
|
-
</BarChartComponent>
|
|
190
|
-
) : (
|
|
191
|
-
<div className="flex items-center justify-center h-full w-full min-h-32 text-muted-foreground">
|
|
192
|
-
No data available
|
|
193
|
-
</div>
|
|
194
|
-
)}
|
|
195
|
-
</ChartContainer>
|
|
196
|
-
);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
const properties = {
|
|
200
|
-
general: Section.category(PropsCategory.Content).children({
|
|
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
|
-
}),
|
|
205
|
-
|
|
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
|
-
}),
|
|
210
|
-
|
|
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
|
-
}),
|
|
215
|
-
|
|
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
|
-
}),
|
|
220
|
-
|
|
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
|
-
}),
|
|
225
|
-
|
|
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
|
-
}),
|
|
230
|
-
}),
|
|
231
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
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.",
|
|
235
|
-
}),
|
|
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.",
|
|
248
|
-
}),
|
|
249
|
-
}),
|
|
250
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
251
|
-
enableAnimation: Prop.boolean(),
|
|
252
|
-
}),
|
|
253
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
254
|
-
onDataClick: Prop.eventHandler(),
|
|
255
|
-
}),
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
const editorConfig: EditorConfig = {
|
|
259
|
-
icon: "chart",
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
registerComponent(BarChart, properties).editorConfig(editorConfig);
|
|
263
|
-
|
|
264
|
-
export { BarChart };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
4
|
-
import {
|
|
5
|
-
oneDark,
|
|
6
|
-
oneLight,
|
|
7
|
-
} from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
8
|
-
|
|
9
|
-
interface CodeBlockContentProps {
|
|
10
|
-
code: string;
|
|
11
|
-
language: string;
|
|
12
|
-
showLineNumbers: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const CodeBlockContent = ({
|
|
16
|
-
code,
|
|
17
|
-
language,
|
|
18
|
-
showLineNumbers,
|
|
19
|
-
}: CodeBlockContentProps) => {
|
|
20
|
-
const commonCodeTagProps = {
|
|
21
|
-
className: "font-mono text-sm",
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const commonCustomStyle = {
|
|
25
|
-
margin: 0,
|
|
26
|
-
padding: "1rem",
|
|
27
|
-
fontSize: "0.875rem",
|
|
28
|
-
background: "hsl(var(--background))",
|
|
29
|
-
color: "hsl(var(--foreground))",
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const commonLineNumberStyle = {
|
|
33
|
-
color: "hsl(var(--muted-foreground))",
|
|
34
|
-
paddingRight: "1rem",
|
|
35
|
-
minWidth: "2.5rem",
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
<>
|
|
40
|
-
<SyntaxHighlighter
|
|
41
|
-
className="overflow-hidden dark:hidden"
|
|
42
|
-
codeTagProps={commonCodeTagProps}
|
|
43
|
-
customStyle={commonCustomStyle}
|
|
44
|
-
language={language}
|
|
45
|
-
lineNumberStyle={commonLineNumberStyle}
|
|
46
|
-
showLineNumbers={showLineNumbers}
|
|
47
|
-
style={oneLight}
|
|
48
|
-
>
|
|
49
|
-
{code}
|
|
50
|
-
</SyntaxHighlighter>
|
|
51
|
-
<SyntaxHighlighter
|
|
52
|
-
className="hidden overflow-hidden dark:block"
|
|
53
|
-
codeTagProps={commonCodeTagProps}
|
|
54
|
-
customStyle={commonCustomStyle}
|
|
55
|
-
language={language}
|
|
56
|
-
lineNumberStyle={commonLineNumberStyle}
|
|
57
|
-
showLineNumbers={showLineNumbers}
|
|
58
|
-
style={oneDark}
|
|
59
|
-
>
|
|
60
|
-
{code}
|
|
61
|
-
</SyntaxHighlighter>
|
|
62
|
-
</>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default CodeBlockContent;
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { format } from "date-fns";
|
|
2
|
-
import { ChevronDownIcon, CalendarIcon } from "lucide-react";
|
|
3
|
-
import { useMemo, useState, useEffect } from "react";
|
|
4
|
-
import type { ComponentPropsWithoutRef } from "react";
|
|
5
|
-
import type { DropdownProps, Matcher, DateRange } from "react-day-picker";
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
registerComponent,
|
|
9
|
-
Prop,
|
|
10
|
-
Section,
|
|
11
|
-
PropsCategory,
|
|
12
|
-
type PropertiesPanelDefinition,
|
|
13
|
-
type EditorConfig,
|
|
14
|
-
} from "@superblocksteam/library";
|
|
15
|
-
|
|
16
|
-
import { Button } from "@/components/ui/button";
|
|
17
|
-
import { Calendar } from "@/components/ui/calendar";
|
|
18
|
-
import {
|
|
19
|
-
Popover,
|
|
20
|
-
PopoverContent,
|
|
21
|
-
PopoverTrigger,
|
|
22
|
-
} from "@/components/ui/popover";
|
|
23
|
-
import {
|
|
24
|
-
Select,
|
|
25
|
-
SelectItem,
|
|
26
|
-
SelectTrigger,
|
|
27
|
-
SelectContent,
|
|
28
|
-
SelectValue,
|
|
29
|
-
} from "@/components/ui/select";
|
|
30
|
-
import { cn } from "@/lib/utils";
|
|
31
|
-
|
|
32
|
-
// Component Props
|
|
33
|
-
type ComponentProps = ComponentPropsWithoutRef<typeof Popover> & {
|
|
34
|
-
value?: { from?: string; to?: string };
|
|
35
|
-
onValueChange?: (value: { from: string; to: string }) => void;
|
|
36
|
-
minDate?: string;
|
|
37
|
-
maxDate?: string;
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
displayFormat?: string;
|
|
40
|
-
buttonVariant?:
|
|
41
|
-
| "default"
|
|
42
|
-
| "outline"
|
|
43
|
-
| "secondary"
|
|
44
|
-
| "ghost"
|
|
45
|
-
| "link"
|
|
46
|
-
| "destructive";
|
|
47
|
-
captionLayout?: "label" | "dropdown" | "dropdown-months" | "dropdown-years";
|
|
48
|
-
numberOfMonths?: number;
|
|
49
|
-
placeholder?: string;
|
|
50
|
-
className?: string;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const CustomCalendarDropdown = ({
|
|
54
|
-
options,
|
|
55
|
-
value,
|
|
56
|
-
onChange,
|
|
57
|
-
}: DropdownProps) => {
|
|
58
|
-
const handleValueChange = (newValue: string) => {
|
|
59
|
-
if (onChange) {
|
|
60
|
-
const syntheticEvent = {
|
|
61
|
-
target: {
|
|
62
|
-
value: newValue,
|
|
63
|
-
},
|
|
64
|
-
} as React.ChangeEvent<HTMLSelectElement>;
|
|
65
|
-
onChange(syntheticEvent);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
return (
|
|
69
|
-
<Select value={value?.toString()} onValueChange={handleValueChange}>
|
|
70
|
-
<SelectTrigger className={"rdp-dropdown"}>
|
|
71
|
-
<SelectValue />
|
|
72
|
-
</SelectTrigger>
|
|
73
|
-
<SelectContent className="max-h-[200px]">
|
|
74
|
-
{options?.map((option) => (
|
|
75
|
-
<SelectItem
|
|
76
|
-
key={option.value}
|
|
77
|
-
value={option.value.toString()}
|
|
78
|
-
disabled={option.disabled}
|
|
79
|
-
>
|
|
80
|
-
{option.label}
|
|
81
|
-
</SelectItem>
|
|
82
|
-
))}
|
|
83
|
-
</SelectContent>
|
|
84
|
-
</Select>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const DateRangePicker = (props: ComponentProps) => {
|
|
89
|
-
const {
|
|
90
|
-
value,
|
|
91
|
-
onValueChange,
|
|
92
|
-
minDate,
|
|
93
|
-
maxDate,
|
|
94
|
-
disabled,
|
|
95
|
-
displayFormat = "MM/dd/yyyy",
|
|
96
|
-
buttonVariant,
|
|
97
|
-
captionLayout,
|
|
98
|
-
numberOfMonths,
|
|
99
|
-
placeholder,
|
|
100
|
-
className,
|
|
101
|
-
...rest
|
|
102
|
-
} = props;
|
|
103
|
-
const [open, setOpen] = useState(false);
|
|
104
|
-
|
|
105
|
-
const dateRange = useMemo(() => {
|
|
106
|
-
const range: {
|
|
107
|
-
from?: Date;
|
|
108
|
-
to?: Date;
|
|
109
|
-
} = {};
|
|
110
|
-
if (minDate) {
|
|
111
|
-
range.from = new Date(minDate);
|
|
112
|
-
}
|
|
113
|
-
if (maxDate) {
|
|
114
|
-
range.to = new Date(maxDate);
|
|
115
|
-
}
|
|
116
|
-
return Object.keys(range).length > 0 ? range : undefined;
|
|
117
|
-
}, [minDate, maxDate]);
|
|
118
|
-
|
|
119
|
-
const disabledMatcher = useMemo(() => {
|
|
120
|
-
const matchers: any[] = [];
|
|
121
|
-
if (dateRange?.from) {
|
|
122
|
-
matchers.push({
|
|
123
|
-
before: dateRange?.from,
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
if (dateRange?.to) {
|
|
127
|
-
matchers.push({
|
|
128
|
-
after: dateRange?.to,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
return matchers.length > 0 ? matchers : undefined;
|
|
132
|
-
}, [dateRange]);
|
|
133
|
-
|
|
134
|
-
const selectedRange: DateRange | undefined = useMemo(() => {
|
|
135
|
-
return {
|
|
136
|
-
from: value?.from ? new Date(value.from) : undefined,
|
|
137
|
-
to: value?.to ? new Date(value.to) : undefined,
|
|
138
|
-
};
|
|
139
|
-
}, [value]);
|
|
140
|
-
|
|
141
|
-
const handleRangeSelect = (range: DateRange | undefined) => {
|
|
142
|
-
const newFromValue = range?.from?.toISOString() || "";
|
|
143
|
-
const newToValue = range?.to?.toISOString() || "";
|
|
144
|
-
void onValueChange?.({
|
|
145
|
-
from: newFromValue,
|
|
146
|
-
to: newToValue,
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const getDisplayText = () => {
|
|
151
|
-
if (!selectedRange?.from && !selectedRange?.to) {
|
|
152
|
-
return placeholder;
|
|
153
|
-
}
|
|
154
|
-
if (selectedRange?.from && selectedRange?.to) {
|
|
155
|
-
return `${format(selectedRange.from, displayFormat)} - ${format(selectedRange.to, displayFormat)}`;
|
|
156
|
-
}
|
|
157
|
-
if (selectedRange?.from) {
|
|
158
|
-
return `${format(selectedRange.from, displayFormat)} - ...`;
|
|
159
|
-
}
|
|
160
|
-
return placeholder;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
useEffect(() => {
|
|
164
|
-
const handleEscape = (e: KeyboardEvent) => {
|
|
165
|
-
if (e.key === "Escape") {
|
|
166
|
-
setOpen(false);
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
document.addEventListener("keydown", handleEscape);
|
|
170
|
-
return () => {
|
|
171
|
-
document.removeEventListener("keydown", handleEscape);
|
|
172
|
-
};
|
|
173
|
-
}, []);
|
|
174
|
-
|
|
175
|
-
return (
|
|
176
|
-
<div className={className} {...rest}>
|
|
177
|
-
<Popover open={open} onOpenChange={setOpen}>
|
|
178
|
-
<PopoverTrigger className="w-full" asChild>
|
|
179
|
-
<div>
|
|
180
|
-
<Button
|
|
181
|
-
variant="outline"
|
|
182
|
-
disabled={disabled}
|
|
183
|
-
className={cn(
|
|
184
|
-
"w-full justify-between font-normal",
|
|
185
|
-
!selectedRange?.from &&
|
|
186
|
-
!selectedRange?.to &&
|
|
187
|
-
"text-muted-foreground",
|
|
188
|
-
)}
|
|
189
|
-
>
|
|
190
|
-
<div className="flex items-center gap-2">
|
|
191
|
-
<CalendarIcon className="h-4 w-4" />
|
|
192
|
-
{getDisplayText()}
|
|
193
|
-
</div>
|
|
194
|
-
<ChevronDownIcon className="h-4 w-4" />
|
|
195
|
-
</Button>
|
|
196
|
-
</div>
|
|
197
|
-
</PopoverTrigger>
|
|
198
|
-
<PopoverContent className="w-auto overflow-hidden p-0" align="start">
|
|
199
|
-
<Calendar
|
|
200
|
-
showOutsideDays={false}
|
|
201
|
-
buttonVariant={buttonVariant}
|
|
202
|
-
captionLayout={captionLayout}
|
|
203
|
-
disabled={disabled ? true : (disabledMatcher as Matcher[])}
|
|
204
|
-
mode="range"
|
|
205
|
-
selected={selectedRange}
|
|
206
|
-
onSelect={handleRangeSelect}
|
|
207
|
-
numberOfMonths={numberOfMonths}
|
|
208
|
-
components={{
|
|
209
|
-
Dropdown: CustomCalendarDropdown,
|
|
210
|
-
}}
|
|
211
|
-
/>
|
|
212
|
-
</PopoverContent>
|
|
213
|
-
</Popover>
|
|
214
|
-
</div>
|
|
215
|
-
);
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
// Properties Definition
|
|
219
|
-
const propertiesDefinition: PropertiesPanelDefinition<ComponentProps> = {
|
|
220
|
-
general: Section.category(PropsCategory.Content).children({
|
|
221
|
-
value: Prop.any<{ from?: string; to?: string }>(),
|
|
222
|
-
defaultFromValue: Prop.string(),
|
|
223
|
-
defaultToValue: Prop.string(),
|
|
224
|
-
displayFormat: Prop.string(),
|
|
225
|
-
minDate: Prop.string(),
|
|
226
|
-
maxDate: Prop.string(),
|
|
227
|
-
placeholder: Prop.string(),
|
|
228
|
-
}),
|
|
229
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
230
|
-
buttonVariant: Prop.string<
|
|
231
|
-
"ghost" | "outline" | "default" | "secondary" | "destructive"
|
|
232
|
-
>(),
|
|
233
|
-
captionLayout: Prop.string<"dropdown" | "label">(),
|
|
234
|
-
numberOfMonths: Prop.number(),
|
|
235
|
-
}),
|
|
236
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
237
|
-
disabled: Prop.boolean(),
|
|
238
|
-
}),
|
|
239
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
240
|
-
onValueChange: Prop.eventHandler(),
|
|
241
|
-
}),
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
// Editor Template
|
|
245
|
-
// Editor Config
|
|
246
|
-
const editorConfig: EditorConfig = {
|
|
247
|
-
icon: "date-picker",
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
// Register Component
|
|
251
|
-
registerComponent(DateRangePicker, propertiesDefinition).editorConfig(
|
|
252
|
-
editorConfig,
|
|
253
|
-
);
|
|
254
|
-
|
|
255
|
-
export { DateRangePicker };
|