sunpeak 0.8.1 → 0.8.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/commands/dev.mjs +60 -4
- package/bin/commands/mcp.mjs +1 -1
- package/bin/sunpeak.js +6 -4
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/style.css +62 -0
- package/package.json +1 -1
- package/template/README.md +29 -14
- package/template/dist/albums.js +1 -1
- package/template/dist/albums.json +3 -2
- package/template/dist/carousel.js +1 -1
- package/template/dist/carousel.json +3 -2
- package/template/dist/confirmation.js +49 -0
- package/template/dist/confirmation.json +16 -0
- package/template/dist/counter.js +1 -1
- package/template/dist/counter.json +7 -2
- package/template/dist/map.js +1 -1
- package/template/dist/map.json +6 -3
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +1 -1
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +16 -16
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
- package/template/node_modules/.vite/deps/_metadata.json +32 -32
- package/template/node_modules/.vite/deps/{chunk-SPYXUHEY.js → chunk-N6DVYEXK.js} +8 -8
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/template/src/resources/albums-resource.json +1 -1
- package/template/src/resources/carousel-resource.json +1 -1
- package/template/src/resources/confirmation-resource.json +12 -0
- package/template/src/resources/confirmation-resource.tsx +479 -0
- package/template/src/resources/counter-resource.json +4 -1
- package/template/src/resources/map-resource.json +7 -2
- package/template/src/simulations/confirmation-diff-simulation.json +80 -0
- package/template/src/simulations/confirmation-post-simulation.json +56 -0
- package/template/src/simulations/confirmation-purchase-simulation.json +88 -0
- /package/template/node_modules/.vite/deps/{chunk-SPYXUHEY.js.map → chunk-N6DVYEXK.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -7566,6 +7566,8 @@ function Conversation({
|
|
|
7566
7566
|
}) {
|
|
7567
7567
|
const displayMode = useDisplayMode() ?? "inline";
|
|
7568
7568
|
const api = useWidgetAPI();
|
|
7569
|
+
const userAgent = useUserAgent();
|
|
7570
|
+
const isDesktop = (userAgent == null ? void 0 : userAgent.device.type) === "desktop";
|
|
7569
7571
|
const containerWidth = screenWidth === "full" ? "100%" : `${SCREEN_WIDTHS[screenWidth]}px`;
|
|
7570
7572
|
if (displayMode === "fullscreen") {
|
|
7571
7573
|
const handleClose = () => {
|
|
@@ -7595,8 +7597,8 @@ function Conversation({
|
|
|
7595
7597
|
children: /* @__PURE__ */ jsx(CloseBold, {})
|
|
7596
7598
|
}
|
|
7597
7599
|
) }),
|
|
7598
|
-
/* @__PURE__ */ jsx("div", { className: "text-primary flex items-center justify-center text-base", children: appName }),
|
|
7599
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs(
|
|
7600
|
+
isDesktop && /* @__PURE__ */ jsx("div", { className: "text-primary flex items-center justify-center text-base", children: appName }),
|
|
7601
|
+
isDesktop && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs(
|
|
7600
7602
|
Button,
|
|
7601
7603
|
{
|
|
7602
7604
|
variant: "outline",
|