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
|
@@ -173,21 +173,15 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
173
173
|
style: { maxWidth: containerWidth },
|
|
174
174
|
children: [
|
|
175
175
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
176
|
-
className: "z-
|
|
177
|
-
style: {
|
|
178
|
-
borderColor: "var(--color-border-primary)",
|
|
179
|
-
backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))"
|
|
180
|
-
},
|
|
176
|
+
className: "z-20 flex h-[3.25rem] items-center justify-between p-2 pointer-events-auto",
|
|
177
|
+
style: { backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))" },
|
|
181
178
|
children: [
|
|
182
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
type: "button",
|
|
189
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon$1, {})
|
|
190
|
-
})
|
|
179
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
180
|
+
onClick: handleClose,
|
|
181
|
+
"aria-label": "Close",
|
|
182
|
+
className: "h-7 w-7 flex items-center justify-center rounded-lg transition-colors hover:opacity-70",
|
|
183
|
+
type: "button",
|
|
184
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon$1, {})
|
|
191
185
|
}),
|
|
192
186
|
isDesktop && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
193
187
|
className: "flex items-center justify-center text-base",
|
|
@@ -204,8 +198,7 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
204
198
|
style: {
|
|
205
199
|
maskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
206
200
|
WebkitMaskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
207
|
-
|
|
208
|
-
WebkitBackdropFilter: "blur(16px)"
|
|
201
|
+
backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))"
|
|
209
202
|
}
|
|
210
203
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
211
204
|
className: "max-w-[40rem] min-[1440px]:max-w-[48rem] mx-auto px-4 pt-4 pb-4 pointer-events-auto",
|
|
@@ -216,11 +209,12 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
216
209
|
name: "userInput",
|
|
217
210
|
disabled: true,
|
|
218
211
|
placeholder: "Message sunpeak.ai",
|
|
219
|
-
className: "w-full rounded-
|
|
212
|
+
className: "w-full rounded-[28px] p-2.5 shadow-sm",
|
|
220
213
|
style: {
|
|
221
214
|
backgroundColor: "var(--sim-bg-reply-input, var(--color-background-secondary))",
|
|
222
215
|
color: "var(--color-text-primary)",
|
|
223
|
-
border: "
|
|
216
|
+
border: "none",
|
|
217
|
+
cornerShape: "superellipse"
|
|
224
218
|
}
|
|
225
219
|
})
|
|
226
220
|
})
|
|
@@ -261,8 +255,11 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
261
255
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
262
256
|
className: "flex w-full flex-col gap-1 empty:hidden items-end",
|
|
263
257
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
264
|
-
className: "relative rounded-[
|
|
265
|
-
style: {
|
|
258
|
+
className: "relative rounded-[22px] px-4 py-2.5 leading-6 max-w-[70%]",
|
|
259
|
+
style: {
|
|
260
|
+
backgroundColor: "var(--sim-bg-user-bubble, var(--color-background-tertiary))",
|
|
261
|
+
cornerShape: "superellipse"
|
|
262
|
+
},
|
|
266
263
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
267
264
|
className: "whitespace-pre-wrap",
|
|
268
265
|
children: userMessage
|
|
@@ -313,17 +310,17 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
313
310
|
ref: setContentRef,
|
|
314
311
|
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",
|
|
315
312
|
style: {
|
|
316
|
-
...isPip ? { maxHeight: "
|
|
313
|
+
...isPip ? { maxHeight: "calc(50dvh - 38px)" } : {},
|
|
317
314
|
...isFullscreen ? { maxWidth: containerWidth } : {}
|
|
318
315
|
},
|
|
319
316
|
children: [isPip && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
320
317
|
onClick: handleClose,
|
|
321
|
-
className: "absolute -start-2 -top-1.5 z-10 rounded-full bg-[#3a3a3a] p-1.
|
|
318
|
+
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]",
|
|
322
319
|
"aria-label": "Close picture-in-picture",
|
|
323
320
|
type: "button",
|
|
324
321
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon$1, { className: "h-4 w-4" })
|
|
325
322
|
}, "pip-close"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
326
|
-
className: isPip ? "relative overflow-hidden h-full rounded-2xl sm:rounded-3xl shadow-[
|
|
323
|
+
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",
|
|
327
324
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
328
325
|
className: "h-full w-full max-w-full",
|
|
329
326
|
style: { ...isPip ? {
|
|
@@ -350,8 +347,7 @@ function Conversation({ children, screenWidth, displayMode, platform, onRequestD
|
|
|
350
347
|
style: {
|
|
351
348
|
maskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
352
349
|
WebkitMaskImage: "linear-gradient(to bottom, transparent 0%, black 50%)",
|
|
353
|
-
|
|
354
|
-
WebkitBackdropFilter: "blur(16px)"
|
|
350
|
+
backgroundColor: "var(--sim-bg-conversation, var(--color-background-primary))"
|
|
355
351
|
}
|
|
356
352
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
357
353
|
className: "max-w-[40rem] min-[1440px]:max-w-[48rem] mx-auto px-4 pt-4 pb-4 pointer-events-auto",
|
|
@@ -418,7 +414,7 @@ registerHostShell({
|
|
|
418
414
|
"--sim-bg-sidebar": "light-dark(#ffffff, #212121)",
|
|
419
415
|
"--sim-bg-conversation": "light-dark(#ffffff, #212121)",
|
|
420
416
|
"--sim-bg-user-bubble": "light-dark(rgba(233,233,233,0.5), rgba(50,50,50,0.85))",
|
|
421
|
-
"--sim-bg-reply-input": "light-dark(#ffffff, #
|
|
417
|
+
"--sim-bg-reply-input": "light-dark(#ffffff, #303030)"
|
|
422
418
|
}
|
|
423
419
|
});
|
|
424
420
|
//#endregion
|
|
@@ -2305,10 +2301,13 @@ function useSimulatorState({ simulations, defaultHost = "chatgpt" }) {
|
|
|
2305
2301
|
height: typeof window !== "undefined" ? window.innerHeight - 52 : 800,
|
|
2306
2302
|
width: measuredContentWidth ?? (typeof window !== "undefined" ? window.innerWidth : 1280)
|
|
2307
2303
|
};
|
|
2308
|
-
if (displayMode === "pip")
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2304
|
+
if (displayMode === "pip") {
|
|
2305
|
+
const viewportH = typeof window !== "undefined" ? window.innerHeight : 800;
|
|
2306
|
+
return {
|
|
2307
|
+
maxHeight: Math.round(viewportH * .5 - 38),
|
|
2308
|
+
...measuredContentWidth != null ? { maxWidth: measuredContentWidth } : {}
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2312
2311
|
if (measuredContentWidth != null) return { maxWidth: measuredContentWidth };
|
|
2313
2312
|
}, [
|
|
2314
2313
|
containerHeight,
|
|
@@ -2524,7 +2523,7 @@ var useThemeContext = () => {
|
|
|
2524
2523
|
};
|
|
2525
2524
|
//#endregion
|
|
2526
2525
|
//#region src/simulator/simple-sidebar.tsx
|
|
2527
|
-
var DEFAULT_SIDEBAR_WIDTH =
|
|
2526
|
+
var DEFAULT_SIDEBAR_WIDTH = 260;
|
|
2528
2527
|
function ChevronRightIcon() {
|
|
2529
2528
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
2530
2529
|
width: "1em",
|
|
@@ -3698,4 +3697,4 @@ Object.defineProperty(exports, "useThemeContext", {
|
|
|
3698
3697
|
}
|
|
3699
3698
|
});
|
|
3700
3699
|
|
|
3701
|
-
//# sourceMappingURL=simulator-
|
|
3700
|
+
//# sourceMappingURL=simulator-DIVvI69i.cjs.map
|