sunpeak 0.6.1 → 0.6.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/bin/sunpeak.js +129 -6
- package/dist/chatgpt/conversation.d.ts +2 -1
- package/dist/index.cjs +24 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp/entry.cjs +2 -2
- package/dist/mcp/entry.cjs.map +1 -1
- package/dist/mcp/entry.js +2 -2
- package/dist/mcp/entry.js.map +1 -1
- package/dist/mcp/index.cjs +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/{server-DpriZ4jT.cjs → server-CQGbJWbk.cjs} +17 -8
- package/dist/{server-DpriZ4jT.cjs.map → server-CQGbJWbk.cjs.map} +1 -1
- package/dist/{server-SBlanUcf.js → server-DGCvp1RA.js} +17 -8
- package/dist/{server-SBlanUcf.js.map → server-DGCvp1RA.js.map} +1 -1
- package/dist/style.css +4 -0
- package/package.json +1 -1
- package/template/.sunpeak/dev.tsx +1 -1
- package/template/dist/chatgpt/albums.js +2 -2
- 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_Button.js +2 -2
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +9 -9
- package/template/node_modules/.vite/deps/_metadata.json +22 -22
- package/template/node_modules/.vite/deps/{chunk-DQAZDQU3.js → chunk-EVJ3DVH5.js} +5 -5
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/template/src/components/album/album-carousel.test.tsx +84 -0
- package/template/src/components/album/album-carousel.tsx +168 -0
- package/template/src/components/album/albums.test.tsx +2 -2
- package/template/src/components/album/albums.tsx +3 -3
- package/template/src/components/album/index.ts +1 -0
- package/template/src/components/carousel/index.ts +1 -0
- package/template/src/components/index.ts +0 -1
- package/template/src/resources/carousel-resource.test.tsx +1 -4
- package/template/src/resources/carousel-resource.tsx +1 -2
- package/template/src/components/card/index.ts +0 -1
- /package/template/node_modules/.vite/deps/{chunk-DQAZDQU3.js.map → chunk-EVJ3DVH5.js.map} +0 -0
- /package/template/src/components/{card → carousel}/card.test.tsx +0 -0
- /package/template/src/components/{card → carousel}/card.tsx +0 -0
package/dist/index.js
CHANGED
|
@@ -7553,9 +7553,10 @@ const SCREEN_WIDTHS = {
|
|
|
7553
7553
|
function Conversation({
|
|
7554
7554
|
children,
|
|
7555
7555
|
screenWidth,
|
|
7556
|
-
appName = "Sunpeak
|
|
7556
|
+
appName = "Sunpeak",
|
|
7557
7557
|
appIcon,
|
|
7558
|
-
userMessage = "What have you got for me today?"
|
|
7558
|
+
userMessage = "What have you got for me today?",
|
|
7559
|
+
resourceMeta
|
|
7559
7560
|
}) {
|
|
7560
7561
|
const displayMode = useDisplayMode() ?? "inline";
|
|
7561
7562
|
const api = useWidgetAPI();
|
|
@@ -7589,7 +7590,25 @@ function Conversation({
|
|
|
7589
7590
|
}
|
|
7590
7591
|
) }),
|
|
7591
7592
|
/* @__PURE__ */ jsx("div", { className: "text-primary flex items-center justify-center text-base", children: appName }),
|
|
7592
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end"
|
|
7593
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs(
|
|
7594
|
+
Button,
|
|
7595
|
+
{
|
|
7596
|
+
variant: "outline",
|
|
7597
|
+
color: "primary",
|
|
7598
|
+
className: "bg-token-bg-primary",
|
|
7599
|
+
onClick: () => {
|
|
7600
|
+
const widgetDomain = resourceMeta == null ? void 0 : resourceMeta["openai/widgetDomain"];
|
|
7601
|
+
if ((api == null ? void 0 : api.openExternal) && widgetDomain) {
|
|
7602
|
+
api.openExternal({ href: widgetDomain });
|
|
7603
|
+
}
|
|
7604
|
+
},
|
|
7605
|
+
children: [
|
|
7606
|
+
appIcon && /* @__PURE__ */ jsx("span", { className: "me-2 h-4 w-4 flex items-center justify-center", children: appIcon }),
|
|
7607
|
+
"Open in ",
|
|
7608
|
+
appName
|
|
7609
|
+
]
|
|
7610
|
+
}
|
|
7611
|
+
) })
|
|
7593
7612
|
] }),
|
|
7594
7613
|
/* @__PURE__ */ jsx("div", { className: "relative overflow-hidden flex-1 min-h-0", children: /* @__PURE__ */ jsx("div", { className: "h-full w-full max-w-full overflow-auto", children }) }),
|
|
7595
7614
|
/* @__PURE__ */ jsx("footer", { className: "bg-surface", children: /* @__PURE__ */ jsx("div", { className: "max-w-[48rem] mx-auto px-4 py-4", children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
@@ -7898,7 +7917,7 @@ const DEFAULT_DISPLAY_MODE = "inline";
|
|
|
7898
7917
|
function ChatGPTSimulator({
|
|
7899
7918
|
children,
|
|
7900
7919
|
simulations = [],
|
|
7901
|
-
appName = "Sunpeak
|
|
7920
|
+
appName = "Sunpeak",
|
|
7902
7921
|
appIcon
|
|
7903
7922
|
}) {
|
|
7904
7923
|
const [screenWidth, setScreenWidth] = React.useState("full");
|
|
@@ -8392,6 +8411,7 @@ function ChatGPTSimulator({
|
|
|
8392
8411
|
appName,
|
|
8393
8412
|
appIcon,
|
|
8394
8413
|
userMessage,
|
|
8414
|
+
resourceMeta: selectedSim == null ? void 0 : selectedSim.resource._meta,
|
|
8395
8415
|
children: content
|
|
8396
8416
|
},
|
|
8397
8417
|
selectedKey
|