sunpeak 0.6.1 → 0.6.5

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 (59) hide show
  1. package/bin/sunpeak.js +133 -6
  2. package/dist/chatgpt/conversation.d.ts +2 -1
  3. package/dist/index.cjs +24 -4
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.js +24 -4
  6. package/dist/index.js.map +1 -1
  7. package/dist/mcp/entry.cjs +2 -2
  8. package/dist/mcp/entry.cjs.map +1 -1
  9. package/dist/mcp/entry.js +2 -2
  10. package/dist/mcp/entry.js.map +1 -1
  11. package/dist/mcp/index.cjs +1 -1
  12. package/dist/mcp/index.js +1 -1
  13. package/dist/{server-DpriZ4jT.cjs → server-CQGbJWbk.cjs} +17 -8
  14. package/dist/{server-DpriZ4jT.cjs.map → server-CQGbJWbk.cjs.map} +1 -1
  15. package/dist/{server-SBlanUcf.js → server-DGCvp1RA.js} +17 -8
  16. package/dist/{server-SBlanUcf.js.map → server-DGCvp1RA.js.map} +1 -1
  17. package/dist/style.css +444 -0
  18. package/package.json +1 -1
  19. package/template/.sunpeak/dev.tsx +1 -1
  20. package/template/dist/chatgpt/albums.js +2 -2
  21. package/template/dist/chatgpt/carousel.js +1 -1
  22. package/template/dist/chatgpt/counter.js +1 -1
  23. package/template/dist/chatgpt/pizzaz.js +3034 -0
  24. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Avatar.js +97 -0
  25. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Avatar.js.map +7 -0
  26. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
  27. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +1 -1
  28. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +16 -16
  29. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
  30. package/template/node_modules/.vite/deps/_metadata.json +45 -33
  31. package/template/node_modules/.vite/deps/{chunk-DQAZDQU3.js → chunk-LR7NKCX5.js} +8 -8
  32. package/template/node_modules/.vite/deps/mapbox-gl.js +32835 -0
  33. package/template/node_modules/.vite/deps/mapbox-gl.js.map +7 -0
  34. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  35. package/template/package.json +1 -0
  36. package/template/src/components/album/album-carousel.test.tsx +84 -0
  37. package/template/src/components/album/album-carousel.tsx +168 -0
  38. package/template/src/components/album/albums.test.tsx +2 -2
  39. package/template/src/components/album/albums.tsx +3 -3
  40. package/template/src/components/album/index.ts +1 -0
  41. package/template/src/components/carousel/index.ts +1 -0
  42. package/template/src/components/index.ts +1 -1
  43. package/template/src/components/pizzaz/index.ts +6 -0
  44. package/template/src/components/pizzaz/map-view.tsx +212 -0
  45. package/template/src/components/pizzaz/pizzaz.tsx +145 -0
  46. package/template/src/components/pizzaz/place-card.tsx +55 -0
  47. package/template/src/components/pizzaz/place-carousel.tsx +45 -0
  48. package/template/src/components/pizzaz/place-inspector.tsx +132 -0
  49. package/template/src/components/pizzaz/place-list.tsx +90 -0
  50. package/template/src/resources/carousel-resource.test.tsx +1 -4
  51. package/template/src/resources/carousel-resource.tsx +1 -2
  52. package/template/src/resources/index.ts +1 -0
  53. package/template/src/resources/pizzaz-resource.tsx +32 -0
  54. package/template/src/simulations/index.ts +2 -0
  55. package/template/src/simulations/pizzaz-simulation.ts +177 -0
  56. package/template/src/components/card/index.ts +0 -1
  57. /package/template/node_modules/.vite/deps/{chunk-DQAZDQU3.js.map → chunk-LR7NKCX5.js.map} +0 -0
  58. /package/template/src/components/{card → carousel}/card.test.tsx +0 -0
  59. /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 App",
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 App",
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