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.
Files changed (37) hide show
  1. package/bin/commands/dev.mjs +60 -4
  2. package/bin/commands/mcp.mjs +1 -1
  3. package/bin/sunpeak.js +6 -4
  4. package/dist/index.cjs +4 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +4 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/style.css +62 -0
  9. package/package.json +1 -1
  10. package/template/README.md +29 -14
  11. package/template/dist/albums.js +1 -1
  12. package/template/dist/albums.json +3 -2
  13. package/template/dist/carousel.js +1 -1
  14. package/template/dist/carousel.json +3 -2
  15. package/template/dist/confirmation.js +49 -0
  16. package/template/dist/confirmation.json +16 -0
  17. package/template/dist/counter.js +1 -1
  18. package/template/dist/counter.json +7 -2
  19. package/template/dist/map.js +1 -1
  20. package/template/dist/map.json +6 -3
  21. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
  22. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +1 -1
  23. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +16 -16
  24. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
  25. package/template/node_modules/.vite/deps/_metadata.json +32 -32
  26. package/template/node_modules/.vite/deps/{chunk-SPYXUHEY.js → chunk-N6DVYEXK.js} +8 -8
  27. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  28. package/template/src/resources/albums-resource.json +1 -1
  29. package/template/src/resources/carousel-resource.json +1 -1
  30. package/template/src/resources/confirmation-resource.json +12 -0
  31. package/template/src/resources/confirmation-resource.tsx +479 -0
  32. package/template/src/resources/counter-resource.json +4 -1
  33. package/template/src/resources/map-resource.json +7 -2
  34. package/template/src/simulations/confirmation-diff-simulation.json +80 -0
  35. package/template/src/simulations/confirmation-post-simulation.json +56 -0
  36. package/template/src/simulations/confirmation-purchase-simulation.json +88 -0
  37. /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",