sunpeak 0.20.60 → 0.20.62

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 (57) hide show
  1. package/bin/commands/inspect.mjs +2 -1
  2. package/bin/commands/new.mjs +11 -8
  3. package/bin/commands/test-init.mjs +1 -0
  4. package/bin/commands/test.mjs +8 -4
  5. package/bin/lib/resolve-bin.mjs +18 -0
  6. package/bin/lib/test/base-config.mjs +3 -1
  7. package/bin/lib/test/test-config.mjs +11 -2
  8. package/bin/sunpeak.js +4 -2
  9. package/dist/chatgpt/index.cjs +1 -1
  10. package/dist/chatgpt/index.js +1 -1
  11. package/dist/claude/index.cjs +1 -1
  12. package/dist/claude/index.js +1 -1
  13. package/dist/embed.css +1 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/inspector/index.cjs +1 -1
  17. package/dist/inspector/index.js +1 -1
  18. package/dist/{inspector-WIO0nm2Q.cjs → inspector-Cl5w_7yQ.cjs} +7 -4
  19. package/dist/inspector-Cl5w_7yQ.cjs.map +1 -0
  20. package/dist/{inspector-CFSIZYOm.js → inspector-DPJeSQAd.js} +7 -4
  21. package/dist/inspector-DPJeSQAd.js.map +1 -0
  22. package/dist/protocol-DVkrOIAq.cjs.map +1 -1
  23. package/dist/protocol-fGgeFIiL.js.map +1 -1
  24. package/dist/style.css +1 -1
  25. package/package.json +16 -15
  26. package/template/dist/albums/albums.html +4 -4
  27. package/template/dist/albums/albums.json +1 -1
  28. package/template/dist/carousel/carousel.html +7 -7
  29. package/template/dist/carousel/carousel.json +1 -1
  30. package/template/dist/map/map.html +7 -7
  31. package/template/dist/map/map.json +1 -1
  32. package/template/dist/review/review.html +4 -4
  33. package/template/dist/review/review.json +1 -1
  34. package/template/node_modules/.bin/playwright +2 -2
  35. package/template/node_modules/.bin/vite +2 -2
  36. package/template/node_modules/.bin/vitest +2 -2
  37. package/template/node_modules/.vite/deps/_metadata.json +4 -4
  38. package/template/node_modules/.vite-mcp/deps/_metadata.json +21 -21
  39. package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js +2 -1
  40. package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js.map +1 -1
  41. package/template/node_modules/.vite-mcp/deps/external-D8EJN_Cc.js.map +1 -1
  42. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +114 -87
  43. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -1
  44. package/template/node_modules/.vite-mcp/deps/tailwind-merge.js.map +1 -1
  45. package/template/node_modules/.vite-mcp/deps/vitest.js +40 -24
  46. package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
  47. package/template/package.json +6 -5
  48. package/template/tests/e2e/carousel.spec.ts +9 -9
  49. package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-chatgpt-darwin.png +0 -0
  50. package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-claude-darwin.png +0 -0
  51. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-darwin.png +0 -0
  52. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
  53. package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-chatgpt-darwin.png +0 -0
  54. package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-claude-darwin.png +0 -0
  55. package/template/vitest.config.ts +2 -0
  56. package/dist/inspector-CFSIZYOm.js.map +0 -1
  57. package/dist/inspector-WIO0nm2Q.cjs.map +0 -1
@@ -24,21 +24,22 @@
24
24
  "zod": "^4.4.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@playwright/test": "1.60.0",
28
- "@tailwindcss/vite": "^4.3.1",
27
+ "@playwright/test": "1.61.1",
28
+ "@rolldown/pluginutils": "^1.0.1",
29
+ "@tailwindcss/vite": "^4.3.2",
29
30
  "@testing-library/jest-dom": "^6.9.1",
30
31
  "@testing-library/react": "^16.3.2",
31
32
  "@testing-library/user-event": "^14.6.1",
32
- "@types/node": "^26.0.1",
33
+ "@types/node": "^26.1.0",
33
34
  "@types/react": "^19.2.17",
34
35
  "@types/react-dom": "^19.2.3",
35
36
  "@vitejs/plugin-react": "^6.0.3",
36
37
  "happy-dom": "^20.10.6",
37
38
  "react": "^19.2.7",
38
39
  "react-dom": "^19.2.7",
39
- "tailwindcss": "^4.3.1",
40
+ "tailwindcss": "^4.3.2",
40
41
  "typescript": "^6.0.3",
41
- "vite": "8.1.0",
42
+ "vite": "8.1.3",
42
43
  "vitest": "^4.1.9"
43
44
  }
44
45
  }
@@ -44,9 +44,9 @@ test('should show detail view with place info in fullscreen', async ({ inspector
44
44
  });
45
45
  const app = result.app();
46
46
 
47
- const card = app.locator('.rounded-2xl').first();
48
- await expect(card).toBeVisible();
49
- await card.click();
47
+ const firstPlace = app.getByRole('heading', { name: 'Lady Bird Lake' });
48
+ await expect(firstPlace).toBeVisible();
49
+ await firstPlace.click();
50
50
 
51
51
  await expect(app.locator('h1:has-text("Lady Bird Lake")')).toBeVisible({ timeout: 5000 });
52
52
  await expect(app.locator('text=Highlights')).toBeVisible();
@@ -73,9 +73,9 @@ test('should not have a back button in detail view', async ({ inspector }) => {
73
73
  });
74
74
  const app = result.app();
75
75
 
76
- const card = app.locator('.rounded-2xl').first();
77
- await expect(card).toBeVisible();
78
- await card.click();
76
+ const firstPlace = app.getByRole('heading', { name: 'Lady Bird Lake' });
77
+ await expect(firstPlace).toBeVisible();
78
+ await firstPlace.click();
79
79
 
80
80
  await expect(app.locator('h1:has-text("Lady Bird Lake")')).toBeVisible({ timeout: 5000 });
81
81
  const backButton = app.locator('button[aria-label="Back to carousel"]');
@@ -88,9 +88,9 @@ test('should center the hero image without stretching', async ({ inspector }) =>
88
88
  });
89
89
  const app = result.app();
90
90
 
91
- const card = app.locator('.rounded-2xl').first();
92
- await expect(card).toBeVisible();
93
- await card.click();
91
+ const firstPlace = app.getByRole('heading', { name: 'Lady Bird Lake' });
92
+ await expect(firstPlace).toBeVisible();
93
+ await firstPlace.click();
94
94
 
95
95
  await expect(app.locator('h1:has-text("Lady Bird Lake")')).toBeVisible({ timeout: 5000 });
96
96
  await expect(app.locator('img[alt="Lady Bird Lake"]')).toBeVisible();
@@ -9,6 +9,8 @@ export default defineConfig({
9
9
  test: {
10
10
  globals: true,
11
11
  environment: 'happy-dom',
12
+ maxWorkers: 1,
13
+ pool: 'threads',
12
14
  setupFiles: './tests/setup.ts',
13
15
  exclude: ['**/node_modules/**', '**/tests/e2e/**', '**/tests/live/**'],
14
16
  },