@superblocksteam/vite-plugin-file-sync 2.0.170 → 2.0.171-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-service/agent/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-api-docs.d.ts +1 -1
- 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 +6 -2
- 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/apis/write-api.d.ts +2 -2
- 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-copy-directory.d.ts +2 -2
- package/dist/ai-service/agent/tools/build-copy-file.d.ts +1 -1
- package/dist/ai-service/agent/tools/build-copy-utils.d.ts +8 -8
- package/dist/ai-service/agent/tools/build-delete-file.d.ts +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 +3 -3
- 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 +10 -98
- 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/get-logs.d.ts +3 -3
- package/dist/ai-service/agent/tools/get-security-findings.d.ts +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 +42 -15
- 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/report-security-findings.d.ts +18 -18
- 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/bash.d.ts +1 -1
- package/dist/ai-service/agent/tools2/tools/git.d.ts +2 -2
- 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 +9 -3
- 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 +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/tools2/tools/list-attachments.d.ts +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/checklist/remediation-findings-client.d.ts +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/judge/tools/playwright-action.d.ts +1 -1
- package/dist/ai-service/judge/tools/submit-feedback.d.ts +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 +17 -17
- 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 +7 -1
- 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 +45 -71
- package/dist/file-sync-vite-plugin.js.map +1 -1
- package/dist/file-system-helpers.d.ts +3 -8
- package/dist/file-system-helpers.d.ts.map +1 -1
- package/dist/file-system-helpers.js +39 -10
- 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,15 +1,6 @@
|
|
|
1
1
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
registerComponent,
|
|
6
|
-
Prop,
|
|
7
|
-
Section,
|
|
8
|
-
PropsCategory,
|
|
9
|
-
type PropertiesPanelDefinition,
|
|
10
|
-
type EditorConfig,
|
|
11
|
-
} from "@superblocksteam/library";
|
|
12
|
-
|
|
13
4
|
import { cn } from "@/lib/utils";
|
|
14
5
|
|
|
15
6
|
function Avatar({
|
|
@@ -58,46 +49,3 @@ function AvatarFallback({
|
|
|
58
49
|
}
|
|
59
50
|
|
|
60
51
|
export { Avatar, AvatarImage, AvatarFallback };
|
|
61
|
-
|
|
62
|
-
// Properties Definition for Avatar (root)
|
|
63
|
-
const avatarPropertiesDefinition: PropertiesPanelDefinition<
|
|
64
|
-
React.ComponentPropsWithoutRef<typeof Avatar>
|
|
65
|
-
> = {
|
|
66
|
-
general: Section.category(PropsCategory.Content).children({
|
|
67
|
-
children: Prop.jsx(),
|
|
68
|
-
}),
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const avatarEditorConfig: EditorConfig = {
|
|
72
|
-
icon: "image",
|
|
73
|
-
description: "An image element with a fallback for representing the user",
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// Properties Definition for AvatarImage
|
|
77
|
-
const avatarImagePropertiesDefinition: PropertiesPanelDefinition<
|
|
78
|
-
React.ComponentPropsWithoutRef<typeof AvatarImage>
|
|
79
|
-
> = {
|
|
80
|
-
general: Section.category(PropsCategory.Content).children({
|
|
81
|
-
src: Prop.string(),
|
|
82
|
-
alt: Prop.string(),
|
|
83
|
-
}),
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
// Properties Definition for AvatarFallback
|
|
87
|
-
const avatarFallbackPropertiesDefinition: PropertiesPanelDefinition<
|
|
88
|
-
React.ComponentPropsWithoutRef<typeof AvatarFallback>
|
|
89
|
-
> = {
|
|
90
|
-
general: Section.category(PropsCategory.Content).children({
|
|
91
|
-
children: Prop.jsx(),
|
|
92
|
-
}),
|
|
93
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
94
|
-
delayMs: Prop.number(),
|
|
95
|
-
}),
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// Register Components
|
|
99
|
-
registerComponent(Avatar, avatarPropertiesDefinition).editorConfig(
|
|
100
|
-
avatarEditorConfig,
|
|
101
|
-
);
|
|
102
|
-
registerComponent(AvatarImage, avatarImagePropertiesDefinition);
|
|
103
|
-
registerComponent(AvatarFallback, avatarFallbackPropertiesDefinition);
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
/* eslint-disable react-refresh/only-export-components */
|
|
2
1
|
import { Slot } from "@radix-ui/react-slot";
|
|
3
2
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
-
import type { IconName } from "lucide-react/dynamic";
|
|
5
3
|
import type * as React from "react";
|
|
6
4
|
|
|
7
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
8
|
-
import {
|
|
9
|
-
Prop,
|
|
10
|
-
Section,
|
|
11
|
-
PropsCategory,
|
|
12
|
-
type PropertiesPanelDefinition,
|
|
13
|
-
type EditorConfig,
|
|
14
|
-
} from "@superblocksteam/library";
|
|
15
|
-
|
|
16
|
-
import { Icon as IconComponent } from "@/components/ui/icon";
|
|
17
5
|
import { cn } from "@/lib/utils";
|
|
18
6
|
|
|
19
|
-
// Variants
|
|
20
7
|
const badgeVariants = cva(
|
|
21
8
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
22
9
|
{
|
|
@@ -38,83 +25,22 @@ const badgeVariants = cva(
|
|
|
38
25
|
},
|
|
39
26
|
);
|
|
40
27
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
// Base Badge Component
|
|
44
|
-
interface BaseBadgeProps
|
|
45
|
-
extends React.ComponentPropsWithoutRef<"span">, BadgeVariantProps {
|
|
46
|
-
asChild?: boolean;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function BadgeComponent({
|
|
28
|
+
function Badge({
|
|
50
29
|
className,
|
|
51
30
|
variant,
|
|
52
31
|
asChild = false,
|
|
53
32
|
...props
|
|
54
|
-
}:
|
|
33
|
+
}: React.ComponentPropsWithoutRef<"span"> &
|
|
34
|
+
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
|
|
55
35
|
const Comp = asChild ? Slot : "span";
|
|
36
|
+
|
|
56
37
|
return (
|
|
57
38
|
<Comp
|
|
58
39
|
data-slot="badge"
|
|
59
|
-
className={cn(
|
|
60
|
-
badgeVariants({
|
|
61
|
-
variant,
|
|
62
|
-
}),
|
|
63
|
-
className,
|
|
64
|
-
)}
|
|
40
|
+
className={cn(badgeVariants({ variant }), className)}
|
|
65
41
|
{...props}
|
|
66
42
|
/>
|
|
67
43
|
);
|
|
68
44
|
}
|
|
69
45
|
|
|
70
|
-
// Badge with Icon Support
|
|
71
|
-
type BadgeProps = React.ComponentPropsWithoutRef<typeof BadgeComponent> & {
|
|
72
|
-
icon?: React.ReactElement | IconName;
|
|
73
|
-
onClick?: () => void;
|
|
74
|
-
} & Record<string, unknown>;
|
|
75
|
-
|
|
76
|
-
const Badge = ({ icon, children, ...props }: BadgeProps) => {
|
|
77
|
-
if (icon && typeof icon === "string") {
|
|
78
|
-
icon = <IconComponent icon={icon as IconName} />;
|
|
79
|
-
}
|
|
80
|
-
return (
|
|
81
|
-
<BadgeComponent {...props}>
|
|
82
|
-
{icon}
|
|
83
|
-
{children}
|
|
84
|
-
</BadgeComponent>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
type BadgeVariant = NonNullable<BadgeVariantProps["variant"]>;
|
|
89
|
-
|
|
90
|
-
// Properties Definition
|
|
91
|
-
const propertiesDefinition: PropertiesPanelDefinition<BadgeProps> = {
|
|
92
|
-
general: Section.category(PropsCategory.Content).children({
|
|
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.",
|
|
97
|
-
}),
|
|
98
|
-
}),
|
|
99
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
100
|
-
variant: Prop.string<BadgeVariant>(),
|
|
101
|
-
}),
|
|
102
|
-
|
|
103
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
104
|
-
onClick: Prop.eventHandler(),
|
|
105
|
-
}),
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// Editor Template
|
|
109
|
-
// Editor Config
|
|
110
|
-
const editorConfig: EditorConfig = {
|
|
111
|
-
icon: "custom",
|
|
112
|
-
isDroppable: false,
|
|
113
|
-
description:
|
|
114
|
-
"A versatile badge component for displaying status, labels, or tags",
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// Register Component
|
|
118
|
-
registerComponent(Badge, propertiesDefinition).editorConfig(editorConfig);
|
|
119
|
-
|
|
120
46
|
export { Badge, badgeVariants };
|
|
@@ -1,34 +1,19 @@
|
|
|
1
1
|
import { Slot } from "@radix-ui/react-slot";
|
|
2
2
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
3
|
-
import React from "react";
|
|
4
|
-
|
|
5
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
6
|
-
import {
|
|
7
|
-
Prop,
|
|
8
|
-
Section,
|
|
9
|
-
PropsCategory,
|
|
10
|
-
type PropertiesPanelDefinition,
|
|
11
|
-
type EditorConfig,
|
|
12
|
-
} from "@superblocksteam/library";
|
|
3
|
+
import * as React from "react";
|
|
13
4
|
|
|
14
5
|
import { cn } from "@/lib/utils";
|
|
15
6
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// Base Breadcrumb Primitives
|
|
19
|
-
function BreadcrumbPrimitive({ ...props }: React.ComponentProps<"nav">) {
|
|
7
|
+
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
|
|
20
8
|
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
|
|
21
9
|
}
|
|
22
10
|
|
|
23
|
-
function
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<"ol">) {
|
|
11
|
+
function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
|
|
27
12
|
return (
|
|
28
13
|
<ol
|
|
29
14
|
data-slot="breadcrumb-list"
|
|
30
15
|
className={cn(
|
|
31
|
-
"
|
|
16
|
+
"flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5",
|
|
32
17
|
className,
|
|
33
18
|
)}
|
|
34
19
|
{...props}
|
|
@@ -36,10 +21,7 @@ function BreadcrumbListPrimitive({
|
|
|
36
21
|
);
|
|
37
22
|
}
|
|
38
23
|
|
|
39
|
-
function
|
|
40
|
-
className,
|
|
41
|
-
...props
|
|
42
|
-
}: React.ComponentProps<"li">) {
|
|
24
|
+
function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
|
|
43
25
|
return (
|
|
44
26
|
<li
|
|
45
27
|
data-slot="breadcrumb-item"
|
|
@@ -49,41 +31,38 @@ function BreadcrumbItemComponent({
|
|
|
49
31
|
);
|
|
50
32
|
}
|
|
51
33
|
|
|
52
|
-
function
|
|
34
|
+
function BreadcrumbLink({
|
|
53
35
|
asChild,
|
|
54
36
|
className,
|
|
55
37
|
...props
|
|
56
|
-
}: React.
|
|
38
|
+
}: React.ComponentPropsWithoutRef<"a"> & {
|
|
57
39
|
asChild?: boolean;
|
|
58
40
|
}) {
|
|
59
|
-
const Comp
|
|
41
|
+
const Comp = asChild ? Slot : "a";
|
|
60
42
|
|
|
61
43
|
return (
|
|
62
44
|
<Comp
|
|
63
45
|
data-slot="breadcrumb-link"
|
|
64
|
-
className={cn("hover:text-foreground
|
|
46
|
+
className={cn("transition-colors hover:text-foreground", className)}
|
|
65
47
|
{...props}
|
|
66
48
|
/>
|
|
67
49
|
);
|
|
68
50
|
}
|
|
69
51
|
|
|
70
|
-
function
|
|
71
|
-
className,
|
|
72
|
-
...props
|
|
73
|
-
}: React.ComponentProps<"span">) {
|
|
52
|
+
function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
|
|
74
53
|
return (
|
|
75
54
|
<span
|
|
76
55
|
data-slot="breadcrumb-page"
|
|
77
56
|
role="link"
|
|
78
57
|
aria-disabled="true"
|
|
79
58
|
aria-current="page"
|
|
80
|
-
className={cn("text-foreground
|
|
59
|
+
className={cn("font-normal text-foreground", className)}
|
|
81
60
|
{...props}
|
|
82
61
|
/>
|
|
83
62
|
);
|
|
84
63
|
}
|
|
85
64
|
|
|
86
|
-
function
|
|
65
|
+
function BreadcrumbSeparator({
|
|
87
66
|
children,
|
|
88
67
|
className,
|
|
89
68
|
...props
|
|
@@ -96,7 +75,7 @@ function BreadcrumbSeparatorComponent({
|
|
|
96
75
|
className={cn("[&>svg]:size-3.5", className)}
|
|
97
76
|
{...props}
|
|
98
77
|
>
|
|
99
|
-
{
|
|
78
|
+
{children ?? <ChevronRight />}
|
|
100
79
|
</li>
|
|
101
80
|
);
|
|
102
81
|
}
|
|
@@ -119,135 +98,9 @@ function BreadcrumbEllipsis({
|
|
|
119
98
|
);
|
|
120
99
|
}
|
|
121
100
|
|
|
122
|
-
// Main Breadcrumb Component
|
|
123
|
-
type BreadcrumbProps = React.ComponentPropsWithoutRef<
|
|
124
|
-
typeof BreadcrumbPrimitive
|
|
125
|
-
>;
|
|
126
|
-
|
|
127
|
-
const Breadcrumb = ({
|
|
128
|
-
children,
|
|
129
|
-
style,
|
|
130
|
-
className,
|
|
131
|
-
...props
|
|
132
|
-
}: BreadcrumbProps) => {
|
|
133
|
-
return (
|
|
134
|
-
<BreadcrumbPrimitive {...props} style={style} className={className}>
|
|
135
|
-
<BreadcrumbListPrimitive>{children}</BreadcrumbListPrimitive>
|
|
136
|
-
</BreadcrumbPrimitive>
|
|
137
|
-
);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
// Properties Definition
|
|
141
|
-
const propertiesDefinition: PropertiesPanelDefinition<BreadcrumbProps> = {
|
|
142
|
-
general: Section.category(PropsCategory.Content).children({
|
|
143
|
-
children: Prop.jsx(),
|
|
144
|
-
}),
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
// Editor Config
|
|
148
|
-
const editorConfig: EditorConfig = {
|
|
149
|
-
icon: "link",
|
|
150
|
-
description:
|
|
151
|
-
"Displays the path to the current resource using a hierarchy of links",
|
|
152
|
-
isDroppable: false,
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
// Register Main Component
|
|
156
|
-
registerComponent(Breadcrumb, propertiesDefinition).editorConfig(editorConfig);
|
|
157
|
-
|
|
158
|
-
// Register Child Components
|
|
159
|
-
|
|
160
|
-
// BreadcrumbItem Component
|
|
161
|
-
const propertiesDefinitionItem = {
|
|
162
|
-
general: Section.category(PropsCategory.Content).children({
|
|
163
|
-
children: Prop.jsx(),
|
|
164
|
-
}),
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
type BreadcrumbItemProps = React.ComponentPropsWithoutRef<
|
|
168
|
-
typeof BreadcrumbItemComponent
|
|
169
|
-
>;
|
|
170
|
-
|
|
171
|
-
const BreadcrumbItem = ({ children, ...props }: BreadcrumbItemProps) => {
|
|
172
|
-
return (
|
|
173
|
-
<BreadcrumbItemComponent {...props}>{children}</BreadcrumbItemComponent>
|
|
174
|
-
);
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
registerComponent(BreadcrumbItem, propertiesDefinitionItem).editorConfig({
|
|
178
|
-
isDroppable: false,
|
|
179
|
-
isDraggable: false,
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
// BreadcrumbLink Component
|
|
183
|
-
const propertiesDefinitionLink = {
|
|
184
|
-
general: Section.category(PropsCategory.Content).children({
|
|
185
|
-
children: Prop.jsx(),
|
|
186
|
-
}),
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
const BreadcrumbLink = ({ children, className, ...props }: LinkProps) => {
|
|
190
|
-
return (
|
|
191
|
-
<BreadcrumbLinkPrimitive asChild className={className}>
|
|
192
|
-
<Link {...props} applyLinkStyles={false}>
|
|
193
|
-
{children}
|
|
194
|
-
</Link>
|
|
195
|
-
</BreadcrumbLinkPrimitive>
|
|
196
|
-
);
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
registerComponent(BreadcrumbLink, propertiesDefinitionLink).editorConfig({
|
|
200
|
-
isDroppable: false,
|
|
201
|
-
isDraggable: false,
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
// BreadcrumbPage Component
|
|
205
|
-
const propertiesDefinitionPage = {
|
|
206
|
-
general: Section.category(PropsCategory.Content).children({
|
|
207
|
-
children: Prop.jsx(),
|
|
208
|
-
}),
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
type BreadcrumbPageProps = React.ComponentPropsWithoutRef<
|
|
212
|
-
typeof BreadcrumbPageComponent
|
|
213
|
-
>;
|
|
214
|
-
|
|
215
|
-
const BreadcrumbPage = ({ children, ...props }: BreadcrumbPageProps) => {
|
|
216
|
-
return (
|
|
217
|
-
<BreadcrumbPageComponent {...props}>{children}</BreadcrumbPageComponent>
|
|
218
|
-
);
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
registerComponent(BreadcrumbPage, propertiesDefinitionPage).editorConfig({
|
|
222
|
-
isDroppable: false,
|
|
223
|
-
isDraggable: false,
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
// BreadcrumbSeparator Component
|
|
227
|
-
const propertiesDefinitionSeparator = {
|
|
228
|
-
general: Section.category(PropsCategory.Content).children({
|
|
229
|
-
children: Prop.jsx(),
|
|
230
|
-
}),
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
type BreadcrumbSeparatorProps = React.ComponentPropsWithoutRef<
|
|
234
|
-
typeof BreadcrumbSeparatorComponent
|
|
235
|
-
>;
|
|
236
|
-
|
|
237
|
-
const BreadcrumbSeparator = ({ ...props }: BreadcrumbSeparatorProps) => {
|
|
238
|
-
return <BreadcrumbSeparatorComponent {...props} />;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
registerComponent(
|
|
242
|
-
BreadcrumbSeparator,
|
|
243
|
-
propertiesDefinitionSeparator,
|
|
244
|
-
).editorConfig({
|
|
245
|
-
isDroppable: false,
|
|
246
|
-
isDraggable: false,
|
|
247
|
-
});
|
|
248
|
-
|
|
249
101
|
export {
|
|
250
102
|
Breadcrumb,
|
|
103
|
+
BreadcrumbList,
|
|
251
104
|
BreadcrumbItem,
|
|
252
105
|
BreadcrumbLink,
|
|
253
106
|
BreadcrumbPage,
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
/* eslint-disable react-refresh/only-export-components */
|
|
2
1
|
import { Slot } from "@radix-ui/react-slot";
|
|
3
2
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
3
|
import React from "react";
|
|
5
4
|
|
|
6
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
7
|
-
import {
|
|
8
|
-
Prop,
|
|
9
|
-
Section,
|
|
10
|
-
PropsCategory,
|
|
11
|
-
type PropertiesPanelDefinition,
|
|
12
|
-
type EditorConfig,
|
|
13
|
-
} from "@superblocksteam/library";
|
|
14
|
-
|
|
15
5
|
import { cn } from "@/lib/utils";
|
|
16
6
|
|
|
17
|
-
// Variants
|
|
18
7
|
const buttonVariants = cva(
|
|
19
8
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
20
9
|
{
|
|
@@ -46,7 +35,6 @@ const buttonVariants = cva(
|
|
|
46
35
|
},
|
|
47
36
|
);
|
|
48
37
|
|
|
49
|
-
// Button Component
|
|
50
38
|
const Button = React.forwardRef<
|
|
51
39
|
HTMLButtonElement,
|
|
52
40
|
React.ComponentProps<"button"> &
|
|
@@ -80,44 +68,4 @@ const Button = React.forwardRef<
|
|
|
80
68
|
);
|
|
81
69
|
|
|
82
70
|
Button.displayName = "Button";
|
|
83
|
-
|
|
84
|
-
type ButtonProps = React.ComponentProps<typeof Button>;
|
|
85
|
-
type ButtonVariantProps = VariantProps<typeof buttonVariants>;
|
|
86
|
-
|
|
87
|
-
// Properties Definition
|
|
88
|
-
const propertiesDefinition: PropertiesPanelDefinition<ButtonProps> = {
|
|
89
|
-
general: Section.category(PropsCategory.Content).children({
|
|
90
|
-
children: Prop.jsx(),
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
94
|
-
variant: Prop.string<
|
|
95
|
-
"default" | "destructive" | "outline" | "secondary" | "ghost" | "link"
|
|
96
|
-
>(),
|
|
97
|
-
size: Prop.string<"default" | "sm" | "lg" | "icon">(),
|
|
98
|
-
}),
|
|
99
|
-
|
|
100
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
101
|
-
disabled: Prop.boolean(),
|
|
102
|
-
}),
|
|
103
|
-
|
|
104
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
105
|
-
onClick: Prop.eventHandler(),
|
|
106
|
-
}),
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
// Editor Template
|
|
110
|
-
// Editor Config
|
|
111
|
-
const editorConfig: EditorConfig = {
|
|
112
|
-
icon: "button",
|
|
113
|
-
useAs: {
|
|
114
|
-
defaultButton: true,
|
|
115
|
-
},
|
|
116
|
-
isDroppable: false,
|
|
117
|
-
hasExtendedClickArea: true,
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
// Register Component
|
|
121
|
-
registerComponent(Button, propertiesDefinition).editorConfig(editorConfig);
|
|
122
|
-
|
|
123
|
-
export { Button, buttonVariants, type ButtonVariantProps };
|
|
71
|
+
export { Button, buttonVariants };
|
|
@@ -4,31 +4,12 @@ import {
|
|
|
4
4
|
ChevronRightIcon,
|
|
5
5
|
} from "lucide-react";
|
|
6
6
|
import React from "react";
|
|
7
|
-
import type { ComponentPropsWithoutRef } from "react";
|
|
8
7
|
import type { DayButton } from "react-day-picker";
|
|
9
8
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
10
9
|
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
Prop,
|
|
14
|
-
Section,
|
|
15
|
-
PropsCategory,
|
|
16
|
-
type PropertiesPanelDefinition,
|
|
17
|
-
type EditorConfig,
|
|
18
|
-
} from "@superblocksteam/library";
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
Button,
|
|
22
|
-
buttonVariants,
|
|
23
|
-
type ButtonVariantProps,
|
|
24
|
-
} from "@/components/ui/button";
|
|
10
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
25
11
|
import { cn } from "@/lib/utils";
|
|
26
12
|
|
|
27
|
-
// Base Calendar Component
|
|
28
|
-
type BaseCalendarProps = React.ComponentPropsWithoutRef<typeof DayPicker> & {
|
|
29
|
-
buttonVariant?: ButtonVariantProps["variant"];
|
|
30
|
-
};
|
|
31
|
-
|
|
32
13
|
function CalendarDayButton({
|
|
33
14
|
className,
|
|
34
15
|
day,
|
|
@@ -76,7 +57,9 @@ function Calendar({
|
|
|
76
57
|
formatters,
|
|
77
58
|
components,
|
|
78
59
|
...props
|
|
79
|
-
}:
|
|
60
|
+
}: React.ComponentProps<typeof DayPicker> & {
|
|
61
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
62
|
+
}) {
|
|
80
63
|
const defaultClassNames = getDefaultClassNames();
|
|
81
64
|
|
|
82
65
|
return (
|
|
@@ -226,39 +209,4 @@ function Calendar({
|
|
|
226
209
|
);
|
|
227
210
|
}
|
|
228
211
|
|
|
229
|
-
// Calendar Component with Extended Props for Registration
|
|
230
|
-
type ComponentProps = ComponentPropsWithoutRef<typeof Calendar> & {
|
|
231
|
-
selected?: string;
|
|
232
|
-
onSelect?: (date?: Date) => void;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// Properties Definition
|
|
236
|
-
const propertiesDefinition: PropertiesPanelDefinition<ComponentProps> = {
|
|
237
|
-
general: Section.category(PropsCategory.Content).children({
|
|
238
|
-
selected: Prop.string(),
|
|
239
|
-
}),
|
|
240
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
241
|
-
buttonVariant: Prop.string<
|
|
242
|
-
"ghost" | "outline" | "default" | "secondary" | "destructive"
|
|
243
|
-
>(),
|
|
244
|
-
captionLayout: Prop.string<"dropdown" | "label">(),
|
|
245
|
-
}),
|
|
246
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
247
|
-
showOutsideDays: Prop.boolean(),
|
|
248
|
-
disabled: Prop.boolean(),
|
|
249
|
-
}),
|
|
250
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
251
|
-
onSelect: Prop.eventHandler(),
|
|
252
|
-
}),
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
// Editor Template
|
|
256
|
-
// Editor Config
|
|
257
|
-
const editorConfig: EditorConfig = {
|
|
258
|
-
icon: "date-picker",
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
// Register Component
|
|
262
|
-
registerComponent(Calendar, propertiesDefinition).editorConfig(editorConfig);
|
|
263
|
-
|
|
264
212
|
export { Calendar, CalendarDayButton };
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
|
|
3
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
4
|
-
import {
|
|
5
|
-
Prop,
|
|
6
|
-
Section,
|
|
7
|
-
PropsCategory,
|
|
8
|
-
type PropertiesPanelDefinition,
|
|
9
|
-
type EditorConfig,
|
|
10
|
-
} from "@superblocksteam/library";
|
|
11
|
-
|
|
12
3
|
import { cn } from "@/lib/utils";
|
|
13
4
|
|
|
14
|
-
// Base Card Components
|
|
15
5
|
function Card({ className, ...props }: React.ComponentProps<"div">) {
|
|
16
6
|
return (
|
|
17
7
|
<div
|
|
@@ -91,30 +81,6 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
|
91
81
|
);
|
|
92
82
|
}
|
|
93
83
|
|
|
94
|
-
// Card Component with Registration
|
|
95
|
-
type CardProps = React.ComponentProps<"div"> & { onClick?: () => void };
|
|
96
|
-
|
|
97
|
-
// Properties Definition
|
|
98
|
-
const propertiesDefinition: PropertiesPanelDefinition<CardProps> = {
|
|
99
|
-
general: Section.category(PropsCategory.Content).children({
|
|
100
|
-
children: Prop.jsx(),
|
|
101
|
-
}),
|
|
102
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
103
|
-
onClick: Prop.eventHandler(),
|
|
104
|
-
}),
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
// Editor Template
|
|
108
|
-
// Editor Config
|
|
109
|
-
const editorConfig: EditorConfig = {
|
|
110
|
-
icon: "container",
|
|
111
|
-
description:
|
|
112
|
-
"Cards are a container component with built-in styling for grouping related content in an elevated box",
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
// Register Component
|
|
116
|
-
registerComponent(Card, propertiesDefinition).editorConfig(editorConfig);
|
|
117
|
-
|
|
118
84
|
export {
|
|
119
85
|
Card,
|
|
120
86
|
CardHeader,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable react-refresh/only-export-components */
|
|
2
1
|
import React from "react";
|
|
3
2
|
import * as RechartsPrimitive from "recharts";
|
|
4
3
|
|
|
@@ -7,38 +6,6 @@ import { cn } from "@/lib/utils";
|
|
|
7
6
|
// Format: { THEME_NAME: CSS_SELECTOR }
|
|
8
7
|
const THEMES = { light: "", dark: ".dark" } as const;
|
|
9
8
|
|
|
10
|
-
const sanitizeForCssVar = (name: string): string => {
|
|
11
|
-
const sanitized = String(name)
|
|
12
|
-
.replace(/[^a-zA-Z0-9_-]/g, "-")
|
|
13
|
-
.replace(/^-+|-+$/g, "")
|
|
14
|
-
.replace(/-{2,}/g, "-")
|
|
15
|
-
.toLowerCase();
|
|
16
|
-
|
|
17
|
-
return /^[0-9]/.test(sanitized) || !sanitized
|
|
18
|
-
? `key-${sanitized}`
|
|
19
|
-
: sanitized;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const fixColorFormat = (color: string): string => {
|
|
23
|
-
if (!color) return color;
|
|
24
|
-
const match = color.match(/var\(--chart-\d+\)/);
|
|
25
|
-
if (match && color.startsWith("hsl(")) {
|
|
26
|
-
return match[0];
|
|
27
|
-
}
|
|
28
|
-
return color;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const createKeyMapping = (
|
|
32
|
-
chartConfig: Record<string, any>,
|
|
33
|
-
): Map<string, string> => {
|
|
34
|
-
const mapping = new Map<string, string>();
|
|
35
|
-
Object.keys(chartConfig).forEach((key) => {
|
|
36
|
-
const sanitized = sanitizeForCssVar(key);
|
|
37
|
-
mapping.set(sanitized, key);
|
|
38
|
-
});
|
|
39
|
-
return mapping;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
9
|
export type ChartConfig = Record<
|
|
43
10
|
string,
|
|
44
11
|
{
|
|
@@ -373,21 +340,9 @@ function getPayloadConfigFromPayload(
|
|
|
373
340
|
] as string;
|
|
374
341
|
}
|
|
375
342
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
if (key in config) {
|
|
380
|
-
return config[key];
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
const sanitizedKey = sanitizeForCssVar(key);
|
|
384
|
-
const sanitizedConfigLabelKey = sanitizeForCssVar(configLabelKey);
|
|
385
|
-
|
|
386
|
-
if (sanitizedConfigLabelKey in config) {
|
|
387
|
-
return config[sanitizedConfigLabelKey];
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
return config[sanitizedKey];
|
|
343
|
+
return configLabelKey in config
|
|
344
|
+
? config[configLabelKey]
|
|
345
|
+
: config[key as keyof typeof config];
|
|
391
346
|
}
|
|
392
347
|
|
|
393
348
|
export {
|
|
@@ -397,7 +352,4 @@ export {
|
|
|
397
352
|
ChartLegend,
|
|
398
353
|
ChartLegendContent,
|
|
399
354
|
ChartStyle,
|
|
400
|
-
sanitizeForCssVar,
|
|
401
|
-
fixColorFormat,
|
|
402
|
-
createKeyMapping,
|
|
403
355
|
};
|