sunpeak 0.5.14 → 0.5.15
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 +5 -0
- package/dist/index.cjs +17 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -25
- package/dist/index.js.map +1 -1
- package/dist/style.css +4 -0
- package/package.json +1 -1
- package/template/dist/chatgpt/albums.js +1 -1
- package/template/dist/chatgpt/carousel.js +1 -1
- package/template/dist/chatgpt/counter.js +1 -1
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +4 -4
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +6 -6
- package/template/node_modules/.vite/deps/_metadata.json +23 -23
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
package/dist/chatgpt/globals.css
CHANGED
|
@@ -9,3 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
/* Configure dark mode to use data-theme attribute (OpenAI SDK standard) */
|
|
11
11
|
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
12
|
+
|
|
13
|
+
/* Custom utilities that use OpenAI SDK color variables */
|
|
14
|
+
@utility bg-sidebar {
|
|
15
|
+
background-color: var(--color-surface-secondary);
|
|
16
|
+
}
|
package/dist/index.cjs
CHANGED
|
@@ -7378,8 +7378,8 @@ const Segment = ({ children, ...restProps }) => {
|
|
|
7378
7378
|
SegmentedControl.Option = Segment;
|
|
7379
7379
|
function SimpleSidebar({ children, controls }) {
|
|
7380
7380
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-screen w-full overflow-hidden", children: [
|
|
7381
|
-
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: "max-md:hidden md:flex w-56 flex-col border-r border-subtle bg-
|
|
7382
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xs font-semibold sticky top-0 bg-
|
|
7381
|
+
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: "max-md:hidden md:flex w-56 flex-col border-r border-subtle bg-sidebar h-screen overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7382
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xs font-semibold sticky top-0 bg-sidebar z-10", children: "Controls" }),
|
|
7383
7383
|
controls
|
|
7384
7384
|
] }) }) }) }),
|
|
7385
7385
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-auto h-screen", children })
|
|
@@ -10536,7 +10536,7 @@ function Conversation({
|
|
|
10536
10536
|
{
|
|
10537
10537
|
onClick: handleClose,
|
|
10538
10538
|
"aria-label": "Close",
|
|
10539
|
-
className: "h-7 w-7 flex items-center justify-center hover:bg-subtle rounded-md transition-colors",
|
|
10539
|
+
className: "h-7 w-7 flex items-center justify-center hover:bg-subtle rounded-md transition-colors text-primary",
|
|
10540
10540
|
type: "button",
|
|
10541
10541
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10542
10542
|
"svg",
|
|
@@ -10551,7 +10551,7 @@ function Conversation({
|
|
|
10551
10551
|
)
|
|
10552
10552
|
}
|
|
10553
10553
|
) }),
|
|
10554
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-
|
|
10554
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-primary flex items-center justify-center text-base", children: appName }),
|
|
10555
10555
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end" })
|
|
10556
10556
|
] }),
|
|
10557
10557
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative overflow-hidden flex-1", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full w-full max-w-full overflow-auto", children }) }),
|
|
@@ -10568,7 +10568,7 @@ function Conversation({
|
|
|
10568
10568
|
] });
|
|
10569
10569
|
}
|
|
10570
10570
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col bg-surface w-full h-full flex-1", children: [
|
|
10571
|
-
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
10571
|
+
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: "SimGPT" }) }),
|
|
10572
10572
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10573
10573
|
"div",
|
|
10574
10574
|
{
|
|
@@ -10576,29 +10576,21 @@ function Conversation({
|
|
|
10576
10576
|
style: { maxWidth: containerWidth },
|
|
10577
10577
|
children: [
|
|
10578
10578
|
/* @__PURE__ */ jsxRuntime.jsxs("main", { className: "flex-1 overflow-y-auto overflow-x-hidden", children: [
|
|
10579
|
+
/* @__PURE__ */ jsxRuntime.jsxs("article", { className: "text-primary w-full focus:outline-none", dir: "auto", "data-turn": "user", children: [
|
|
10580
|
+
/* @__PURE__ */ jsxRuntime.jsx("h5", { className: "sr-only", children: "You said:" }),
|
|
10581
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base my-auto mx-auto pt-12 px-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[48rem] mx-auto flex-1 relative flex w-full min-w-0 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex max-w-full flex-col grow", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10582
|
+
"div",
|
|
10583
|
+
{
|
|
10584
|
+
"data-message-author-role": "user",
|
|
10585
|
+
className: "min-h-8 relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal",
|
|
10586
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full flex-col gap-1 empty:hidden items-end", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-[var(--color-background-primary-soft)] relative rounded-[18px] px-4 py-3 max-w-[70%]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "whitespace-pre-wrap", children: userMessage }) }) })
|
|
10587
|
+
}
|
|
10588
|
+
) }) }) })
|
|
10589
|
+
] }),
|
|
10579
10590
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10580
10591
|
"article",
|
|
10581
10592
|
{
|
|
10582
|
-
className: "text-
|
|
10583
|
-
dir: "auto",
|
|
10584
|
-
"data-turn": "user",
|
|
10585
|
-
children: [
|
|
10586
|
-
/* @__PURE__ */ jsxRuntime.jsx("h5", { className: "sr-only", children: "You said:" }),
|
|
10587
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base my-auto mx-auto pt-12 px-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[48rem] mx-auto flex-1 relative flex w-full min-w-0 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex max-w-full flex-col grow", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10588
|
-
"div",
|
|
10589
|
-
{
|
|
10590
|
-
"data-message-author-role": "user",
|
|
10591
|
-
className: "min-h-8 relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal",
|
|
10592
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full flex-col gap-1 empty:hidden items-end", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-[var(--color-background-primary-soft)] relative rounded-[18px] px-4 py-3 max-w-[70%]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "whitespace-pre-wrap", children: userMessage }) }) })
|
|
10593
|
-
}
|
|
10594
|
-
) }) }) })
|
|
10595
|
-
]
|
|
10596
|
-
}
|
|
10597
|
-
),
|
|
10598
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10599
|
-
"article",
|
|
10600
|
-
{
|
|
10601
|
-
className: "text-foreground w-full focus:outline-none",
|
|
10593
|
+
className: "text-primary w-full focus:outline-none",
|
|
10602
10594
|
dir: "auto",
|
|
10603
10595
|
"data-turn": "assistant",
|
|
10604
10596
|
children: [
|