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
package/dist/style.css
CHANGED
|
@@ -6416,10 +6416,18 @@ background-color: var(--gray-200);
|
|
|
6416
6416
|
resize: both;
|
|
6417
6417
|
}
|
|
6418
6418
|
|
|
6419
|
+
.resize-y {
|
|
6420
|
+
resize: vertical;
|
|
6421
|
+
}
|
|
6422
|
+
|
|
6419
6423
|
.grid-cols-2 {
|
|
6420
6424
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
6421
6425
|
}
|
|
6422
6426
|
|
|
6427
|
+
.grid-cols-4 {
|
|
6428
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
6429
|
+
}
|
|
6430
|
+
|
|
6423
6431
|
.grid-cols-\[1fr_auto_1fr\] {
|
|
6424
6432
|
grid-template-columns: 1fr auto 1fr;
|
|
6425
6433
|
}
|
|
@@ -6464,6 +6472,10 @@ background-color: var(--gray-200);
|
|
|
6464
6472
|
justify-content: flex-start;
|
|
6465
6473
|
}
|
|
6466
6474
|
|
|
6475
|
+
.gap-0\.5 {
|
|
6476
|
+
gap: calc(var(--spacing) * .5);
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6467
6479
|
.gap-1 {
|
|
6468
6480
|
gap: calc(var(--spacing) * 1);
|
|
6469
6481
|
}
|
|
@@ -8,10 +8,13 @@ import type * as React from 'react';
|
|
|
8
8
|
/**
|
|
9
9
|
* A simulation packages a component with its example data and metadata.
|
|
10
10
|
* Each simulation represents a complete tool experience in the simulator.
|
|
11
|
+
*
|
|
12
|
+
* Specify either `resourceComponent` (React component) or `resourceScript` (URL to built .js file).
|
|
11
13
|
*/
|
|
12
14
|
export interface Simulation {
|
|
13
15
|
name: string;
|
|
14
|
-
resourceComponent
|
|
16
|
+
resourceComponent?: React.ComponentType;
|
|
17
|
+
resourceScript?: string;
|
|
15
18
|
userMessage?: string;
|
|
16
19
|
tool: Tool;
|
|
17
20
|
resource: Resource;
|
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -100,8 +100,8 @@ Each `.json` file is a copy of each of your resource MCP metadata files `src/res
|
|
|
100
100
|
|
|
101
101
|
To add a new UI (MCP Resource), simply create the following files:
|
|
102
102
|
|
|
103
|
-
- `src/
|
|
104
|
-
- `src/
|
|
103
|
+
- `src/resources/NAME-resource.tsx`
|
|
104
|
+
- `src/resources/NAME-resource.json`
|
|
105
105
|
- `src/simulations/NAME-TOOLNAME-simulation.json`
|
|
106
106
|
|
|
107
107
|
Only the resource files are required to generate a production build and ship a UI. Create the simulation file if you want to preview your resource in `sunpeak dev` or `sunpeak mcp`.
|