sunpeak 0.9.3 → 0.9.8
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/README.md +2 -2
- package/dist/chatgpt/conversation.d.ts +5 -2
- package/dist/chatgpt/iframe-resource.d.ts +69 -0
- package/dist/chatgpt/index.cjs +2 -1
- package/dist/chatgpt/index.cjs.map +1 -1
- package/dist/chatgpt/index.d.ts +1 -0
- package/dist/chatgpt/index.js +2 -1
- package/dist/chatgpt/simple-sidebar.d.ts +2 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/{simulator-url-CG8lAAC3.cjs → simulator-url-BpCa95pE.cjs} +876 -251
- package/dist/simulator-url-BpCa95pE.cjs.map +1 -0
- package/dist/{simulator-url-CexnaL-e.js → simulator-url-q5tHLc4-.js} +876 -251
- package/dist/simulator-url-q5tHLc4-.js.map +1 -0
- package/dist/style.css +12 -0
- package/dist/types/simulation.d.ts +4 -1
- package/package.json +1 -1
- package/template/README.md +2 -2
- package/template/dist/albums.js +7 -7
- package/template/dist/albums.json +1 -1
- package/template/dist/carousel.js +6 -6
- package/template/dist/carousel.json +1 -1
- package/template/dist/map.js +17 -17
- package/template/dist/map.json +1 -1
- package/template/dist/review.js +7 -7
- package/template/dist/review.json +1 -1
- package/template/node_modules/.vite/deps/_metadata.json +19 -19
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/template/src/components/album/album-carousel.tsx +28 -3
- package/template/src/components/carousel/carousel.tsx +28 -3
- package/dist/simulator-url-CG8lAAC3.cjs.map +0 -1
- package/dist/simulator-url-CexnaL-e.js.map +0 -1
|
@@ -7,115 +7,115 @@
|
|
|
7
7
|
"react": {
|
|
8
8
|
"src": "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js",
|
|
9
9
|
"file": "react.js",
|
|
10
|
-
"fileHash": "
|
|
10
|
+
"fileHash": "bae65c0b",
|
|
11
11
|
"needsInterop": true
|
|
12
12
|
},
|
|
13
13
|
"react-dom": {
|
|
14
14
|
"src": "../../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js",
|
|
15
15
|
"file": "react-dom.js",
|
|
16
|
-
"fileHash": "
|
|
16
|
+
"fileHash": "74886ad3",
|
|
17
17
|
"needsInterop": true
|
|
18
18
|
},
|
|
19
19
|
"react/jsx-dev-runtime": {
|
|
20
20
|
"src": "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-dev-runtime.js",
|
|
21
21
|
"file": "react_jsx-dev-runtime.js",
|
|
22
|
-
"fileHash": "
|
|
22
|
+
"fileHash": "a0e2a40d",
|
|
23
23
|
"needsInterop": true
|
|
24
24
|
},
|
|
25
25
|
"react/jsx-runtime": {
|
|
26
26
|
"src": "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js",
|
|
27
27
|
"file": "react_jsx-runtime.js",
|
|
28
|
-
"fileHash": "
|
|
28
|
+
"fileHash": "9f5507c7",
|
|
29
29
|
"needsInterop": true
|
|
30
30
|
},
|
|
31
31
|
"@openai/apps-sdk-ui/components/Avatar": {
|
|
32
32
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/index.js",
|
|
33
33
|
"file": "@openai_apps-sdk-ui_components_Avatar.js",
|
|
34
|
-
"fileHash": "
|
|
34
|
+
"fileHash": "229c083b",
|
|
35
35
|
"needsInterop": false
|
|
36
36
|
},
|
|
37
37
|
"@openai/apps-sdk-ui/components/Button": {
|
|
38
38
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Button/index.js",
|
|
39
39
|
"file": "@openai_apps-sdk-ui_components_Button.js",
|
|
40
|
-
"fileHash": "
|
|
40
|
+
"fileHash": "e476a26c",
|
|
41
41
|
"needsInterop": false
|
|
42
42
|
},
|
|
43
43
|
"@openai/apps-sdk-ui/components/Checkbox": {
|
|
44
44
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Checkbox/index.js",
|
|
45
45
|
"file": "@openai_apps-sdk-ui_components_Checkbox.js",
|
|
46
|
-
"fileHash": "
|
|
46
|
+
"fileHash": "6d0f025c",
|
|
47
47
|
"needsInterop": false
|
|
48
48
|
},
|
|
49
49
|
"@openai/apps-sdk-ui/components/Icon": {
|
|
50
50
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Icon/index.js",
|
|
51
51
|
"file": "@openai_apps-sdk-ui_components_Icon.js",
|
|
52
|
-
"fileHash": "
|
|
52
|
+
"fileHash": "8c546177",
|
|
53
53
|
"needsInterop": false
|
|
54
54
|
},
|
|
55
55
|
"@openai/apps-sdk-ui/components/Input": {
|
|
56
56
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Input/index.js",
|
|
57
57
|
"file": "@openai_apps-sdk-ui_components_Input.js",
|
|
58
|
-
"fileHash": "
|
|
58
|
+
"fileHash": "720acc96",
|
|
59
59
|
"needsInterop": false
|
|
60
60
|
},
|
|
61
61
|
"@openai/apps-sdk-ui/components/SegmentedControl": {
|
|
62
62
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/SegmentedControl/index.js",
|
|
63
63
|
"file": "@openai_apps-sdk-ui_components_SegmentedControl.js",
|
|
64
|
-
"fileHash": "
|
|
64
|
+
"fileHash": "4f878572",
|
|
65
65
|
"needsInterop": false
|
|
66
66
|
},
|
|
67
67
|
"@openai/apps-sdk-ui/components/Select": {
|
|
68
68
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Select/index.js",
|
|
69
69
|
"file": "@openai_apps-sdk-ui_components_Select.js",
|
|
70
|
-
"fileHash": "
|
|
70
|
+
"fileHash": "25ab4282",
|
|
71
71
|
"needsInterop": false
|
|
72
72
|
},
|
|
73
73
|
"@openai/apps-sdk-ui/components/Textarea": {
|
|
74
74
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Textarea/index.js",
|
|
75
75
|
"file": "@openai_apps-sdk-ui_components_Textarea.js",
|
|
76
|
-
"fileHash": "
|
|
76
|
+
"fileHash": "e4acd58f",
|
|
77
77
|
"needsInterop": false
|
|
78
78
|
},
|
|
79
79
|
"@openai/apps-sdk-ui/theme": {
|
|
80
80
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/lib/theme.js",
|
|
81
81
|
"file": "@openai_apps-sdk-ui_theme.js",
|
|
82
|
-
"fileHash": "
|
|
82
|
+
"fileHash": "fb662793",
|
|
83
83
|
"needsInterop": false
|
|
84
84
|
},
|
|
85
85
|
"clsx": {
|
|
86
86
|
"src": "../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs",
|
|
87
87
|
"file": "clsx.js",
|
|
88
|
-
"fileHash": "
|
|
88
|
+
"fileHash": "e3f6dc91",
|
|
89
89
|
"needsInterop": false
|
|
90
90
|
},
|
|
91
91
|
"embla-carousel-react": {
|
|
92
92
|
"src": "../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.3/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js",
|
|
93
93
|
"file": "embla-carousel-react.js",
|
|
94
|
-
"fileHash": "
|
|
94
|
+
"fileHash": "2069a900",
|
|
95
95
|
"needsInterop": false
|
|
96
96
|
},
|
|
97
97
|
"embla-carousel-wheel-gestures": {
|
|
98
98
|
"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",
|
|
99
99
|
"file": "embla-carousel-wheel-gestures.js",
|
|
100
|
-
"fileHash": "
|
|
100
|
+
"fileHash": "cabc97bf",
|
|
101
101
|
"needsInterop": false
|
|
102
102
|
},
|
|
103
103
|
"mapbox-gl": {
|
|
104
104
|
"src": "../../../../node_modules/.pnpm/mapbox-gl@3.17.0/node_modules/mapbox-gl/dist/mapbox-gl.js",
|
|
105
105
|
"file": "mapbox-gl.js",
|
|
106
|
-
"fileHash": "
|
|
106
|
+
"fileHash": "3f5f9435",
|
|
107
107
|
"needsInterop": true
|
|
108
108
|
},
|
|
109
109
|
"react-dom/client": {
|
|
110
110
|
"src": "../../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/client.js",
|
|
111
111
|
"file": "react-dom_client.js",
|
|
112
|
-
"fileHash": "
|
|
112
|
+
"fileHash": "db5820fb",
|
|
113
113
|
"needsInterop": true
|
|
114
114
|
},
|
|
115
115
|
"tailwind-merge": {
|
|
116
116
|
"src": "../../../../node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs",
|
|
117
117
|
"file": "tailwind-merge.js",
|
|
118
|
-
"fileHash": "
|
|
118
|
+
"fileHash": "cc595659",
|
|
119
119
|
"needsInterop": false
|
|
120
120
|
}
|
|
121
121
|
},
|
package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"4.0.16","results":[[":src/
|
|
1
|
+
{"version":"4.0.16","results":[[":src/components/album/albums.test.tsx",{"duration":342.505504,"failed":false}],[":src/resources/review-resource.test.tsx",{"duration":559.9288019999999,"failed":false}],[":src/resources/carousel-resource.test.tsx",{"duration":254.38066900000013,"failed":false}],[":src/components/map/map-view.test.tsx",{"duration":91.34401400000002,"failed":false}],[":src/components/map/place-inspector.test.tsx",{"duration":385.79388100000006,"failed":false}],[":src/components/album/fullscreen-viewer.test.tsx",{"duration":266.1306490000002,"failed":false}],[":src/components/map/place-list.test.tsx",{"duration":152.96475800000007,"failed":false}],[":src/components/map/place-card.test.tsx",{"duration":320.50285599999984,"failed":false}],[":src/components/map/place-carousel.test.tsx",{"duration":410.08972199999994,"failed":false}],[":src/components/album/album-carousel.test.tsx",{"duration":110.96281900000008,"failed":false}],[":src/components/carousel/carousel.test.tsx",{"duration":76.20041800000013,"failed":false}],[":src/resources/map-resource.test.tsx",{"duration":279.0750029999999,"failed":false}],[":src/resources/albums-resource.test.tsx",{"duration":264.6735470000001,"failed":false}],[":src/components/album/film-strip.test.tsx",{"duration":447.22358899999995,"failed":false}],[":src/components/album/album-card.test.tsx",{"duration":360.988016,"failed":false}],[":src/components/carousel/card.test.tsx",{"duration":54.3284020000001,"failed":false}]]}
|
|
@@ -49,6 +49,9 @@ export const AlbumCarousel = React.forwardRef<HTMLDivElement, AlbumCarouselProps
|
|
|
49
49
|
if (emblaApi) emblaApi.scrollNext();
|
|
50
50
|
}, [emblaApi]);
|
|
51
51
|
|
|
52
|
+
// Track the last index we synced to widget state to avoid redundant updates
|
|
53
|
+
const lastSyncedIndexRef = React.useRef<number | null>(null);
|
|
54
|
+
|
|
52
55
|
const onSelect = React.useCallback(() => {
|
|
53
56
|
if (!emblaApi) return;
|
|
54
57
|
|
|
@@ -56,15 +59,22 @@ export const AlbumCarousel = React.forwardRef<HTMLDivElement, AlbumCarouselProps
|
|
|
56
59
|
setCanScrollNext(emblaApi.canScrollNext());
|
|
57
60
|
|
|
58
61
|
const currentIndex = emblaApi.selectedScrollSnap();
|
|
59
|
-
|
|
62
|
+
|
|
63
|
+
// Only update widget state if the index actually changed from user interaction
|
|
64
|
+
if (lastSyncedIndexRef.current !== currentIndex) {
|
|
65
|
+
lastSyncedIndexRef.current = currentIndex;
|
|
60
66
|
setWidgetState((prev) => ({ ...prev, currentIndex }));
|
|
61
67
|
}
|
|
62
|
-
}, [emblaApi,
|
|
68
|
+
}, [emblaApi, setWidgetState]);
|
|
63
69
|
|
|
64
70
|
React.useEffect(() => {
|
|
65
71
|
if (!emblaApi) return;
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
// Initialize scroll state without updating widget state
|
|
74
|
+
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
75
|
+
setCanScrollNext(emblaApi.canScrollNext());
|
|
76
|
+
lastSyncedIndexRef.current = emblaApi.selectedScrollSnap();
|
|
77
|
+
|
|
68
78
|
emblaApi.on('select', onSelect);
|
|
69
79
|
emblaApi.on('reInit', onSelect);
|
|
70
80
|
|
|
@@ -74,6 +84,21 @@ export const AlbumCarousel = React.forwardRef<HTMLDivElement, AlbumCarouselProps
|
|
|
74
84
|
};
|
|
75
85
|
}, [emblaApi, onSelect]);
|
|
76
86
|
|
|
87
|
+
// Sync external widget state changes to carousel scroll position
|
|
88
|
+
React.useEffect(() => {
|
|
89
|
+
if (!emblaApi) return;
|
|
90
|
+
|
|
91
|
+
const targetIndex = widgetState?.currentIndex ?? 0;
|
|
92
|
+
const currentIndex = emblaApi.selectedScrollSnap();
|
|
93
|
+
|
|
94
|
+
// Only scroll if the external state differs from carousel position
|
|
95
|
+
// AND it's not a state we just synced from the carousel
|
|
96
|
+
if (targetIndex !== currentIndex && lastSyncedIndexRef.current !== targetIndex) {
|
|
97
|
+
lastSyncedIndexRef.current = targetIndex;
|
|
98
|
+
emblaApi.scrollTo(targetIndex);
|
|
99
|
+
}
|
|
100
|
+
}, [emblaApi, widgetState?.currentIndex]);
|
|
101
|
+
|
|
77
102
|
const childArray = React.Children.toArray(children);
|
|
78
103
|
|
|
79
104
|
const getCardWidth = () => {
|
|
@@ -49,6 +49,9 @@ export const Carousel = React.forwardRef<HTMLDivElement, CarouselProps>(
|
|
|
49
49
|
if (emblaApi) emblaApi.scrollNext();
|
|
50
50
|
}, [emblaApi]);
|
|
51
51
|
|
|
52
|
+
// Track the last index we synced to widget state to avoid redundant updates
|
|
53
|
+
const lastSyncedIndexRef = React.useRef<number | null>(null);
|
|
54
|
+
|
|
52
55
|
const onSelect = React.useCallback(() => {
|
|
53
56
|
if (!emblaApi) return;
|
|
54
57
|
|
|
@@ -56,15 +59,22 @@ export const Carousel = React.forwardRef<HTMLDivElement, CarouselProps>(
|
|
|
56
59
|
setCanScrollNext(emblaApi.canScrollNext());
|
|
57
60
|
|
|
58
61
|
const currentIndex = emblaApi.selectedScrollSnap();
|
|
59
|
-
|
|
62
|
+
|
|
63
|
+
// Only update widget state if the index actually changed from user interaction
|
|
64
|
+
if (lastSyncedIndexRef.current !== currentIndex) {
|
|
65
|
+
lastSyncedIndexRef.current = currentIndex;
|
|
60
66
|
setWidgetState((prev) => ({ ...prev, currentIndex }));
|
|
61
67
|
}
|
|
62
|
-
}, [emblaApi,
|
|
68
|
+
}, [emblaApi, setWidgetState]);
|
|
63
69
|
|
|
64
70
|
React.useEffect(() => {
|
|
65
71
|
if (!emblaApi) return;
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
// Initialize scroll state without updating widget state
|
|
74
|
+
setCanScrollPrev(emblaApi.canScrollPrev());
|
|
75
|
+
setCanScrollNext(emblaApi.canScrollNext());
|
|
76
|
+
lastSyncedIndexRef.current = emblaApi.selectedScrollSnap();
|
|
77
|
+
|
|
68
78
|
emblaApi.on('select', onSelect);
|
|
69
79
|
emblaApi.on('reInit', onSelect);
|
|
70
80
|
|
|
@@ -74,6 +84,21 @@ export const Carousel = React.forwardRef<HTMLDivElement, CarouselProps>(
|
|
|
74
84
|
};
|
|
75
85
|
}, [emblaApi, onSelect]);
|
|
76
86
|
|
|
87
|
+
// Sync external widget state changes to carousel scroll position
|
|
88
|
+
React.useEffect(() => {
|
|
89
|
+
if (!emblaApi) return;
|
|
90
|
+
|
|
91
|
+
const targetIndex = widgetState?.currentIndex ?? 0;
|
|
92
|
+
const currentIndex = emblaApi.selectedScrollSnap();
|
|
93
|
+
|
|
94
|
+
// Only scroll if the external state differs from carousel position
|
|
95
|
+
// AND it's not a state we just synced from the carousel
|
|
96
|
+
if (targetIndex !== currentIndex && lastSyncedIndexRef.current !== targetIndex) {
|
|
97
|
+
lastSyncedIndexRef.current = targetIndex;
|
|
98
|
+
emblaApi.scrollTo(targetIndex);
|
|
99
|
+
}
|
|
100
|
+
}, [emblaApi, widgetState?.currentIndex]);
|
|
101
|
+
|
|
77
102
|
const childArray = React.Children.toArray(children);
|
|
78
103
|
|
|
79
104
|
const getCardWidth = () => {
|