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
@@ -7376,7 +7376,8 @@ function SimpleSidebar({ children, controls, rightControls, sidebarWidth, rightS
7376
7376
  React.useEffect(() => {
7377
7377
  if (!isResizing) return;
7378
7378
  const handleMouseMove = (e) => {
7379
- setSidebarWidth(clampSidebarWidth(e.clientX, window.innerWidth));
7379
+ const newWidth = clampSidebarWidth(e.clientX, window.innerWidth);
7380
+ setSidebarWidth(newWidth);
7380
7381
  };
7381
7382
  const handleMouseUp = () => {
7382
7383
  setIsResizing(false);
@@ -7391,7 +7392,8 @@ function SimpleSidebar({ children, controls, rightControls, sidebarWidth, rightS
7391
7392
  React.useEffect(() => {
7392
7393
  if (!isResizingRight) return;
7393
7394
  const handleMouseMove = (e) => {
7394
- setRightSidebarWidth(clampSidebarWidth(window.innerWidth - e.clientX, window.innerWidth));
7395
+ const newWidth = clampSidebarWidth(window.innerWidth - e.clientX, window.innerWidth);
7396
+ setRightSidebarWidth(newWidth);
7395
7397
  };
7396
7398
  const handleMouseUp = () => {
7397
7399
  setIsResizingRight(false);
@@ -8204,7 +8206,8 @@ function Inspector({ children, app, simulations: initialSimulationsProp = EMPTY_
8204
8206
  usesLocalModelEndpoints
8205
8207
  ]);
8206
8208
  const handleResetModelConversation = React.useCallback(() => {
8207
- modelConversationIdRef.current = createModelConversationId();
8209
+ const nextConversationId = createModelConversationId();
8210
+ modelConversationIdRef.current = nextConversationId;
8208
8211
  setChatMessages([]);
8209
8212
  setChatInput("");
8210
8213
  setChatStatus("");
@@ -9647,4 +9650,4 @@ function Inspector({ children, app, simulations: initialSimulationsProp = EMPTY_
9647
9650
  //#endregion
9648
9651
  export { McpAppHost as C, registerHostShell as D, getRegisteredHosts as E, cn as O, extractResourceCSP as S, getHostShell as T, DEVICE_PRESETS as _, SidebarCollapsibleControl as a, isDevicePresetSelection as b, SidebarSelect as c, SimpleSidebar as d, ThemeProvider as f, CUSTOM_DEVICE_PRESET as g, useInspectorState as h, SidebarCheckbox as i, DEFAULT_STYLE_VARIABLES as k, SidebarTextarea as l, useMcpConnection as m, flattenAppToSimulations as n, SidebarControl as o, useThemeContext as p, resolveServerToolResult as r, SidebarInput as s, Inspector as t, SidebarToggle as u, DEVICE_PRESET_BY_ID as v, SCREEN_WIDTHS as w, IframeResource as x, getDevicePreset as y };
9649
9652
 
9650
- //# sourceMappingURL=inspector-CFSIZYOm.js.map
9653
+ //# sourceMappingURL=inspector-DPJeSQAd.js.map