sunpeak 0.4.2 → 0.4.4
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/README.md +2 -2
- package/bin/sunpeak.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/template/README.md +1 -1
- package/template/dev/main.tsx +1 -1
- package/template/mcp/server.ts +5 -9
- package/template/src/components/album/albums.tsx +7 -7
- package/template/src/components/apps/AlbumsApp.tsx +13 -0
- package/template/src/{App.tsx → components/apps/App.tsx} +2 -2
- package/template/src/components/{simulations/carousel-simulation.tsx → apps/PlacesApp.tsx} +11 -17
- package/template/src/components/apps/active-app.ts +11 -0
- package/template/src/components/apps/index.ts +3 -0
- package/template/src/components/card/card.tsx +4 -0
- package/template/src/components/index.ts +1 -1
- package/template/src/index.chatgpt.tsx +4 -3
- package/template/src/index.ts +0 -1
- package/template/src/simulations/albums-simulation.ts +129 -0
- package/template/src/simulations/app-configs.ts +30 -0
- package/template/src/simulations/app-simulation.ts +15 -0
- package/template/src/simulations/carousel-simulation.ts +66 -0
- package/template/src/simulations/index.ts +16 -0
- package/template/src/simulations/simulations.ts +74 -0
- package/template/data/albums.json +0 -112
- package/template/data/places.json +0 -49
- package/template/src/components/simulations/albums-simulation.tsx +0 -20
- package/template/src/components/simulations/app-simulation.tsx +0 -13
- package/template/src/components/simulations/index.tsx +0 -14
package/dist/index.js
CHANGED
|
@@ -3377,9 +3377,9 @@ const SCREEN_WIDTHS = {
|
|
|
3377
3377
|
function Conversation({
|
|
3378
3378
|
children,
|
|
3379
3379
|
screenWidth,
|
|
3380
|
-
appName = "
|
|
3380
|
+
appName = "sunpeak",
|
|
3381
3381
|
appIcon,
|
|
3382
|
-
userMessage = "
|
|
3382
|
+
userMessage = "What have you got for me today?"
|
|
3383
3383
|
}) {
|
|
3384
3384
|
const displayMode = useDisplayMode() ?? "inline";
|
|
3385
3385
|
const containerWidth = screenWidth === "full" ? "100%" : `${SCREEN_WIDTHS[screenWidth]}px`;
|
|
@@ -3387,7 +3387,7 @@ function Conversation({
|
|
|
3387
3387
|
return /* @__PURE__ */ jsx("div", { className: "flex flex-col bg-surface w-full flex-1", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-auto", children }) });
|
|
3388
3388
|
}
|
|
3389
3389
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col bg-surface w-full h-full flex-1", children: [
|
|
3390
|
-
/* @__PURE__ */ jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsx("span", { className: "text-foreground", children: "
|
|
3390
|
+
/* @__PURE__ */ jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsx("span", { className: "text-foreground", children: "SimGPT" }) }),
|
|
3391
3391
|
/* @__PURE__ */ jsxs(
|
|
3392
3392
|
"div",
|
|
3393
3393
|
{
|
|
@@ -3458,7 +3458,7 @@ function Conversation({
|
|
|
3458
3458
|
type: "text",
|
|
3459
3459
|
name: "userInput",
|
|
3460
3460
|
disabled: true,
|
|
3461
|
-
placeholder: "Message
|
|
3461
|
+
placeholder: "Message SimGPT",
|
|
3462
3462
|
className: "w-full bg-[var(--color-background-primary)] dark:bg-[#303030] text-secondary-foreground placeholder:text-muted-foreground rounded-3xl px-5 py-3 pr-12 shadow-md light:border border-[#0000000f]"
|
|
3463
3463
|
}
|
|
3464
3464
|
) }) }) })
|