@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
|
@@ -2,18 +2,8 @@ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
|
2
2
|
import { CheckIcon } from "lucide-react";
|
|
3
3
|
import type * as React from "react";
|
|
4
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";
|
|
13
|
-
|
|
14
5
|
import { cn } from "@/lib/utils";
|
|
15
6
|
|
|
16
|
-
// Base Checkbox Component
|
|
17
7
|
function Checkbox({
|
|
18
8
|
className,
|
|
19
9
|
...props
|
|
@@ -37,36 +27,4 @@ function Checkbox({
|
|
|
37
27
|
);
|
|
38
28
|
}
|
|
39
29
|
|
|
40
|
-
// Checkbox Props
|
|
41
|
-
type CheckboxProps = React.ComponentProps<typeof CheckboxPrimitive.Root> & {
|
|
42
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
43
|
-
defaultChecked?: boolean;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// Properties Definition
|
|
47
|
-
const propertiesDefinition: PropertiesPanelDefinition<CheckboxProps> = {
|
|
48
|
-
general: Section.category(PropsCategory.Content).children({
|
|
49
|
-
checked: Prop.boolean(),
|
|
50
|
-
defaultChecked: Prop.boolean(),
|
|
51
|
-
}),
|
|
52
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
53
|
-
disabled: Prop.boolean(),
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
57
|
-
onCheckedChange: Prop.eventHandler(),
|
|
58
|
-
}),
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// Editor Template
|
|
62
|
-
// Editor Config
|
|
63
|
-
const editorConfig: EditorConfig = {
|
|
64
|
-
icon: "checkbox",
|
|
65
|
-
description:
|
|
66
|
-
"A control that allows the user to toggle between checked and not checked",
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// Register Component
|
|
70
|
-
registerComponent(Checkbox, propertiesDefinition).editorConfig(editorConfig);
|
|
71
|
-
|
|
72
30
|
export { Checkbox };
|
|
@@ -2,15 +2,6 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
|
2
2
|
import { XIcon } from "lucide-react";
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
Prop,
|
|
7
|
-
PropsCategory,
|
|
8
|
-
registerComponent,
|
|
9
|
-
Section,
|
|
10
|
-
type PropertiesPanelDefinition,
|
|
11
|
-
type EditorConfig,
|
|
12
|
-
} from "@superblocksteam/library";
|
|
13
|
-
|
|
14
5
|
import { cn } from "@/lib/utils";
|
|
15
6
|
|
|
16
7
|
function Dialog({
|
|
@@ -148,49 +139,3 @@ export {
|
|
|
148
139
|
DialogTitle,
|
|
149
140
|
DialogTrigger,
|
|
150
141
|
};
|
|
151
|
-
|
|
152
|
-
// Properties Definition
|
|
153
|
-
const propertiesDefinition: PropertiesPanelDefinition<
|
|
154
|
-
React.ComponentPropsWithoutRef<typeof Dialog>
|
|
155
|
-
> = {
|
|
156
|
-
general: Section.category(PropsCategory.Content).children({
|
|
157
|
-
open: Prop.boolean(),
|
|
158
|
-
children: Prop.jsx(),
|
|
159
|
-
}),
|
|
160
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
161
|
-
showCloseButton: Prop.boolean(),
|
|
162
|
-
defaultOpen: Prop.boolean(),
|
|
163
|
-
modal: Prop.boolean().docs({
|
|
164
|
-
description:
|
|
165
|
-
"When true, interaction with outside elements will be disabled",
|
|
166
|
-
}),
|
|
167
|
-
}),
|
|
168
|
-
|
|
169
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
170
|
-
onOpenChange: Prop.eventHandler(),
|
|
171
|
-
}),
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
const editorConfig: EditorConfig = {
|
|
175
|
-
icon: "modal",
|
|
176
|
-
isDetached: true,
|
|
177
|
-
isDraggable: false,
|
|
178
|
-
description:
|
|
179
|
-
"A window overlaid on the primary window, rendering the content underneath inert",
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
const childrenPropertiesDefinition = {
|
|
183
|
-
general: Section.category(PropsCategory.Content).children({
|
|
184
|
-
children: Prop.jsx(),
|
|
185
|
-
}),
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
// Register Component
|
|
189
|
-
registerComponent(Dialog, propertiesDefinition).editorConfig(editorConfig);
|
|
190
|
-
registerComponent(DialogTrigger, childrenPropertiesDefinition);
|
|
191
|
-
registerComponent(DialogClose);
|
|
192
|
-
registerComponent(DialogContent, childrenPropertiesDefinition);
|
|
193
|
-
registerComponent(DialogDescription, childrenPropertiesDefinition);
|
|
194
|
-
registerComponent(DialogFooter, childrenPropertiesDefinition);
|
|
195
|
-
registerComponent(DialogHeader, childrenPropertiesDefinition);
|
|
196
|
-
registerComponent(DialogTitle, childrenPropertiesDefinition);
|
|
@@ -2,15 +2,6 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
2
2
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
3
3
|
import type * as React from "react";
|
|
4
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";
|
|
13
|
-
|
|
14
5
|
import { cn } from "@/lib/utils";
|
|
15
6
|
|
|
16
7
|
function DropdownMenu({
|
|
@@ -245,26 +236,6 @@ function DropdownMenuSubContent({
|
|
|
245
236
|
);
|
|
246
237
|
}
|
|
247
238
|
|
|
248
|
-
// Properties Definition
|
|
249
|
-
const propertiesDefinition: PropertiesPanelDefinition<
|
|
250
|
-
React.ComponentProps<typeof DropdownMenuPrimitive.Root>
|
|
251
|
-
> = {
|
|
252
|
-
general: Section.category(PropsCategory.Content).children({
|
|
253
|
-
children: Prop.jsx(),
|
|
254
|
-
}),
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
// Editor Template
|
|
258
|
-
// Editor Config
|
|
259
|
-
const editorConfig: EditorConfig = {
|
|
260
|
-
icon: "menu",
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
// Register Component
|
|
264
|
-
registerComponent(DropdownMenu, propertiesDefinition).editorConfig(
|
|
265
|
-
editorConfig,
|
|
266
|
-
);
|
|
267
|
-
|
|
268
239
|
export {
|
|
269
240
|
DropdownMenu,
|
|
270
241
|
DropdownMenuPortal,
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
Prop,
|
|
6
|
-
Section,
|
|
7
|
-
PropsCategory,
|
|
8
|
-
registerComponent,
|
|
9
|
-
type PropertiesPanelDefinition,
|
|
10
|
-
type EditorConfig,
|
|
11
|
-
} from "@superblocksteam/library";
|
|
12
|
-
|
|
13
4
|
import { cn } from "@/lib/utils";
|
|
14
5
|
|
|
15
6
|
function HoverCard({
|
|
@@ -49,58 +40,3 @@ function HoverCardContent({
|
|
|
49
40
|
}
|
|
50
41
|
|
|
51
42
|
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
52
|
-
|
|
53
|
-
// Properties Definition for HoverCard (root)
|
|
54
|
-
const hoverCardPropertiesDefinition: PropertiesPanelDefinition<
|
|
55
|
-
React.ComponentPropsWithoutRef<typeof HoverCard>
|
|
56
|
-
> = {
|
|
57
|
-
general: Section.category(PropsCategory.Content).children({
|
|
58
|
-
open: Prop.boolean(),
|
|
59
|
-
children: Prop.jsx(),
|
|
60
|
-
openDelay: Prop.number(),
|
|
61
|
-
closeDelay: Prop.number(),
|
|
62
|
-
}),
|
|
63
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
64
|
-
defaultOpen: Prop.boolean(),
|
|
65
|
-
}),
|
|
66
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
67
|
-
onOpenChange: Prop.eventHandler(),
|
|
68
|
-
}),
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const hoverCardEditorConfig: EditorConfig = {
|
|
72
|
-
icon: "custom",
|
|
73
|
-
isDetached: true,
|
|
74
|
-
isDraggable: false,
|
|
75
|
-
description:
|
|
76
|
-
"A hover card component for displaying contextual information on hover",
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// Properties Definition for HoverCardContent
|
|
80
|
-
const hoverCardContentPropertiesDefinition: PropertiesPanelDefinition<
|
|
81
|
-
React.ComponentPropsWithoutRef<typeof HoverCardContent>
|
|
82
|
-
> = {
|
|
83
|
-
general: Section.category(PropsCategory.Content).children({
|
|
84
|
-
children: Prop.jsx(),
|
|
85
|
-
}),
|
|
86
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
87
|
-
side: Prop.string<"top" | "right" | "bottom" | "left">(),
|
|
88
|
-
align: Prop.string<"start" | "center" | "end">(),
|
|
89
|
-
sideOffset: Prop.number(),
|
|
90
|
-
alignOffset: Prop.number(),
|
|
91
|
-
avoidCollisions: Prop.boolean(),
|
|
92
|
-
}),
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
const childrenPropertiesDefinition = {
|
|
96
|
-
general: Section.category(PropsCategory.Content).children({
|
|
97
|
-
children: Prop.jsx(),
|
|
98
|
-
}),
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
// Register Components
|
|
102
|
-
registerComponent(HoverCard, hoverCardPropertiesDefinition).editorConfig(
|
|
103
|
-
hoverCardEditorConfig,
|
|
104
|
-
);
|
|
105
|
-
registerComponent(HoverCardTrigger, childrenPropertiesDefinition);
|
|
106
|
-
registerComponent(HoverCardContent, hoverCardContentPropertiesDefinition);
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
registerComponent,
|
|
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
|
-
// Input Component
|
|
15
5
|
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
16
6
|
return (
|
|
17
7
|
<input
|
|
@@ -28,51 +18,4 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
|
28
18
|
);
|
|
29
19
|
}
|
|
30
20
|
|
|
31
|
-
type InputProps = React.ComponentProps<typeof Input>;
|
|
32
|
-
|
|
33
|
-
// Properties Definition
|
|
34
|
-
const propertiesDefinition: PropertiesPanelDefinition<InputProps> = {
|
|
35
|
-
general: Section.category(PropsCategory.Content).children({
|
|
36
|
-
value: Prop.string(),
|
|
37
|
-
defaultValue: Prop.string(),
|
|
38
|
-
placeholder: Prop.string(),
|
|
39
|
-
type: Prop.string<"text" | "email" | "password" | "number" | "url">(),
|
|
40
|
-
}),
|
|
41
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
42
|
-
autoComplete: Prop.string(),
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
interaction: Section.category(PropsCategory.Interaction)
|
|
46
|
-
.children({
|
|
47
|
-
disabled: Prop.boolean(),
|
|
48
|
-
readOnly: Prop.boolean(),
|
|
49
|
-
autoFocus: Prop.boolean(),
|
|
50
|
-
})
|
|
51
|
-
.add({
|
|
52
|
-
minLength: Prop.number(),
|
|
53
|
-
maxLength: Prop.number(),
|
|
54
|
-
})
|
|
55
|
-
.add({
|
|
56
|
-
min: Prop.number(),
|
|
57
|
-
max: Prop.number(),
|
|
58
|
-
step: Prop.number(),
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
62
|
-
onChange: Prop.eventHandler(),
|
|
63
|
-
onFocus: Prop.eventHandler(),
|
|
64
|
-
onBlur: Prop.eventHandler(),
|
|
65
|
-
onKeyDown: Prop.eventHandler(),
|
|
66
|
-
}),
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// Editor Configuration
|
|
70
|
-
const editorConfig: EditorConfig = {
|
|
71
|
-
icon: "input",
|
|
72
|
-
description: "A versatile input component for collecting user data",
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
// Registration
|
|
76
|
-
registerComponent(Input, propertiesDefinition).editorConfig(editorConfig);
|
|
77
|
-
|
|
78
21
|
export { Input };
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
5
|
-
import {
|
|
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
|
-
// Label Component
|
|
16
6
|
function Label({
|
|
17
7
|
className,
|
|
18
8
|
...props
|
|
@@ -29,24 +19,4 @@ function Label({
|
|
|
29
19
|
);
|
|
30
20
|
}
|
|
31
21
|
|
|
32
|
-
type LabelProps = React.ComponentProps<typeof Label>;
|
|
33
|
-
|
|
34
|
-
// Properties Definition
|
|
35
|
-
const propertiesDefinition: PropertiesPanelDefinition<LabelProps> = {
|
|
36
|
-
general: Section.category(PropsCategory.Content).children({
|
|
37
|
-
children: Prop.jsx(),
|
|
38
|
-
htmlFor: Prop.string(),
|
|
39
|
-
}),
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// Editor Template
|
|
43
|
-
// Editor Config
|
|
44
|
-
const editorConfig: EditorConfig = {
|
|
45
|
-
icon: "button",
|
|
46
|
-
description: "A label component for forms and inputs",
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// Register Component
|
|
50
|
-
registerComponent(Label, propertiesDefinition).editorConfig(editorConfig);
|
|
51
|
-
|
|
52
22
|
export { Label };
|
|
@@ -1,40 +1,11 @@
|
|
|
1
1
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
2
3
|
import { ChevronDownIcon } from "lucide-react";
|
|
3
|
-
import
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { useNavigate } from "react-router";
|
|
4
|
+
import * as React from "react";
|
|
6
5
|
|
|
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 { useActivePage } from "@/components/hooks/use-active-page";
|
|
17
|
-
import { Icon } from "@/components/ui/icon";
|
|
18
6
|
import { cn } from "@/lib/utils";
|
|
19
7
|
|
|
20
|
-
|
|
21
|
-
interface MenuItem {
|
|
22
|
-
label: string;
|
|
23
|
-
href?: string;
|
|
24
|
-
content?: {
|
|
25
|
-
title: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
href: string;
|
|
28
|
-
icon?: IconName;
|
|
29
|
-
}[];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Constants
|
|
33
|
-
const TRIGGER_CLASSES =
|
|
34
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1";
|
|
35
|
-
|
|
36
|
-
// Primitive Components
|
|
37
|
-
function NavigationMenuRoot({
|
|
8
|
+
function NavigationMenu({
|
|
38
9
|
className,
|
|
39
10
|
children,
|
|
40
11
|
viewport = true,
|
|
@@ -87,18 +58,19 @@ function NavigationMenuItem({
|
|
|
87
58
|
);
|
|
88
59
|
}
|
|
89
60
|
|
|
61
|
+
const navigationMenuTriggerStyle = cva(
|
|
62
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent",
|
|
63
|
+
);
|
|
64
|
+
|
|
90
65
|
function NavigationMenuTrigger({
|
|
91
66
|
className,
|
|
92
67
|
children,
|
|
93
68
|
...props
|
|
94
|
-
}:
|
|
95
|
-
React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>,
|
|
96
|
-
"asChild"
|
|
97
|
-
>) {
|
|
69
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>) {
|
|
98
70
|
return (
|
|
99
71
|
<NavigationMenuPrimitive.Trigger
|
|
100
72
|
data-slot="navigation-menu-trigger"
|
|
101
|
-
className={cn(
|
|
73
|
+
className={cn(navigationMenuTriggerStyle(), "group", className)}
|
|
102
74
|
{...props}
|
|
103
75
|
>
|
|
104
76
|
{children}{" "}
|
|
@@ -118,8 +90,8 @@ function NavigationMenuContent({
|
|
|
118
90
|
<NavigationMenuPrimitive.Content
|
|
119
91
|
data-slot="navigation-menu-content"
|
|
120
92
|
className={cn(
|
|
121
|
-
"
|
|
122
|
-
"group-data-[viewport=false]/navigation-menu:
|
|
93
|
+
"top-0 left-0 w-full p-2 pr-2.5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out md:absolute md:w-auto",
|
|
94
|
+
"group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95",
|
|
123
95
|
className,
|
|
124
96
|
)}
|
|
125
97
|
{...props}
|
|
@@ -140,7 +112,7 @@ function NavigationMenuViewport({
|
|
|
140
112
|
<NavigationMenuPrimitive.Viewport
|
|
141
113
|
data-slot="navigation-menu-viewport"
|
|
142
114
|
className={cn(
|
|
143
|
-
"origin-top-center bg-popover text-popover-foreground data-[state=
|
|
115
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
144
116
|
className,
|
|
145
117
|
)}
|
|
146
118
|
{...props}
|
|
@@ -157,7 +129,7 @@ function NavigationMenuLink({
|
|
|
157
129
|
<NavigationMenuPrimitive.Link
|
|
158
130
|
data-slot="navigation-menu-link"
|
|
159
131
|
className={cn(
|
|
160
|
-
"
|
|
132
|
+
"flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:hover:bg-accent data-[active=true]:focus:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
161
133
|
className,
|
|
162
134
|
)}
|
|
163
135
|
{...props}
|
|
@@ -173,147 +145,18 @@ function NavigationMenuIndicator({
|
|
|
173
145
|
<NavigationMenuPrimitive.Indicator
|
|
174
146
|
data-slot="navigation-menu-indicator"
|
|
175
147
|
className={cn(
|
|
176
|
-
"
|
|
148
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in",
|
|
177
149
|
className,
|
|
178
150
|
)}
|
|
179
151
|
{...props}
|
|
180
152
|
>
|
|
181
|
-
<div className="
|
|
153
|
+
<div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
|
|
182
154
|
</NavigationMenuPrimitive.Indicator>
|
|
183
155
|
);
|
|
184
156
|
}
|
|
185
157
|
|
|
186
|
-
// Main Component
|
|
187
|
-
type NavigationMenuProps = React.ComponentPropsWithoutRef<
|
|
188
|
-
typeof NavigationMenuRoot
|
|
189
|
-
> & {
|
|
190
|
-
menuItems?: MenuItem[];
|
|
191
|
-
disabled?: boolean;
|
|
192
|
-
onItemClick?: (href?: string) => void;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
const NavigationMenu = ({
|
|
196
|
-
menuItems,
|
|
197
|
-
disabled,
|
|
198
|
-
onItemClick,
|
|
199
|
-
children: _children,
|
|
200
|
-
...props
|
|
201
|
-
}: NavigationMenuProps) => {
|
|
202
|
-
const { isPageActive } = useActivePage();
|
|
203
|
-
const navigate = useNavigate();
|
|
204
|
-
const handleItemClick = React.useCallback(
|
|
205
|
-
(item: MenuItem, href?: string) => {
|
|
206
|
-
const targetHref = href || item.href;
|
|
207
|
-
void onItemClick?.(targetHref);
|
|
208
|
-
if (targetHref) {
|
|
209
|
-
navigate(targetHref);
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
[onItemClick, navigate],
|
|
213
|
-
);
|
|
214
|
-
const normalizedMenuItems: MenuItem[] = React.useMemo(() => {
|
|
215
|
-
if (!Array.isArray(menuItems)) return [];
|
|
216
|
-
return menuItems.map((item: any) => ({
|
|
217
|
-
label: item?.label?.toString() ?? "",
|
|
218
|
-
href: item?.href?.toString(),
|
|
219
|
-
icon: item?.icon?.toString(),
|
|
220
|
-
content: Array.isArray(item?.content)
|
|
221
|
-
? item.content.map((contentItem: any) => ({
|
|
222
|
-
title: contentItem?.title?.toString() ?? "",
|
|
223
|
-
description: contentItem?.description?.toString() ?? "",
|
|
224
|
-
href: contentItem?.href?.toString() ?? "",
|
|
225
|
-
icon: contentItem?.icon?.toString() ?? "",
|
|
226
|
-
}))
|
|
227
|
-
: undefined,
|
|
228
|
-
}));
|
|
229
|
-
}, [menuItems]);
|
|
230
|
-
return (
|
|
231
|
-
<NavigationMenuRoot {...props}>
|
|
232
|
-
<NavigationMenuList>
|
|
233
|
-
{normalizedMenuItems.map((item, index) => (
|
|
234
|
-
<NavigationMenuItem key={`${item.label}-${index}`}>
|
|
235
|
-
{item.content && item.content.length > 0 ? (
|
|
236
|
-
<>
|
|
237
|
-
<NavigationMenuTrigger
|
|
238
|
-
className={cn(
|
|
239
|
-
item.href &&
|
|
240
|
-
isPageActive(item.href) &&
|
|
241
|
-
"bg-accent text-accent-foreground",
|
|
242
|
-
)}
|
|
243
|
-
disabled={disabled}
|
|
244
|
-
>
|
|
245
|
-
{item.label}
|
|
246
|
-
</NavigationMenuTrigger>
|
|
247
|
-
<NavigationMenuContent>
|
|
248
|
-
<div className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]">
|
|
249
|
-
{item.content.map((contentItem, contentIndex) => (
|
|
250
|
-
<NavigationMenuLink
|
|
251
|
-
key={`${contentItem.title}-${contentIndex}`}
|
|
252
|
-
className="cursor-pointer"
|
|
253
|
-
onClick={() => handleItemClick(item, contentItem.href)}
|
|
254
|
-
>
|
|
255
|
-
<div className="flex items-center gap-2">
|
|
256
|
-
{contentItem.icon && <Icon icon={contentItem.icon} />}
|
|
257
|
-
{contentItem.title}
|
|
258
|
-
</div>
|
|
259
|
-
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground">
|
|
260
|
-
{contentItem.description}
|
|
261
|
-
</p>
|
|
262
|
-
</NavigationMenuLink>
|
|
263
|
-
))}
|
|
264
|
-
</div>
|
|
265
|
-
</NavigationMenuContent>
|
|
266
|
-
</>
|
|
267
|
-
) : (
|
|
268
|
-
<NavigationMenuLink
|
|
269
|
-
onClick={() => handleItemClick(item)}
|
|
270
|
-
className={cn(
|
|
271
|
-
TRIGGER_CLASSES,
|
|
272
|
-
"cursor-pointer",
|
|
273
|
-
item.href &&
|
|
274
|
-
isPageActive(item.href) &&
|
|
275
|
-
"bg-accent text-accent-foreground",
|
|
276
|
-
disabled && "pointer-events-none opacity-50",
|
|
277
|
-
)}
|
|
278
|
-
>
|
|
279
|
-
{item.label}
|
|
280
|
-
</NavigationMenuLink>
|
|
281
|
-
)}
|
|
282
|
-
</NavigationMenuItem>
|
|
283
|
-
))}
|
|
284
|
-
</NavigationMenuList>
|
|
285
|
-
</NavigationMenuRoot>
|
|
286
|
-
);
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
// Properties Definition
|
|
290
|
-
const propertiesDefinition: PropertiesPanelDefinition<NavigationMenuProps> = {
|
|
291
|
-
general: Section.category(PropsCategory.Content).children({
|
|
292
|
-
menuItems: Prop.array<MenuItem>(),
|
|
293
|
-
}),
|
|
294
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
295
|
-
disabled: Prop.boolean(),
|
|
296
|
-
}),
|
|
297
|
-
|
|
298
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
299
|
-
onItemClick: Prop.eventHandler(),
|
|
300
|
-
}),
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
// Editor Configuration
|
|
304
|
-
const editorConfig: EditorConfig = {
|
|
305
|
-
icon: "menu",
|
|
306
|
-
description: "A collection of links for navigating websites",
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
// Registration
|
|
310
|
-
registerComponent(NavigationMenu, propertiesDefinition).editorConfig(
|
|
311
|
-
editorConfig,
|
|
312
|
-
);
|
|
313
|
-
|
|
314
158
|
export {
|
|
315
159
|
NavigationMenu,
|
|
316
|
-
NavigationMenuRoot,
|
|
317
160
|
NavigationMenuList,
|
|
318
161
|
NavigationMenuItem,
|
|
319
162
|
NavigationMenuContent,
|
|
@@ -321,4 +164,5 @@ export {
|
|
|
321
164
|
NavigationMenuLink,
|
|
322
165
|
NavigationMenuIndicator,
|
|
323
166
|
NavigationMenuViewport,
|
|
167
|
+
navigationMenuTriggerStyle,
|
|
324
168
|
};
|
|
@@ -5,15 +5,6 @@ import {
|
|
|
5
5
|
} from "lucide-react";
|
|
6
6
|
import React from "react";
|
|
7
7
|
|
|
8
|
-
import { registerComponent } from "@superblocksteam/library";
|
|
9
|
-
import {
|
|
10
|
-
Prop,
|
|
11
|
-
Section,
|
|
12
|
-
PropsCategory,
|
|
13
|
-
type PropertiesPanelDefinition,
|
|
14
|
-
type EditorConfig,
|
|
15
|
-
} from "@superblocksteam/library";
|
|
16
|
-
|
|
17
8
|
import { buttonVariants, type Button } from "@/components/ui/button";
|
|
18
9
|
import { cn } from "@/lib/utils";
|
|
19
10
|
|
|
@@ -126,41 +117,6 @@ function PaginationEllipsis({
|
|
|
126
117
|
);
|
|
127
118
|
}
|
|
128
119
|
|
|
129
|
-
// Properties Definition
|
|
130
|
-
const paginationLinkPropertiesDefinition: PropertiesPanelDefinition<PaginationLinkProps> =
|
|
131
|
-
{
|
|
132
|
-
general: Section.category(PropsCategory.Content).children({
|
|
133
|
-
isActive: Prop.boolean(),
|
|
134
|
-
}),
|
|
135
|
-
appearance: Section.category(PropsCategory.Appearance).children({
|
|
136
|
-
size: Prop.string<"sm" | "default" | "lg">(),
|
|
137
|
-
}),
|
|
138
|
-
interaction: Section.category(PropsCategory.Interaction).children({
|
|
139
|
-
disabled: Prop.boolean(),
|
|
140
|
-
}),
|
|
141
|
-
events: Section.category(PropsCategory.EventHandlers).children({
|
|
142
|
-
onClick: Prop.eventHandler(),
|
|
143
|
-
}),
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// Editor Configuration
|
|
147
|
-
const editorConfig: EditorConfig = {
|
|
148
|
-
icon: "custom",
|
|
149
|
-
isDraggable: true,
|
|
150
|
-
description:
|
|
151
|
-
"Pagination component with page navigation, next and previous links for navigating through large datasets.",
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// Registration
|
|
155
|
-
registerComponent(Pagination).editorConfig(editorConfig);
|
|
156
|
-
|
|
157
|
-
registerComponent(PaginationLink, paginationLinkPropertiesDefinition);
|
|
158
|
-
registerComponent(PaginationNext, paginationLinkPropertiesDefinition);
|
|
159
|
-
registerComponent(PaginationPrevious, paginationLinkPropertiesDefinition);
|
|
160
|
-
registerComponent(PaginationEllipsis);
|
|
161
|
-
registerComponent(PaginationItem);
|
|
162
|
-
registerComponent(PaginationContent);
|
|
163
|
-
|
|
164
120
|
export {
|
|
165
121
|
Pagination,
|
|
166
122
|
PaginationContent,
|