sunpeak 0.16.28 → 0.16.29
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/chatgpt/globals.css +27 -18
- 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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/simulator/index.cjs +1 -1
- package/dist/simulator/index.js +1 -1
- package/dist/{simulator-CmgNnWBO.js → simulator-C7mkK7Sz.js} +31 -32
- package/dist/simulator-C7mkK7Sz.js.map +1 -0
- package/dist/{simulator-BYIH-xqQ.cjs → simulator-DIVvI69i.cjs} +31 -32
- package/dist/simulator-DIVvI69i.cjs.map +1 -0
- package/dist/style.css +27 -18
- package/package.json +1 -1
- package/template/tests/e2e/map.spec.ts +4 -2
- package/dist/simulator-BYIH-xqQ.cjs.map +0 -1
- package/dist/simulator-CmgNnWBO.js.map +0 -1
package/dist/chatgpt/globals.css
CHANGED
|
@@ -938,10 +938,6 @@
|
|
|
938
938
|
width: calc(var(--spacing) * 40);
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
.w-56 {
|
|
942
|
-
width: calc(var(--spacing) * 56);
|
|
943
|
-
}
|
|
944
|
-
|
|
945
941
|
.w-\[18px\] {
|
|
946
942
|
width: 18px;
|
|
947
943
|
}
|
|
@@ -1056,10 +1052,6 @@
|
|
|
1056
1052
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1057
1053
|
}
|
|
1058
1054
|
|
|
1059
|
-
.grid-cols-\[1fr_auto_1fr\] {
|
|
1060
|
-
grid-template-columns: 1fr auto 1fr;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
1055
|
.grid-cols-\[2fr_1fr\] {
|
|
1064
1056
|
grid-template-columns: 2fr 1fr;
|
|
1065
1057
|
}
|
|
@@ -1100,10 +1092,6 @@
|
|
|
1100
1092
|
justify-content: flex-end;
|
|
1101
1093
|
}
|
|
1102
1094
|
|
|
1103
|
-
.justify-start {
|
|
1104
|
-
justify-content: flex-start;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
1095
|
.gap-0\.5 {
|
|
1108
1096
|
gap: calc(var(--spacing) * .5);
|
|
1109
1097
|
}
|
|
@@ -1224,8 +1212,12 @@
|
|
|
1224
1212
|
border-radius: 10px;
|
|
1225
1213
|
}
|
|
1226
1214
|
|
|
1227
|
-
.rounded-\[
|
|
1228
|
-
border-radius:
|
|
1215
|
+
.rounded-\[22px\] {
|
|
1216
|
+
border-radius: 22px;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.rounded-\[28px\] {
|
|
1220
|
+
border-radius: 28px;
|
|
1229
1221
|
}
|
|
1230
1222
|
|
|
1231
1223
|
.rounded-full {
|
|
@@ -1470,10 +1462,18 @@
|
|
|
1470
1462
|
padding: calc(var(--spacing) * 1.5);
|
|
1471
1463
|
}
|
|
1472
1464
|
|
|
1465
|
+
.p-1\.25 {
|
|
1466
|
+
padding: calc(var(--spacing) * 1.25);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1473
1469
|
.p-2 {
|
|
1474
1470
|
padding: calc(var(--spacing) * 2);
|
|
1475
1471
|
}
|
|
1476
1472
|
|
|
1473
|
+
.p-2\.5 {
|
|
1474
|
+
padding: calc(var(--spacing) * 2.5);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
1477
|
.p-3 {
|
|
1478
1478
|
padding: calc(var(--spacing) * 3);
|
|
1479
1479
|
}
|
|
@@ -1640,6 +1640,11 @@
|
|
|
1640
1640
|
font-size: 11px;
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
|
+
.leading-6 {
|
|
1644
|
+
--tw-leading: calc(var(--spacing) * 6);
|
|
1645
|
+
line-height: calc(var(--spacing) * 6);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1643
1648
|
.leading-none {
|
|
1644
1649
|
--tw-leading: 1;
|
|
1645
1650
|
line-height: 1;
|
|
@@ -1750,13 +1755,13 @@
|
|
|
1750
1755
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1751
1756
|
}
|
|
1752
1757
|
|
|
1753
|
-
.shadow-\[
|
|
1754
|
-
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color,
|
|
1758
|
+
.shadow-\[0px_0px_0px_1px_var\(--color-border-primary\)\,0px_4px_12px_rgba\(0\,0\,0\,0\.12\)\] {
|
|
1759
|
+
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color, var(--color-border-primary)), 0px 4px 12px var(--tw-shadow-color, #0000001f);
|
|
1755
1760
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1756
1761
|
}
|
|
1757
1762
|
|
|
1758
|
-
.shadow-\[
|
|
1759
|
-
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color,
|
|
1763
|
+
.shadow-\[0px_0px_0px_1px_var\(--color-border-primary\)\,0px_6px_20px_rgba\(0\,0\,0\,0\.1\)\] {
|
|
1764
|
+
--tw-shadow: 0px 0px 0px 1px var(--tw-shadow-color, var(--color-border-primary)), 0px 6px 20px var(--tw-shadow-color, #0000001a);
|
|
1760
1765
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1761
1766
|
}
|
|
1762
1767
|
|
|
@@ -2089,6 +2094,10 @@
|
|
|
2089
2094
|
}
|
|
2090
2095
|
|
|
2091
2096
|
@media (min-width: 48rem) {
|
|
2097
|
+
.md\:-start-6 {
|
|
2098
|
+
inset-inline-start: calc(var(--spacing) * -6);
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2092
2101
|
.md\:z-20 {
|
|
2093
2102
|
z-index: 20;
|
|
2094
2103
|
}
|
package/dist/chatgpt/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../chunk-9hOWP6kD.cjs");
|
|
3
3
|
require("../protocol-jbxhzcnS.cjs");
|
|
4
|
-
const require_simulator = require("../simulator-
|
|
4
|
+
const require_simulator = require("../simulator-DIVvI69i.cjs");
|
|
5
5
|
const require_discovery = require("../discovery-BxKCIgG5.cjs");
|
|
6
6
|
const require_simulator_url = require("../simulator-url-BDGD4vZD.cjs");
|
|
7
7
|
//#region src/chatgpt/index.ts
|
package/dist/chatgpt/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __exportAll } from "../chunk-D6g4UhsZ.js";
|
|
2
2
|
import "../protocol-DJmRaBzO.js";
|
|
3
|
-
import { _ as SCREEN_WIDTHS, d as ThemeProvider, f as useThemeContext, g as McpAppHost, h as extractResourceCSP, m as IframeResource, n as resolveServerToolResult, t as Simulator } from "../simulator-
|
|
3
|
+
import { _ as SCREEN_WIDTHS, d as ThemeProvider, f as useThemeContext, g as McpAppHost, h as extractResourceCSP, m as IframeResource, n as resolveServerToolResult, t as Simulator } from "../simulator-C7mkK7Sz.js";
|
|
4
4
|
import { a as extractResourceKey, c as findResourceKey, d as getComponentName, f as toPascalCase, i as createResourceExports, n as buildResourceMap, o as extractSimulationKey, r as buildSimulations, s as findResourceDirs, t as buildDevSimulations } from "../discovery-Du4LHrih.js";
|
|
5
5
|
import { t as createSimulatorUrl } from "../simulator-url-Bkxj43yT.js";
|
|
6
6
|
//#region src/chatgpt/index.ts
|
package/dist/claude/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../chunk-9hOWP6kD.cjs");
|
|
3
3
|
require("../protocol-jbxhzcnS.cjs");
|
|
4
|
-
const require_simulator = require("../simulator-
|
|
4
|
+
const require_simulator = require("../simulator-DIVvI69i.cjs");
|
|
5
5
|
exports.Simulator = require_simulator.Simulator;
|
package/dist/claude/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
3
3
|
const require_protocol = require("./protocol-jbxhzcnS.cjs");
|
|
4
4
|
const require_use_app = require("./use-app-D2h-aiyr.cjs");
|
|
5
|
-
const require_simulator = require("./simulator-
|
|
5
|
+
const require_simulator = require("./simulator-DIVvI69i.cjs");
|
|
6
6
|
const require_discovery = require("./discovery-BxKCIgG5.cjs");
|
|
7
7
|
const require_host_index = require("./host/index.cjs");
|
|
8
8
|
const require_simulator_index = require("./simulator/index.cjs");
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as literal, L as RequestIdSchema, Q as boolean, R as ResourceLinkSchema, U as ToolSchema, X as _undefined, Z as array, _ as ImplementationSchema, a as CallToolResultSchema, at as unknown, et as number, it as union, nt as record, p as EmbeddedResourceSchema, rt as string, s as ContentBlockSchema, tt as object } from "./protocol-DJmRaBzO.js";
|
|
2
2
|
import { $ as w, A as UX, B as g, C as PQ, D as T, E as S, F as _Q, G as m, H as jQ, I as a, J as p, K as n, L as b, M as W, N as WQ, O as TQ, P as _, Q as t, R as d, S as P, T as RX, U as k, V as h, W as l, X as r, Y as q, Z as s, _ as K, a as B, b as NQ, c as CQ, d as FQ, et as wQ, f as G, g as J, h as IQ, i as AQ, j as V, k as U, l as EQ, m as I, n as AppProvider, nt as z, o as BQ, p as GQ, q as o, r as A, rt as zQ, s as C, t as useApp, tt as x, u as F, v as L, w as R, x as O, y as LQ, z as e } from "./use-app-X7JbGskk.js";
|
|
3
|
-
import { x as DEFAULT_STYLE_VARIABLES } from "./simulator-
|
|
3
|
+
import { x as DEFAULT_STYLE_VARIABLES } from "./simulator-C7mkK7Sz.js";
|
|
4
4
|
import { i as createResourceExports, n as buildResourceMap } from "./discovery-Du4LHrih.js";
|
|
5
5
|
import { detectHost, detectPlatform, isChatGPT, isClaude } from "./host/index.js";
|
|
6
6
|
import { t as simulator_exports } from "./simulator/index.js";
|
package/dist/simulator/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../chunk-9hOWP6kD.cjs");
|
|
3
3
|
require("../protocol-jbxhzcnS.cjs");
|
|
4
|
-
const require_simulator = require("../simulator-
|
|
4
|
+
const require_simulator = require("../simulator-DIVvI69i.cjs");
|
|
5
5
|
const require_discovery = require("../discovery-BxKCIgG5.cjs");
|
|
6
6
|
const require_simulator_url = require("../simulator-url-BDGD4vZD.cjs");
|
|
7
7
|
//#region src/simulator/index.ts
|
package/dist/simulator/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __exportAll } from "../chunk-D6g4UhsZ.js";
|
|
2
2
|
import "../protocol-DJmRaBzO.js";
|
|
3
|
-
import { _ as SCREEN_WIDTHS, a as SidebarControl, b as registerHostShell, c as SidebarTextarea, d as ThemeProvider, f as useThemeContext, g as McpAppHost, h as extractResourceCSP, i as SidebarCollapsibleControl, l as SidebarToggle, m as IframeResource, n as resolveServerToolResult, o as SidebarInput, p as useSimulatorState, r as SidebarCheckbox, s as SidebarSelect, t as Simulator, u as SimpleSidebar, v as getHostShell, y as getRegisteredHosts } from "../simulator-
|
|
3
|
+
import { _ as SCREEN_WIDTHS, a as SidebarControl, b as registerHostShell, c as SidebarTextarea, d as ThemeProvider, f as useThemeContext, g as McpAppHost, h as extractResourceCSP, i as SidebarCollapsibleControl, l as SidebarToggle, m as IframeResource, n as resolveServerToolResult, o as SidebarInput, p as useSimulatorState, r as SidebarCheckbox, s as SidebarSelect, t as Simulator, u as SimpleSidebar, v as getHostShell, y as getRegisteredHosts } from "../simulator-C7mkK7Sz.js";
|
|
4
4
|
import { a as extractResourceKey, c as findResourceKey, d as getComponentName, f as toPascalCase, i as createResourceExports, n as buildResourceMap, o as extractSimulationKey, r as buildSimulations, s as findResourceDirs, t as buildDevSimulations } from "../discovery-Du4LHrih.js";
|
|
5
5
|
import { t as createSimulatorUrl } from "../simulator-url-Bkxj43yT.js";
|
|
6
6
|
//#region src/simulator/index.ts
|
|
@@ -172,21 +172,15 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
172
172
|
style: { maxWidth: containerWidth },
|
|
173
173
|
children: [
|
|
174
174
|
/* @__PURE__ */ jsxs("div", {
|
|
175
|
-
className: "z-
|
|
176
|
-
style: {
|
|
177
|
-
borderColor: "var(--color-border-primary)",
|
|
178
|
-
backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))"
|
|
179
|
-
},
|
|
175
|
+
className: "z-20 flex h-[3.25rem] items-center justify-between p-2 pointer-events-auto",
|
|
176
|
+
style: { backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))" },
|
|
180
177
|
children: [
|
|
181
|
-
/* @__PURE__ */ jsx("
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
type: "button",
|
|
188
|
-
children: /* @__PURE__ */ jsx(CloseIcon$1, {})
|
|
189
|
-
})
|
|
178
|
+
/* @__PURE__ */ jsx("button", {
|
|
179
|
+
onClick: handleClose,
|
|
180
|
+
"aria-label": "Close",
|
|
181
|
+
className: "h-7 w-7 flex items-center justify-center rounded-lg transition-colors hover:opacity-70",
|
|
182
|
+
type: "button",
|
|
183
|
+
children: /* @__PURE__ */ jsx(CloseIcon$1, {})
|
|
190
184
|
}),
|
|
191
185
|
isDesktop && /* @__PURE__ */ jsx("div", {
|
|
192
186
|
className: "flex items-center justify-center text-base",
|
|
@@ -203,8 +197,7 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
203
197
|
style: {
|
|
204
198
|
maskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
205
199
|
WebkitMaskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
206
|
-
|
|
207
|
-
WebkitBackdropFilter: "blur(16px)"
|
|
200
|
+
backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))"
|
|
208
201
|
}
|
|
209
202
|
}), /* @__PURE__ */ jsx("div", {
|
|
210
203
|
className: "max-w-[40rem] min-[1440px]:max-w-[48rem] mx-auto px-4 pt-4 pb-4 pointer-events-auto",
|
|
@@ -215,11 +208,12 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
215
208
|
name: "userInput",
|
|
216
209
|
disabled: true,
|
|
217
210
|
placeholder: "Message sunpeak.ai",
|
|
218
|
-
className: "w-full rounded-
|
|
211
|
+
className: "w-full rounded-[28px] p-2.5 shadow-sm",
|
|
219
212
|
style: {
|
|
220
213
|
backgroundColor: "var(--sim-bg-reply-input, var(--color-background-secondary))",
|
|
221
214
|
color: "var(--color-text-primary)",
|
|
222
|
-
border: "
|
|
215
|
+
border: "none",
|
|
216
|
+
cornerShape: "superellipse"
|
|
223
217
|
}
|
|
224
218
|
})
|
|
225
219
|
})
|
|
@@ -260,8 +254,11 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
260
254
|
children: /* @__PURE__ */ jsx("div", {
|
|
261
255
|
className: "flex w-full flex-col gap-1 empty:hidden items-end",
|
|
262
256
|
children: /* @__PURE__ */ jsx("div", {
|
|
263
|
-
className: "relative rounded-[
|
|
264
|
-
style: {
|
|
257
|
+
className: "relative rounded-[22px] px-4 py-2.5 leading-6 max-w-[70%]",
|
|
258
|
+
style: {
|
|
259
|
+
backgroundColor: "var(--sim-bg-user-bubble, var(--color-background-tertiary))",
|
|
260
|
+
cornerShape: "superellipse"
|
|
261
|
+
},
|
|
265
262
|
children: /* @__PURE__ */ jsx("div", {
|
|
266
263
|
className: "whitespace-pre-wrap",
|
|
267
264
|
children: userMessage
|
|
@@ -312,17 +309,17 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
312
309
|
ref: setContentRef,
|
|
313
310
|
className: isPip ? "no-scrollbar @w-xl/main:top-4 fixed start-4 end-4 top-12 z-50 mx-auto max-w-[40rem] lg:max-w-[48rem] sm:start-0 sm:end-0 sm:top-[3.25rem] sm:w-full overflow-visible" : isFullscreen ? "no-scrollbar fixed inset-x-0 top-[3.25rem] bottom-0 z-50 mx-auto" : "no-scrollbar relative mb-2 @w-sm/main:w-full mx-0 max-sm:-mx-[1rem] max-sm:w-[100cqw] max-sm:overflow-hidden overflow-visible",
|
|
314
311
|
style: {
|
|
315
|
-
...isPip ? { maxHeight: "
|
|
312
|
+
...isPip ? { maxHeight: "calc(50dvh - 38px)" } : {},
|
|
316
313
|
...isFullscreen ? { maxWidth: containerWidth } : {}
|
|
317
314
|
},
|
|
318
315
|
children: [isPip && /* @__PURE__ */ jsx("button", {
|
|
319
316
|
onClick: handleClose,
|
|
320
|
-
className: "absolute -start-2 -top-1.5 z-10 rounded-full bg-[#3a3a3a] p-1.
|
|
317
|
+
className: "absolute -start-2 md:-start-6 -top-1.5 z-10 rounded-full bg-[#3a3a3a] p-1.25 text-white shadow-[0px_0px_0px_1px_var(--color-border-primary),0px_4px_12px_rgba(0,0,0,0.12)] hover:bg-[#6a6a6a]",
|
|
321
318
|
"aria-label": "Close picture-in-picture",
|
|
322
319
|
type: "button",
|
|
323
320
|
children: /* @__PURE__ */ jsx(CloseIcon$1, { className: "h-4 w-4" })
|
|
324
321
|
}, "pip-close"), /* @__PURE__ */ jsx("div", {
|
|
325
|
-
className: isPip ? "relative overflow-hidden h-full rounded-2xl sm:rounded-3xl shadow-[
|
|
322
|
+
className: isPip ? "relative overflow-hidden h-full rounded-2xl sm:rounded-3xl shadow-[0px_0px_0px_1px_var(--color-border-primary),0px_6px_20px_rgba(0,0,0,0.1)] md:-mx-4" : "relative overflow-hidden h-full",
|
|
326
323
|
children: /* @__PURE__ */ jsx("div", {
|
|
327
324
|
className: "h-full w-full max-w-full",
|
|
328
325
|
style: { ...isPip ? {
|
|
@@ -349,8 +346,7 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
349
346
|
style: {
|
|
350
347
|
maskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
351
348
|
WebkitMaskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
352
|
-
|
|
353
|
-
WebkitBackdropFilter: "blur(16px)"
|
|
349
|
+
backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))"
|
|
354
350
|
}
|
|
355
351
|
}), /* @__PURE__ */ jsx("div", {
|
|
356
352
|
className: "max-w-[40rem] min-[1440px]:max-w-[48rem] mx-auto px-4 pt-4 pb-4 pointer-events-auto",
|
|
@@ -417,7 +413,7 @@ registerHostShell({
|
|
|
417
413
|
"--sim-bg-sidebar": "light-dark(#ffffff, #212121)",
|
|
418
414
|
"--sim-bg-conversation": "light-dark(#ffffff, #212121)",
|
|
419
415
|
"--sim-bg-user-bubble": "light-dark(rgba(233,233,233,0.5), rgba(50,50,50,0.85))",
|
|
420
|
-
"--sim-bg-reply-input": "light-dark(#ffffff, #
|
|
416
|
+
"--sim-bg-reply-input": "light-dark(#ffffff, #303030)"
|
|
421
417
|
}
|
|
422
418
|
});
|
|
423
419
|
//#endregion
|
|
@@ -2304,10 +2300,13 @@ function useSimulatorState({ simulations, defaultHost = "chatgpt" }) {
|
|
|
2304
2300
|
height: typeof window !== "undefined" ? window.innerHeight - 52 : 800,
|
|
2305
2301
|
width: measuredContentWidth ?? (typeof window !== "undefined" ? window.innerWidth : 1280)
|
|
2306
2302
|
};
|
|
2307
|
-
if (displayMode === "pip")
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2303
|
+
if (displayMode === "pip") {
|
|
2304
|
+
const viewportH = typeof window !== "undefined" ? window.innerHeight : 800;
|
|
2305
|
+
return {
|
|
2306
|
+
maxHeight: Math.round(viewportH * .5 - 38),
|
|
2307
|
+
...measuredContentWidth != null ? { maxWidth: measuredContentWidth } : {}
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
2311
2310
|
if (measuredContentWidth != null) return { maxWidth: measuredContentWidth };
|
|
2312
2311
|
}, [
|
|
2313
2312
|
containerHeight,
|
|
@@ -2523,7 +2522,7 @@ var useThemeContext = () => {
|
|
|
2523
2522
|
};
|
|
2524
2523
|
//#endregion
|
|
2525
2524
|
//#region src/simulator/simple-sidebar.tsx
|
|
2526
|
-
var DEFAULT_SIDEBAR_WIDTH =
|
|
2525
|
+
var DEFAULT_SIDEBAR_WIDTH = 260;
|
|
2527
2526
|
function ChevronRightIcon() {
|
|
2528
2527
|
return /* @__PURE__ */ jsx("svg", {
|
|
2529
2528
|
width: "1em",
|
|
@@ -3572,4 +3571,4 @@ function Simulator({ children, simulations = {}, appName = "Sunpeak", appIcon, d
|
|
|
3572
3571
|
//#endregion
|
|
3573
3572
|
export { SCREEN_WIDTHS as _, SidebarControl as a, registerHostShell as b, SidebarTextarea as c, ThemeProvider as d, useThemeContext as f, McpAppHost as g, extractResourceCSP as h, SidebarCollapsibleControl as i, SidebarToggle as l, IframeResource as m, resolveServerToolResult as n, SidebarInput as o, useSimulatorState as p, SidebarCheckbox as r, SidebarSelect as s, Simulator as t, SimpleSidebar as u, getHostShell as v, DEFAULT_STYLE_VARIABLES as x, getRegisteredHosts as y };
|
|
3574
3573
|
|
|
3575
|
-
//# sourceMappingURL=simulator-
|
|
3574
|
+
//# sourceMappingURL=simulator-C7mkK7Sz.js.map
|