sunpeak 0.5.41 → 0.6.1

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 (28) hide show
  1. package/README.md +1 -0
  2. package/bin/commands/build.mjs +4 -4
  3. package/dist/chatgpt/globals.css +7 -0
  4. package/dist/index.cjs +75 -8
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +75 -8
  7. package/dist/index.js.map +1 -1
  8. package/dist/style.css +97 -11
  9. package/package.json +1 -1
  10. package/template/.sunpeak/dev.tsx +2 -2
  11. package/template/README.md +3 -3
  12. package/template/dist/chatgpt/albums.js +1 -1
  13. package/template/dist/chatgpt/carousel.js +1 -1
  14. package/template/dist/chatgpt/counter.js +1 -1
  15. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +2 -2
  16. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +9 -9
  17. package/template/node_modules/.vite/deps/_metadata.json +22 -22
  18. package/template/node_modules/.vite/deps/{chunk-EVJ3DVH5.js → chunk-DQAZDQU3.js} +5 -5
  19. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  20. package/template/src/components/index.ts +0 -1
  21. package/template/src/{components/resources → resources}/albums-resource.test.tsx +1 -1
  22. package/template/src/{components/resources → resources}/albums-resource.tsx +1 -1
  23. package/template/src/{components/resources → resources}/carousel-resource.test.tsx +2 -2
  24. package/template/src/{components/resources → resources}/carousel-resource.tsx +2 -2
  25. /package/template/node_modules/.vite/deps/{chunk-EVJ3DVH5.js.map → chunk-DQAZDQU3.js.map} +0 -0
  26. /package/template/src/{components/resources → resources}/counter-resource.test.tsx +0 -0
  27. /package/template/src/{components/resources → resources}/counter-resource.tsx +0 -0
  28. /package/template/src/{components/resources → resources}/index.ts +0 -0
@@ -2,10 +2,10 @@ import {
2
2
  Button,
3
3
  ButtonLink,
4
4
  CopyButton
5
- } from "./chunk-EVJ3DVH5.js";
5
+ } from "./chunk-DQAZDQU3.js";
6
+ import "./chunk-XB525PXG.js";
6
7
  import "./chunk-YOJ6QPGS.js";
7
8
  import "./chunk-BAG6OO6S.js";
8
- import "./chunk-XB525PXG.js";
9
9
  import "./chunk-QPJAV452.js";
10
10
  import "./chunk-EGRHWZRV.js";
11
11
  import "./chunk-CNYJBM5F.js";
@@ -2,7 +2,15 @@ import {
2
2
  Button,
3
3
  LoadingIndicator,
4
4
  TransitionGroup
5
- } from "./chunk-EVJ3DVH5.js";
5
+ } from "./chunk-DQAZDQU3.js";
6
+ import {
7
+ Check_default,
8
+ ChevronDownVector_default,
9
+ DropdownVector_default,
10
+ Info_default,
11
+ Search_default,
12
+ X_default
13
+ } from "./chunk-XB525PXG.js";
6
14
  import {
7
15
  useTimeout
8
16
  } from "./chunk-YOJ6QPGS.js";
@@ -18,14 +26,6 @@ import {
18
26
  dist_exports5 as dist_exports3
19
27
  } from "./chunk-SGWD4VEU.js";
20
28
  import "./chunk-KFGKZMLK.js";
21
- import {
22
- Check_default,
23
- ChevronDownVector_default,
24
- DropdownVector_default,
25
- Info_default,
26
- Search_default,
27
- X_default
28
- } from "./chunk-XB525PXG.js";
29
29
  import {
30
30
  Input
31
31
  } from "./chunk-CQ3GYAYB.js";
@@ -7,109 +7,112 @@
7
7
  "react": {
8
8
  "src": "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js",
9
9
  "file": "react.js",
10
- "fileHash": "264ae3aa",
10
+ "fileHash": "94bcffe9",
11
11
  "needsInterop": true
12
12
  },
13
13
  "react-dom": {
14
14
  "src": "../../../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/index.js",
15
15
  "file": "react-dom.js",
16
- "fileHash": "565f0670",
16
+ "fileHash": "8fb77322",
17
17
  "needsInterop": true
18
18
  },
19
19
  "react/jsx-dev-runtime": {
20
20
  "src": "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-dev-runtime.js",
21
21
  "file": "react_jsx-dev-runtime.js",
22
- "fileHash": "dc93890d",
22
+ "fileHash": "ca004f1d",
23
23
  "needsInterop": true
24
24
  },
25
25
  "react/jsx-runtime": {
26
26
  "src": "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js",
27
27
  "file": "react_jsx-runtime.js",
28
- "fileHash": "769723ed",
28
+ "fileHash": "4f69b4ed",
29
29
  "needsInterop": true
30
30
  },
31
31
  "@openai/apps-sdk-ui/components/Button": {
32
32
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Button/index.js",
33
33
  "file": "@openai_apps-sdk-ui_components_Button.js",
34
- "fileHash": "2aaa39fe",
34
+ "fileHash": "943d4cd6",
35
35
  "needsInterop": false
36
36
  },
37
37
  "@openai/apps-sdk-ui/components/Checkbox": {
38
38
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Checkbox/index.js",
39
39
  "file": "@openai_apps-sdk-ui_components_Checkbox.js",
40
- "fileHash": "9bc36d10",
40
+ "fileHash": "9eeaf63b",
41
41
  "needsInterop": false
42
42
  },
43
43
  "@openai/apps-sdk-ui/components/Icon": {
44
44
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Icon/index.js",
45
45
  "file": "@openai_apps-sdk-ui_components_Icon.js",
46
- "fileHash": "0c8a7bb7",
46
+ "fileHash": "188194a5",
47
47
  "needsInterop": false
48
48
  },
49
49
  "@openai/apps-sdk-ui/components/Input": {
50
50
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Input/index.js",
51
51
  "file": "@openai_apps-sdk-ui_components_Input.js",
52
- "fileHash": "66aa5c5a",
52
+ "fileHash": "bf451833",
53
53
  "needsInterop": false
54
54
  },
55
55
  "@openai/apps-sdk-ui/components/SegmentedControl": {
56
56
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/SegmentedControl/index.js",
57
57
  "file": "@openai_apps-sdk-ui_components_SegmentedControl.js",
58
- "fileHash": "97a2aa5f",
58
+ "fileHash": "456dc53c",
59
59
  "needsInterop": false
60
60
  },
61
61
  "@openai/apps-sdk-ui/components/Select": {
62
62
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Select/index.js",
63
63
  "file": "@openai_apps-sdk-ui_components_Select.js",
64
- "fileHash": "be97a54f",
64
+ "fileHash": "8a137c67",
65
65
  "needsInterop": false
66
66
  },
67
67
  "@openai/apps-sdk-ui/components/Textarea": {
68
68
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Textarea/index.js",
69
69
  "file": "@openai_apps-sdk-ui_components_Textarea.js",
70
- "fileHash": "cb2abaca",
70
+ "fileHash": "a5e61764",
71
71
  "needsInterop": false
72
72
  },
73
73
  "@openai/apps-sdk-ui/theme": {
74
74
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/lib/theme.js",
75
75
  "file": "@openai_apps-sdk-ui_theme.js",
76
- "fileHash": "446e068b",
76
+ "fileHash": "21efb3b2",
77
77
  "needsInterop": false
78
78
  },
79
79
  "clsx": {
80
80
  "src": "../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs",
81
81
  "file": "clsx.js",
82
- "fileHash": "07860a30",
82
+ "fileHash": "68a7acff",
83
83
  "needsInterop": false
84
84
  },
85
85
  "embla-carousel-react": {
86
86
  "src": "../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js",
87
87
  "file": "embla-carousel-react.js",
88
- "fileHash": "361056e7",
88
+ "fileHash": "f2ad1539",
89
89
  "needsInterop": false
90
90
  },
91
91
  "embla-carousel-wheel-gestures": {
92
92
  "src": "../../../../node_modules/.pnpm/embla-carousel-wheel-gestures@8.1.0_embla-carousel@8.6.0/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js",
93
93
  "file": "embla-carousel-wheel-gestures.js",
94
- "fileHash": "a42e64fa",
94
+ "fileHash": "90a4d0c8",
95
95
  "needsInterop": false
96
96
  },
97
97
  "react-dom/client": {
98
98
  "src": "../../../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/client.js",
99
99
  "file": "react-dom_client.js",
100
- "fileHash": "39ff4ecc",
100
+ "fileHash": "02f8c5e8",
101
101
  "needsInterop": true
102
102
  },
103
103
  "tailwind-merge": {
104
104
  "src": "../../../../node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs",
105
105
  "file": "tailwind-merge.js",
106
- "fileHash": "01cd3e08",
106
+ "fileHash": "ace864a4",
107
107
  "needsInterop": false
108
108
  }
109
109
  },
110
110
  "chunks": {
111
- "chunk-EVJ3DVH5": {
112
- "file": "chunk-EVJ3DVH5.js"
111
+ "chunk-DQAZDQU3": {
112
+ "file": "chunk-DQAZDQU3.js"
113
+ },
114
+ "chunk-XB525PXG": {
115
+ "file": "chunk-XB525PXG.js"
113
116
  },
114
117
  "chunk-YOJ6QPGS": {
115
118
  "file": "chunk-YOJ6QPGS.js"
@@ -123,9 +126,6 @@
123
126
  "chunk-KFGKZMLK": {
124
127
  "file": "chunk-KFGKZMLK.js"
125
128
  },
126
- "chunk-XB525PXG": {
127
- "file": "chunk-XB525PXG.js"
128
- },
129
129
  "chunk-CQ3GYAYB": {
130
130
  "file": "chunk-CQ3GYAYB.js"
131
131
  },
@@ -1,3 +1,7 @@
1
+ import {
2
+ Check_default,
3
+ Copy_default
4
+ } from "./chunk-XB525PXG.js";
1
5
  import {
2
6
  useTimeout
3
7
  } from "./chunk-YOJ6QPGS.js";
@@ -12,10 +16,6 @@ import {
12
16
  toTransformProperty,
13
17
  waitForAnimationFrame
14
18
  } from "./chunk-BAG6OO6S.js";
15
- import {
16
- Check_default,
17
- Copy_default
18
- } from "./chunk-XB525PXG.js";
19
19
  import {
20
20
  o
21
21
  } from "./chunk-QPJAV452.js";
@@ -625,4 +625,4 @@ export {
625
625
  ButtonLink,
626
626
  CopyButton
627
627
  };
628
- //# sourceMappingURL=chunk-EVJ3DVH5.js.map
628
+ //# sourceMappingURL=chunk-DQAZDQU3.js.map
@@ -1 +1 @@
1
- {"version":"4.0.13","results":[[":src/components/album/albums.test.tsx",{"duration":370.11665100000005,"failed":false}],[":src/components/resources/counter-resource.test.tsx",{"duration":311.2705619999997,"failed":false}],[":src/components/resources/carousel-resource.test.tsx",{"duration":257.46737600000006,"failed":false}],[":src/components/album/fullscreen-viewer.test.tsx",{"duration":232.20117000000027,"failed":false}],[":src/components/carousel/carousel.test.tsx",{"duration":86.45302899999979,"failed":false}],[":src/components/resources/albums-resource.test.tsx",{"duration":273.0157959999999,"failed":false}],[":src/components/album/film-strip.test.tsx",{"duration":458.94508499999984,"failed":false}],[":src/components/album/album-card.test.tsx",{"duration":290.17094999999995,"failed":false}],[":src/components/card/card.test.tsx",{"duration":54.771146000000044,"failed":false}]]}
1
+ {"version":"4.0.13","results":[[":src/resources/counter-resource.test.tsx",{"duration":341.562457,"failed":false}],[":src/components/album/albums.test.tsx",{"duration":347.8453920000002,"failed":false}],[":src/resources/carousel-resource.test.tsx",{"duration":281.398232,"failed":false}],[":src/components/album/fullscreen-viewer.test.tsx",{"duration":245.63889299999983,"failed":false}],[":src/components/carousel/carousel.test.tsx",{"duration":64.06780200000003,"failed":false}],[":src/resources/albums-resource.test.tsx",{"duration":269.48677499999985,"failed":false}],[":src/components/album/film-strip.test.tsx",{"duration":490.057513,"failed":false}],[":src/components/album/album-card.test.tsx",{"duration":302.1487770000001,"failed":false}],[":src/components/card/card.test.tsx",{"duration":55.60354700000016,"failed":false}]]}
@@ -1,4 +1,3 @@
1
1
  export * from './card';
2
2
  export * from './carousel';
3
3
  export * from './album';
4
- export * from './resources';
@@ -12,7 +12,7 @@ vi.mock('sunpeak', () => ({
12
12
  }));
13
13
 
14
14
  // Mock Albums component
15
- vi.mock('../album/albums', () => ({
15
+ vi.mock('../components/album/albums', () => ({
16
16
  Albums: () => <div data-testid="albums-component">Albums Component</div>,
17
17
  }));
18
18
 
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useSafeArea, useMaxHeight } from 'sunpeak';
3
- import { Albums } from '../album/albums';
3
+ import { Albums } from '../components/album/albums';
4
4
 
5
5
  /**
6
6
  * Production-ready Albums Resource
@@ -32,13 +32,13 @@ vi.mock('sunpeak', () => ({
32
32
  }));
33
33
 
34
34
  // Mock child components
35
- vi.mock('../carousel/carousel', () => ({
35
+ vi.mock('../components/carousel/carousel', () => ({
36
36
  Carousel: ({ children }: { children: React.ReactNode }) => (
37
37
  <div data-testid="carousel">{children}</div>
38
38
  ),
39
39
  }));
40
40
 
41
- vi.mock('../card/card', () => ({
41
+ vi.mock('../components/card/card', () => ({
42
42
  Card: ({ header, buttonSize }: { header: React.ReactNode; buttonSize?: string }) => (
43
43
  <div data-testid="card" data-button-size={buttonSize}>
44
44
  {header}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useWidgetProps, useSafeArea, useMaxHeight, useUserAgent } from 'sunpeak';
3
- import { Carousel } from '../carousel/carousel';
4
- import { Card } from '../card/card';
3
+ import { Carousel } from '../components/carousel/carousel';
4
+ import { Card } from '../components/card/card';
5
5
 
6
6
  /**
7
7
  * Production-ready Carousel Resource