@vizzly-testing/cli 0.15.1 → 0.16.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.
Files changed (135) hide show
  1. package/dist/client/index.js +21 -4
  2. package/dist/reporter/reporter-bundle.css +1 -1
  3. package/dist/reporter/reporter-bundle.iife.js +11 -11
  4. package/dist/sdk/index.js +6 -6
  5. package/dist/services/api-service.js +42 -0
  6. package/dist/services/tdd-service.js +189 -6
  7. package/dist/services/test-runner.js +0 -8
  8. package/dist/services/uploader.js +1 -1
  9. package/dist/types/client.d.ts +88 -0
  10. package/dist/types/config.d.ts +29 -0
  11. package/dist/types/index.d.ts +426 -9
  12. package/dist/types/sdk.d.ts +146 -0
  13. package/dist/utils/config-helpers.js +2 -2
  14. package/docs/tdd-mode.md +34 -0
  15. package/package.json +21 -4
  16. package/dist/types/cli.d.ts +0 -2
  17. package/dist/types/client/index.d.ts +0 -80
  18. package/dist/types/commands/doctor.d.ts +0 -11
  19. package/dist/types/commands/finalize.d.ts +0 -13
  20. package/dist/types/commands/init.d.ts +0 -32
  21. package/dist/types/commands/login.d.ts +0 -11
  22. package/dist/types/commands/logout.d.ts +0 -11
  23. package/dist/types/commands/project.d.ts +0 -28
  24. package/dist/types/commands/run.d.ts +0 -16
  25. package/dist/types/commands/status.d.ts +0 -13
  26. package/dist/types/commands/tdd-daemon.d.ts +0 -24
  27. package/dist/types/commands/tdd.d.ts +0 -17
  28. package/dist/types/commands/upload.d.ts +0 -13
  29. package/dist/types/commands/whoami.d.ts +0 -11
  30. package/dist/types/errors/vizzly-error.d.ts +0 -75
  31. package/dist/types/plugin-loader.d.ts +0 -7
  32. package/dist/types/reporter/src/api/client.d.ts +0 -178
  33. package/dist/types/reporter/src/components/app-router.d.ts +0 -1
  34. package/dist/types/reporter/src/components/code-block.d.ts +0 -4
  35. package/dist/types/reporter/src/components/comparison/comparison-actions.d.ts +0 -5
  36. package/dist/types/reporter/src/components/comparison/comparison-card.d.ts +0 -7
  37. package/dist/types/reporter/src/components/comparison/comparison-group.d.ts +0 -10
  38. package/dist/types/reporter/src/components/comparison/comparison-list.d.ts +0 -6
  39. package/dist/types/reporter/src/components/comparison/comparison-modes/onion-skin-mode.d.ts +0 -10
  40. package/dist/types/reporter/src/components/comparison/comparison-modes/overlay-mode.d.ts +0 -11
  41. package/dist/types/reporter/src/components/comparison/comparison-modes/shared/base-comparison-mode.d.ts +0 -14
  42. package/dist/types/reporter/src/components/comparison/comparison-modes/shared/image-renderer.d.ts +0 -30
  43. package/dist/types/reporter/src/components/comparison/comparison-modes/toggle-view.d.ts +0 -8
  44. package/dist/types/reporter/src/components/comparison/comparison-viewer.d.ts +0 -8
  45. package/dist/types/reporter/src/components/comparison/fullscreen-viewer.d.ts +0 -13
  46. package/dist/types/reporter/src/components/comparison/screenshot-display.d.ts +0 -16
  47. package/dist/types/reporter/src/components/comparison/screenshot-list.d.ts +0 -9
  48. package/dist/types/reporter/src/components/comparison/variant-selector.d.ts +0 -9
  49. package/dist/types/reporter/src/components/comparison/view-mode-selector.d.ts +0 -4
  50. package/dist/types/reporter/src/components/dashboard/dashboard-filters.d.ts +0 -16
  51. package/dist/types/reporter/src/components/design-system/alert.d.ts +0 -9
  52. package/dist/types/reporter/src/components/design-system/badge.d.ts +0 -17
  53. package/dist/types/reporter/src/components/design-system/button.d.ts +0 -19
  54. package/dist/types/reporter/src/components/design-system/card.d.ts +0 -31
  55. package/dist/types/reporter/src/components/design-system/empty-state.d.ts +0 -13
  56. package/dist/types/reporter/src/components/design-system/form-controls.d.ts +0 -44
  57. package/dist/types/reporter/src/components/design-system/health-ring.d.ts +0 -7
  58. package/dist/types/reporter/src/components/design-system/index.d.ts +0 -11
  59. package/dist/types/reporter/src/components/design-system/modal.d.ts +0 -10
  60. package/dist/types/reporter/src/components/design-system/skeleton.d.ts +0 -19
  61. package/dist/types/reporter/src/components/design-system/spinner.d.ts +0 -10
  62. package/dist/types/reporter/src/components/design-system/tabs.d.ts +0 -13
  63. package/dist/types/reporter/src/components/layout/header.d.ts +0 -5
  64. package/dist/types/reporter/src/components/layout/index.d.ts +0 -2
  65. package/dist/types/reporter/src/components/layout/layout.d.ts +0 -6
  66. package/dist/types/reporter/src/components/ui/smart-image.d.ts +0 -7
  67. package/dist/types/reporter/src/components/ui/toast.d.ts +0 -4
  68. package/dist/types/reporter/src/components/views/builds-view.d.ts +0 -1
  69. package/dist/types/reporter/src/components/views/comparison-detail-view.d.ts +0 -5
  70. package/dist/types/reporter/src/components/views/comparisons-view.d.ts +0 -5
  71. package/dist/types/reporter/src/components/views/projects-view.d.ts +0 -1
  72. package/dist/types/reporter/src/components/views/settings-view.d.ts +0 -1
  73. package/dist/types/reporter/src/components/views/stats-view.d.ts +0 -1
  74. package/dist/types/reporter/src/components/waiting-for-screenshots.d.ts +0 -1
  75. package/dist/types/reporter/src/hooks/queries/use-auth-queries.d.ts +0 -15
  76. package/dist/types/reporter/src/hooks/queries/use-cloud-queries.d.ts +0 -6
  77. package/dist/types/reporter/src/hooks/queries/use-config-queries.d.ts +0 -6
  78. package/dist/types/reporter/src/hooks/queries/use-tdd-queries.d.ts +0 -9
  79. package/dist/types/reporter/src/hooks/use-comparison-filters.d.ts +0 -20
  80. package/dist/types/reporter/src/hooks/use-image-loader.d.ts +0 -1
  81. package/dist/types/reporter/src/lib/query-client.d.ts +0 -2
  82. package/dist/types/reporter/src/lib/query-keys.d.ts +0 -13
  83. package/dist/types/reporter/src/main.d.ts +0 -1
  84. package/dist/types/reporter/src/services/api-client.d.ts +0 -11
  85. package/dist/types/reporter/src/utils/comparison-helpers.d.ts +0 -16
  86. package/dist/types/reporter/src/utils/constants.d.ts +0 -37
  87. package/dist/types/reporter/vite.config.d.ts +0 -2
  88. package/dist/types/reporter/vite.dev.config.d.ts +0 -2
  89. package/dist/types/sdk/index.d.ts +0 -110
  90. package/dist/types/server/handlers/api-handler.d.ts +0 -88
  91. package/dist/types/server/handlers/tdd-handler.d.ts +0 -162
  92. package/dist/types/server/http-server.d.ts +0 -6
  93. package/dist/types/server/middleware/cors.d.ts +0 -11
  94. package/dist/types/server/middleware/json-parser.d.ts +0 -10
  95. package/dist/types/server/middleware/response.d.ts +0 -50
  96. package/dist/types/server/routers/assets.d.ts +0 -6
  97. package/dist/types/server/routers/auth.d.ts +0 -9
  98. package/dist/types/server/routers/baseline.d.ts +0 -13
  99. package/dist/types/server/routers/cloud-proxy.d.ts +0 -11
  100. package/dist/types/server/routers/config.d.ts +0 -9
  101. package/dist/types/server/routers/dashboard.d.ts +0 -6
  102. package/dist/types/server/routers/health.d.ts +0 -11
  103. package/dist/types/server/routers/projects.d.ts +0 -9
  104. package/dist/types/server/routers/screenshot.d.ts +0 -11
  105. package/dist/types/services/api-service.d.ts +0 -100
  106. package/dist/types/services/auth-service.d.ts +0 -59
  107. package/dist/types/services/build-manager.d.ts +0 -69
  108. package/dist/types/services/config-service.d.ts +0 -97
  109. package/dist/types/services/html-report-generator.d.ts +0 -52
  110. package/dist/types/services/index.d.ts +0 -7
  111. package/dist/types/services/project-service.d.ts +0 -105
  112. package/dist/types/services/report-generator/viewer.d.ts +0 -0
  113. package/dist/types/services/screenshot-server.d.ts +0 -10
  114. package/dist/types/services/server-manager.d.ts +0 -269
  115. package/dist/types/services/static-report-generator.d.ts +0 -25
  116. package/dist/types/services/tdd-service.d.ts +0 -95
  117. package/dist/types/services/test-runner.d.ts +0 -31
  118. package/dist/types/services/uploader.d.ts +0 -36
  119. package/dist/types/utils/browser.d.ts +0 -6
  120. package/dist/types/utils/build-history.d.ts +0 -16
  121. package/dist/types/utils/ci-env.d.ts +0 -55
  122. package/dist/types/utils/colors.d.ts +0 -12
  123. package/dist/types/utils/config-helpers.d.ts +0 -6
  124. package/dist/types/utils/config-loader.d.ts +0 -25
  125. package/dist/types/utils/config-schema.d.ts +0 -51
  126. package/dist/types/utils/environment-config.d.ts +0 -59
  127. package/dist/types/utils/environment.d.ts +0 -36
  128. package/dist/types/utils/fetch-utils.d.ts +0 -1
  129. package/dist/types/utils/file-helpers.d.ts +0 -18
  130. package/dist/types/utils/git.d.ts +0 -56
  131. package/dist/types/utils/global-config.d.ts +0 -84
  132. package/dist/types/utils/image-input-detector.d.ts +0 -71
  133. package/dist/types/utils/output.d.ts +0 -84
  134. package/dist/types/utils/package-info.d.ts +0 -15
  135. package/dist/types/utils/security.d.ts +0 -30
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,80 +0,0 @@
1
- /**
2
- * Take a screenshot for visual regression testing
3
- *
4
- * @param {string} name - Unique name for the screenshot
5
- * @param {Buffer|string} imageBuffer - PNG image data as a Buffer, or a file path to an image
6
- * @param {Object} [options] - Optional configuration
7
- * @param {Record<string, any>} [options.properties] - Additional properties to attach to the screenshot
8
- * @param {number} [options.threshold=0] - Pixel difference threshold (0-100)
9
- * @param {boolean} [options.fullPage=false] - Whether this is a full page screenshot
10
- *
11
- * @returns {Promise<void>}
12
- *
13
- * @example
14
- * // Basic usage with Buffer
15
- * import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
16
- *
17
- * const screenshot = await page.screenshot();
18
- * await vizzlyScreenshot('homepage', screenshot);
19
- *
20
- * @example
21
- * // Basic usage with file path
22
- * await vizzlyScreenshot('homepage', './screenshots/homepage.png');
23
- *
24
- * @example
25
- * // With properties and threshold
26
- * await vizzlyScreenshot('checkout-form', screenshot, {
27
- * properties: {
28
- * browser: 'chrome',
29
- * viewport: '1920x1080'
30
- * },
31
- * threshold: 5
32
- * });
33
- *
34
- * @throws {VizzlyError} When screenshot capture fails or client is not initialized
35
- * @throws {VizzlyError} When file path is provided but file doesn't exist
36
- * @throws {VizzlyError} When file cannot be read due to permissions or I/O errors
37
- */
38
- export function vizzlyScreenshot(name: string, imageBuffer: Buffer | string, options?: {
39
- properties?: Record<string, any>;
40
- threshold?: number;
41
- fullPage?: boolean;
42
- }): Promise<void>;
43
- /**
44
- * Wait for all queued screenshots to be processed
45
- *
46
- * @returns {Promise<void>}
47
- *
48
- * @example
49
- * afterAll(async () => {
50
- * await vizzlyFlush();
51
- * });
52
- */
53
- export function vizzlyFlush(): Promise<void>;
54
- /**
55
- * Check if the Vizzly client is initialized and ready
56
- *
57
- * @returns {boolean} True if client is ready, false otherwise
58
- */
59
- export function isVizzlyReady(): boolean;
60
- /**
61
- * Configure the client with custom settings
62
- *
63
- * @param {Object} config - Configuration options
64
- * @param {string} [config.serverUrl] - Server URL override
65
- * @param {boolean} [config.enabled] - Enable/disable screenshots
66
- */
67
- export function configure(config?: {
68
- serverUrl?: string;
69
- enabled?: boolean;
70
- }): void;
71
- /**
72
- * Enable or disable screenshot capture
73
- * @param {boolean} enabled - Whether to enable screenshots
74
- */
75
- export function setEnabled(enabled: boolean): void;
76
- /**
77
- * Get information about Vizzly client state
78
- * @returns {Object} Client information
79
- */
80
- export function getVizzlyInfo(): any;
@@ -1,11 +0,0 @@
1
- /**
2
- * Doctor command implementation - Run diagnostics to check environment
3
- * @param {Object} options - Command options
4
- * @param {Object} globalOptions - Global CLI options
5
- */
6
- export function doctorCommand(options?: any, globalOptions?: any): Promise<void>;
7
- /**
8
- * Validate doctor options (no specific validation needed)
9
- * @param {Object} options - Command options
10
- */
11
- export function validateDoctorOptions(): any[];
@@ -1,13 +0,0 @@
1
- /**
2
- * Finalize command implementation
3
- * @param {string} parallelId - Parallel ID to finalize
4
- * @param {Object} options - Command options
5
- * @param {Object} globalOptions - Global CLI options
6
- */
7
- export function finalizeCommand(parallelId: string, options?: any, globalOptions?: any): Promise<void>;
8
- /**
9
- * Validate finalize options
10
- * @param {string} parallelId - Parallel ID to finalize
11
- * @param {Object} options - Command options
12
- */
13
- export function validateFinalizeOptions(parallelId: string, _options: any): string[];
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env node
2
- export function createInitCommand(options: any): () => Promise<void>;
3
- export function init(options?: {}): Promise<void>;
4
- /**
5
- * Simple configuration setup for Vizzly CLI
6
- */
7
- export class InitCommand {
8
- constructor(plugins?: any[]);
9
- plugins: any[];
10
- run(options?: {}): Promise<void>;
11
- generateConfigFile(configPath: any): Promise<void>;
12
- /**
13
- * Generate configuration sections for plugins
14
- * @returns {string} Plugin config sections as formatted string
15
- */
16
- generatePluginConfigs(): string;
17
- /**
18
- * Format a plugin's config schema as JavaScript code
19
- * @param {Object} plugin - Plugin with configSchema
20
- * @returns {string} Formatted config string
21
- */
22
- formatPluginConfig(plugin: any): string;
23
- /**
24
- * Format a JavaScript value with proper indentation
25
- * @param {*} value - Value to format
26
- * @param {number} depth - Current indentation depth
27
- * @returns {string} Formatted value
28
- */
29
- formatValue(value: any, depth?: number): string;
30
- showNextSteps(): void;
31
- fileExists(filePath: any): Promise<boolean>;
32
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Login command implementation using OAuth device flow
3
- * @param {Object} options - Command options
4
- * @param {Object} globalOptions - Global CLI options
5
- */
6
- export function loginCommand(options?: any, globalOptions?: any): Promise<void>;
7
- /**
8
- * Validate login options
9
- * @param {Object} options - Command options
10
- */
11
- export function validateLoginOptions(): any[];
@@ -1,11 +0,0 @@
1
- /**
2
- * Logout command implementation
3
- * @param {Object} options - Command options
4
- * @param {Object} globalOptions - Global CLI options
5
- */
6
- export function logoutCommand(options?: any, globalOptions?: any): Promise<void>;
7
- /**
8
- * Validate logout options
9
- * @param {Object} options - Command options
10
- */
11
- export function validateLogoutOptions(): any[];
@@ -1,28 +0,0 @@
1
- /**
2
- * Project select command - configure project for current directory
3
- * @param {Object} options - Command options
4
- * @param {Object} globalOptions - Global CLI options
5
- */
6
- export function projectSelectCommand(options?: any, globalOptions?: any): Promise<void>;
7
- /**
8
- * Project list command - show all configured projects
9
- * @param {Object} _options - Command options (unused)
10
- * @param {Object} globalOptions - Global CLI options
11
- */
12
- export function projectListCommand(_options?: any, globalOptions?: any): Promise<void>;
13
- /**
14
- * Project token command - show/regenerate token for current directory
15
- * @param {Object} _options - Command options (unused)
16
- * @param {Object} globalOptions - Global CLI options
17
- */
18
- export function projectTokenCommand(_options?: any, globalOptions?: any): Promise<void>;
19
- /**
20
- * Project remove command - remove project configuration for current directory
21
- * @param {Object} _options - Command options (unused)
22
- * @param {Object} globalOptions - Global CLI options
23
- */
24
- export function projectRemoveCommand(_options?: any, globalOptions?: any): Promise<void>;
25
- /**
26
- * Validate project command options
27
- */
28
- export function validateProjectOptions(): any[];
@@ -1,16 +0,0 @@
1
- /**
2
- * Run command implementation
3
- * @param {string} testCommand - Test command to execute
4
- * @param {Object} options - Command options
5
- * @param {Object} globalOptions - Global CLI options
6
- */
7
- export function runCommand(testCommand: string, options?: any, globalOptions?: any): Promise<{
8
- success: boolean;
9
- exitCode: number;
10
- }>;
11
- /**
12
- * Validate run options
13
- * @param {string} testCommand - Test command to execute
14
- * @param {Object} options - Command options
15
- */
16
- export function validateRunOptions(testCommand: string, options: any): string[];
@@ -1,13 +0,0 @@
1
- /**
2
- * Status command implementation
3
- * @param {string} buildId - Build ID to check status for
4
- * @param {Object} options - Command options
5
- * @param {Object} globalOptions - Global CLI options
6
- */
7
- export function statusCommand(buildId: string, options?: any, globalOptions?: any): Promise<void>;
8
- /**
9
- * Validate status options
10
- * @param {string} buildId - Build ID to check
11
- * @param {Object} options - Command options
12
- */
13
- export function validateStatusOptions(buildId: string): string[];
@@ -1,24 +0,0 @@
1
- /**
2
- * Start TDD server in daemon mode
3
- * @param {Object} options - Command options
4
- * @param {Object} globalOptions - Global CLI options
5
- */
6
- export function tddStartCommand(options?: any, globalOptions?: any): Promise<void>;
7
- /**
8
- * Internal function to run server in child process
9
- * This is called when --daemon-child flag is present
10
- * @private
11
- */
12
- export function runDaemonChild(options?: {}, globalOptions?: {}): Promise<void>;
13
- /**
14
- * Stop TDD daemon server
15
- * @param {Object} options - Command options
16
- * @param {Object} globalOptions - Global CLI options
17
- */
18
- export function tddStopCommand(options?: any, globalOptions?: any): Promise<void>;
19
- /**
20
- * Check TDD daemon server status
21
- * @param {Object} options - Command options
22
- * @param {Object} globalOptions - Global CLI options
23
- */
24
- export function tddStatusCommand(options: any, globalOptions?: any): Promise<void>;
@@ -1,17 +0,0 @@
1
- /**
2
- * TDD command implementation
3
- * @param {string} testCommand - Test command to execute
4
- * @param {Object} options - Command options
5
- * @param {Object} globalOptions - Global CLI options
6
- * @returns {Promise<{result: Object, cleanup: Function}>} Result and cleanup function
7
- */
8
- export function tddCommand(testCommand: string, options?: any, globalOptions?: any): Promise<{
9
- result: any;
10
- cleanup: Function;
11
- }>;
12
- /**
13
- * Validate TDD options
14
- * @param {string} testCommand - Test command to execute
15
- * @param {Object} options - Command options
16
- */
17
- export function validateTddOptions(testCommand: string, options: any): string[];
@@ -1,13 +0,0 @@
1
- /**
2
- * Upload command implementation
3
- * @param {string} screenshotsPath - Path to screenshots
4
- * @param {Object} options - Command options
5
- * @param {Object} globalOptions - Global CLI options
6
- */
7
- export function uploadCommand(screenshotsPath: string, options?: any, globalOptions?: any): Promise<void>;
8
- /**
9
- * Validate upload options
10
- * @param {string} screenshotsPath - Path to screenshots
11
- * @param {Object} options - Command options
12
- */
13
- export function validateUploadOptions(screenshotsPath: string, options: any): string[];
@@ -1,11 +0,0 @@
1
- /**
2
- * Whoami command implementation
3
- * @param {Object} options - Command options
4
- * @param {Object} globalOptions - Global CLI options
5
- */
6
- export function whoamiCommand(options?: any, globalOptions?: any): Promise<void>;
7
- /**
8
- * Validate whoami options
9
- * @param {Object} options - Command options
10
- */
11
- export function validateWhoamiOptions(): any[];
@@ -1,75 +0,0 @@
1
- /**
2
- * Base error class for all Vizzly errors
3
- * Provides consistent error structure and helpful debugging information
4
- */
5
- export class VizzlyError extends Error {
6
- constructor(message: any, code?: string, context?: {});
7
- code: string;
8
- context: {};
9
- timestamp: string;
10
- /**
11
- * Get a user-friendly error message
12
- */
13
- getUserMessage(): string;
14
- /**
15
- * Get error details for logging
16
- */
17
- toJSON(): {
18
- name: string;
19
- code: string;
20
- message: string;
21
- context: {};
22
- timestamp: string;
23
- stack: string;
24
- };
25
- }
26
- /**
27
- * Configuration-related errors
28
- */
29
- export class ConfigError extends VizzlyError {
30
- constructor(message: any, context?: {});
31
- }
32
- /**
33
- * Authentication/authorization errors
34
- */
35
- export class AuthError extends VizzlyError {
36
- constructor(message: any, context?: {});
37
- }
38
- /**
39
- * Network/connection errors
40
- */
41
- export class NetworkError extends VizzlyError {
42
- constructor(message: any, context?: {});
43
- }
44
- /**
45
- * Upload-related errors
46
- */
47
- export class UploadError extends VizzlyError {
48
- constructor(message: any, context?: {});
49
- }
50
- /**
51
- * Screenshot-related errors
52
- */
53
- export class ScreenshotError extends VizzlyError {
54
- constructor(message: any, context?: {});
55
- }
56
- /**
57
- * Build-related errors
58
- */
59
- export class BuildError extends VizzlyError {
60
- constructor(message: any, context?: {});
61
- }
62
- /**
63
- * Timeout errors
64
- */
65
- export class TimeoutError extends VizzlyError {
66
- constructor(message: any, duration: any, context?: {});
67
- duration: any;
68
- }
69
- /**
70
- * Validation errors
71
- */
72
- export class ValidationError extends VizzlyError {
73
- constructor(message: any, errors?: any[], context?: {});
74
- errors: any[];
75
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Load and register plugins from node_modules and config
3
- * @param {string|null} configPath - Path to config file
4
- * @param {Object} config - Loaded configuration
5
- * @returns {Promise<Array>} Array of loaded plugins
6
- */
7
- export function loadPlugins(configPath: string | null, config: any): Promise<any[]>;
@@ -1,178 +0,0 @@
1
- export namespace tdd {
2
- /**
3
- * Get current report data with comparisons
4
- * @returns {Promise<Object|null>}
5
- */
6
- function getReportData(): Promise<any | null>;
7
- /**
8
- * Get real-time status
9
- * @returns {Promise<Object>}
10
- */
11
- function getStatus(): Promise<any>;
12
- /**
13
- * Accept a single baseline
14
- * @param {string} id - Comparison ID
15
- * @returns {Promise<Object>}
16
- */
17
- function acceptBaseline(id: string): Promise<any>;
18
- /**
19
- * Accept all baselines
20
- * @returns {Promise<Object>}
21
- */
22
- function acceptAllBaselines(): Promise<any>;
23
- /**
24
- * Reset baselines to previous state
25
- * @returns {Promise<Object>}
26
- */
27
- function resetBaselines(): Promise<any>;
28
- /**
29
- * Download baselines from a remote build
30
- * @param {string} buildId - Build ID to download from
31
- * @param {string} [organizationSlug] - Organization slug for OAuth auth
32
- * @param {string} [projectSlug] - Project slug for OAuth auth
33
- * @returns {Promise<Object>}
34
- */
35
- function downloadBaselines(buildId: string, organizationSlug?: string, projectSlug?: string): Promise<any>;
36
- }
37
- export namespace cloud {
38
- /**
39
- * List all user's projects
40
- * @returns {Promise<Object>}
41
- */
42
- function listProjects(): Promise<any>;
43
- /**
44
- * Get builds for a specific project
45
- * @param {string} organizationSlug
46
- * @param {string} projectSlug
47
- * @param {Object} options
48
- * @param {number} [options.limit=20]
49
- * @param {string} [options.branch]
50
- * @returns {Promise<Object>}
51
- */
52
- function getBuilds(organizationSlug: string, projectSlug: string, options?: {
53
- limit?: number;
54
- branch?: string;
55
- }): Promise<any>;
56
- /**
57
- * Download baselines from cloud build
58
- * @param {string} buildId
59
- * @param {string[]} [screenshotNames] - Optional specific screenshots
60
- * @returns {Promise<Object>}
61
- */
62
- function downloadBaselines(buildId: string, screenshotNames?: string[]): Promise<any>;
63
- }
64
- export namespace config {
65
- /**
66
- * Get merged configuration
67
- * @returns {Promise<Object>}
68
- */
69
- function get(): Promise<any>;
70
- /**
71
- * Get project-level configuration
72
- * @returns {Promise<Object>}
73
- */
74
- function getProject(): Promise<any>;
75
- /**
76
- * Get global configuration
77
- * @returns {Promise<Object>}
78
- */
79
- function getGlobal(): Promise<any>;
80
- /**
81
- * Update project configuration
82
- * @param {Object} data - Config data to update
83
- * @returns {Promise<Object>}
84
- */
85
- function updateProject(data: any): Promise<any>;
86
- /**
87
- * Update global configuration
88
- * @param {Object} data - Config data to update
89
- * @returns {Promise<Object>}
90
- */
91
- function updateGlobal(data: any): Promise<any>;
92
- /**
93
- * Validate configuration
94
- * @param {Object} data - Config to validate
95
- * @returns {Promise<Object>}
96
- */
97
- function validate(data: any): Promise<any>;
98
- }
99
- export namespace auth {
100
- /**
101
- * Get authentication status
102
- * @returns {Promise<{authenticated: boolean, user: Object|null}>}
103
- */
104
- function getStatus(): Promise<{
105
- authenticated: boolean;
106
- user: any | null;
107
- }>;
108
- /**
109
- * Initiate device flow login
110
- * @returns {Promise<{deviceCode: string, userCode: string, verificationUri: string, expiresIn: number}>}
111
- */
112
- function initiateLogin(): Promise<{
113
- deviceCode: string;
114
- userCode: string;
115
- verificationUri: string;
116
- expiresIn: number;
117
- }>;
118
- /**
119
- * Poll device authorization status
120
- * @param {string} deviceCode
121
- * @returns {Promise<{status: 'pending'|'complete', user?: Object}>}
122
- */
123
- function pollAuthorization(deviceCode: string): Promise<{
124
- status: "pending" | "complete";
125
- user?: any;
126
- }>;
127
- /**
128
- * Logout user
129
- * @returns {Promise<Object>}
130
- */
131
- function logout(): Promise<any>;
132
- }
133
- export namespace projects {
134
- /**
135
- * List projects from API
136
- * @returns {Promise<Object>}
137
- */
138
- function list(): Promise<any>;
139
- /**
140
- * List project directory mappings
141
- * @returns {Promise<Object>}
142
- */
143
- function listMappings(): Promise<any>;
144
- /**
145
- * Create or update project mapping
146
- * @param {Object} data
147
- * @returns {Promise<Object>}
148
- */
149
- function createMapping(data: any): Promise<any>;
150
- /**
151
- * Delete project mapping
152
- * @param {string} directory
153
- * @returns {Promise<Object>}
154
- */
155
- function deleteMapping(directory: string): Promise<any>;
156
- /**
157
- * Get recent builds for current project
158
- * @param {Object} options
159
- * @returns {Promise<Object>}
160
- */
161
- function getRecentBuilds(options?: any): Promise<any>;
162
- /**
163
- * Get builds for a specific project
164
- * @param {string} organizationSlug
165
- * @param {string} projectSlug
166
- * @param {Object} options
167
- * @returns {Promise<Object>}
168
- */
169
- function getBuilds(organizationSlug: string, projectSlug: string, options?: any): Promise<any>;
170
- }
171
- export namespace api {
172
- export { tdd };
173
- export { cloud };
174
- export { config };
175
- export { auth };
176
- export { projects };
177
- }
178
- export default api;
@@ -1 +0,0 @@
1
- export default function AppRouter(): any;
@@ -1,4 +0,0 @@
1
- export default function CodeBlock({ code, language }: {
2
- code: any;
3
- language?: string;
4
- }): any;
@@ -1,5 +0,0 @@
1
- export default function ComparisonActions({ onAccept, onReject, disabled, }: {
2
- onAccept: any;
3
- onReject: any;
4
- disabled?: boolean;
5
- }): any;
@@ -1,7 +0,0 @@
1
- export default function ComparisonCard({ comparison, onAccept, onReject, userAction, variantSelector, }: {
2
- comparison: any;
3
- onAccept: any;
4
- onReject: any;
5
- userAction: any;
6
- variantSelector?: any;
7
- }): any;
@@ -1,10 +0,0 @@
1
- /**
2
- * Comparison group component that displays multiple variants of the same screenshot
3
- * Matches cloud product's grouped screenshot display
4
- */
5
- export default function ComparisonGroup({ group, onAccept, onReject, loadingStates, }: {
6
- group: any;
7
- onAccept: any;
8
- onReject: any;
9
- loadingStates: any;
10
- }): any;
@@ -1,6 +0,0 @@
1
- export default function ComparisonList({ comparisons, onAccept, onReject, loadingStates, }: {
2
- comparisons: any;
3
- onAccept: any;
4
- onReject: any;
5
- loadingStates: any;
6
- }): any;
@@ -1,10 +0,0 @@
1
- export function OnionSkinMode({ baselineImageUrl, currentImageUrl, sliderPosition, onSliderChange, screenshot, onImageError, onImageLoad, imageErrors, }: {
2
- baselineImageUrl: any;
3
- currentImageUrl: any;
4
- sliderPosition?: number;
5
- onSliderChange: any;
6
- screenshot: any;
7
- onImageError: any;
8
- onImageLoad: any;
9
- imageErrors?: Set<any>;
10
- }): any;
@@ -1,11 +0,0 @@
1
- export function OverlayMode({ baselineImageUrl, currentImageUrl, diffImageUrl, showDiffOverlay, screenshot, onImageError, onImageLoad, imageErrors, onDiffToggle, }: {
2
- baselineImageUrl: any;
3
- currentImageUrl: any;
4
- diffImageUrl: any;
5
- showDiffOverlay?: boolean;
6
- screenshot: any;
7
- onImageError: any;
8
- onImageLoad: any;
9
- imageErrors: any;
10
- onDiffToggle: any;
11
- }): any;
@@ -1,14 +0,0 @@
1
- export function BaseComparisonMode({ children, containerClassName, onClick, style, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- containerClassName?: string;
5
- onClick: any;
6
- style?: {};
7
- }): any;
8
- export function ComparisonContainer({ children, containerClassName, interactive, onClick, style, }: {
9
- children: any;
10
- containerClassName?: string;
11
- interactive?: boolean;
12
- onClick: any;
13
- style?: {};
14
- }): any;
@@ -1,30 +0,0 @@
1
- /**
2
- * Simple, reliable image renderer for screenshot comparisons
3
- * Zoom is handled at the container level, not here
4
- */
5
- export function ImageRenderer({ imageKey, url, alt, position, className, onError, onLoad, imageErrors, style, loading, ...props }: {
6
- [x: string]: any;
7
- imageKey: any;
8
- url: any;
9
- alt: any;
10
- position?: string;
11
- className?: string;
12
- onError: any;
13
- onLoad: any;
14
- imageErrors: any;
15
- style?: {};
16
- loading?: string;
17
- }): any;
18
- export function ImageWithErrorBoundary({ imageKey, url, alt, position, className, onError, onLoad, imageErrors, showErrorPlaceholder, loading, ...props }: {
19
- [x: string]: any;
20
- imageKey: any;
21
- url: any;
22
- alt: any;
23
- position?: string;
24
- className?: string;
25
- onError: any;
26
- onLoad: any;
27
- imageErrors: any;
28
- showErrorPlaceholder?: boolean;
29
- loading?: string;
30
- }): any;