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.
- package/bin/commands/inspect.mjs +2 -1
- package/bin/commands/new.mjs +11 -8
- package/bin/commands/test-init.mjs +1 -0
- package/bin/commands/test.mjs +8 -4
- package/bin/lib/resolve-bin.mjs +18 -0
- package/bin/lib/test/base-config.mjs +3 -1
- package/bin/lib/test/test-config.mjs +11 -2
- package/bin/sunpeak.js +4 -2
- package/dist/chatgpt/index.cjs +1 -1
- package/dist/chatgpt/index.js +1 -1
- package/dist/claude/index.cjs +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/embed.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/{inspector-WIO0nm2Q.cjs → inspector-Cl5w_7yQ.cjs} +7 -4
- package/dist/inspector-Cl5w_7yQ.cjs.map +1 -0
- package/dist/{inspector-CFSIZYOm.js → inspector-DPJeSQAd.js} +7 -4
- package/dist/inspector-DPJeSQAd.js.map +1 -0
- package/dist/protocol-DVkrOIAq.cjs.map +1 -1
- package/dist/protocol-fGgeFIiL.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +16 -15
- package/template/dist/albums/albums.html +4 -4
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +7 -7
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +7 -7
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +4 -4
- package/template/dist/review/review.json +1 -1
- package/template/node_modules/.bin/playwright +2 -2
- package/template/node_modules/.bin/vite +2 -2
- package/template/node_modules/.bin/vitest +2 -2
- package/template/node_modules/.vite/deps/_metadata.json +4 -4
- package/template/node_modules/.vite-mcp/deps/_metadata.json +21 -21
- package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js +2 -1
- package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/external-D8EJN_Cc.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +114 -87
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/tailwind-merge.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/vitest.js +40 -24
- package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
- package/template/package.json +6 -5
- package/template/tests/e2e/carousel.spec.ts +9 -9
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-chatgpt-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-claude-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-chatgpt-darwin.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-claude-darwin.png +0 -0
- package/template/vitest.config.ts +2 -0
- package/dist/inspector-CFSIZYOm.js.map +0 -1
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
9653
|
+
//# sourceMappingURL=inspector-DPJeSQAd.js.map
|