sunpeak 0.6.5 → 0.6.6
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/bin/sunpeak.js +6 -6
- package/package.json +1 -1
- package/template/dist/chatgpt/{pizzaz.js → map.js} +3 -3
- 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/index.ts +1 -1
- package/template/src/components/{pizzaz → map}/index.ts +1 -1
- package/template/src/components/{pizzaz → map}/map-view.tsx +2 -2
- package/template/src/components/{pizzaz/pizzaz.tsx → map/map.tsx} +7 -7
- package/template/src/components/{pizzaz → map}/place-card.tsx +1 -1
- package/template/src/components/{pizzaz → map}/place-carousel.tsx +1 -1
- package/template/src/components/{pizzaz → map}/place-inspector.tsx +2 -2
- package/template/src/components/{pizzaz → map}/place-list.tsx +1 -1
- package/template/src/resources/index.ts +1 -1
- package/template/src/resources/{pizzaz-resource.tsx → map-resource.tsx} +5 -5
- package/template/src/simulations/index.ts +2 -2
- package/template/src/simulations/{pizzaz-simulation.ts → map-simulation.ts} +9 -9
package/bin/sunpeak.js
CHANGED
|
@@ -28,7 +28,7 @@ function checkPackageJson() {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function parseResourcesInput(input) {
|
|
31
|
-
const VALID_RESOURCES = ['albums', 'carousel', 'counter', '
|
|
31
|
+
const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'map'];
|
|
32
32
|
|
|
33
33
|
// If no input, return all resources
|
|
34
34
|
if (!input || input.trim() === '') {
|
|
@@ -60,7 +60,7 @@ function updateIndexFiles(targetDir, selectedResources) {
|
|
|
60
60
|
albums: { component: 'album', resourceClass: 'AlbumsResource', simulation: 'albums' },
|
|
61
61
|
carousel: { component: 'carousel', resourceClass: 'CarouselResource', simulation: 'carousel' },
|
|
62
62
|
counter: { component: null, resourceClass: 'CounterResource', simulation: 'counter' },
|
|
63
|
-
|
|
63
|
+
map: { component: 'map', resourceClass: 'MapResource', simulation: 'map' },
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// Update components/index.ts
|
|
@@ -122,7 +122,7 @@ async function init(projectName, resourcesArg) {
|
|
|
122
122
|
console.log(`☀️ 🏔️ Resources: ${resourcesArg}`);
|
|
123
123
|
} else {
|
|
124
124
|
resourcesInput = await prompt(
|
|
125
|
-
'☀️ 🏔️ Resources (UIs) to include [albums, carousel, counter,
|
|
125
|
+
'☀️ 🏔️ Resources (UIs) to include [albums, carousel, counter, map]: '
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
128
|
const selectedResources = parseResourcesInput(resourcesInput);
|
|
@@ -145,7 +145,7 @@ async function init(projectName, resourcesArg) {
|
|
|
145
145
|
albums: 'album',
|
|
146
146
|
carousel: 'carousel',
|
|
147
147
|
counter: null, // Counter doesn't have a component directory
|
|
148
|
-
|
|
148
|
+
map: 'map',
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
cpSync(templateDir, targetDir, {
|
|
@@ -159,7 +159,7 @@ async function init(projectName, resourcesArg) {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
// Filter resource files based on selection
|
|
162
|
-
const VALID_RESOURCES = ['albums', 'carousel', 'counter', '
|
|
162
|
+
const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'map'];
|
|
163
163
|
const excludedResources = VALID_RESOURCES.filter((r) => !selectedResources.includes(r));
|
|
164
164
|
|
|
165
165
|
for (const resource of excludedResources) {
|
|
@@ -276,7 +276,7 @@ Usage:
|
|
|
276
276
|
npx sunpeak new [name] [resources] Create a new project (no install needed)
|
|
277
277
|
pnpm dlx sunpeak new Alternative with pnpm
|
|
278
278
|
|
|
279
|
-
Resources: albums, carousel, counter,
|
|
279
|
+
Resources: albums, carousel, counter, map (comma/space separated)
|
|
280
280
|
Example: npx sunpeak new my-app "albums,carousel"
|
|
281
281
|
|
|
282
282
|
Inside your project, use npm scripts:
|