@tpitre/story-ui 4.9.1 → 4.9.2

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 CHANGED
@@ -481,6 +481,21 @@ claude mcp add --transport http story-ui https://your-app-name.up.railway.app/mc
481
481
 
482
482
  Or add it to Claude Desktop via **Settings** → **Connectors** → **Add custom connector**.
483
483
 
484
+ **Important for Storybook Live Mode Deployments:**
485
+
486
+ If deploying Storybook with Story UI integrated (where users can generate stories in the deployed app), ensure the StoryUI panel files are committed to git:
487
+
488
+ ```bash
489
+ # Check if StoryUI is incorrectly gitignored
490
+ grep "StoryUI" .gitignore
491
+
492
+ # If found, remove from .gitignore and commit the panel
493
+ git add src/stories/StoryUI/
494
+ git commit -m "Add StoryUI panel for production"
495
+ ```
496
+
497
+ > **Note**: Story UI versions prior to 4.10.0 incorrectly added `src/stories/StoryUI/` to `.gitignore`. See [DEPLOYMENT.md](DEPLOYMENT.md#storybook-live-mode-deployment) for full instructions.
498
+
484
499
  See [DEPLOYMENT.md](DEPLOYMENT.md) for detailed deployment instructions and troubleshooting.
485
500
 
486
501
  ---
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../cli/setup.ts"],"names":[],"mappings":"AAmDA;;GAEG;AACH,wBAAgB,iCAAiC,SA8ChD;AAiWD,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC7C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,OAAO,GAAE,YAAiB,iBA45B5D"}
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../cli/setup.ts"],"names":[],"mappings":"AAmDA;;GAEG;AACH,wBAAgB,iCAAiC,SA8ChD;AAiWD,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC7C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,OAAO,GAAE,YAAiB,iBA85B5D"}
package/dist/cli/setup.js CHANGED
@@ -1153,10 +1153,12 @@ VITE_STORY_UI_PORT=${answers.mcpPort || '4001'}
1153
1153
  const gitignorePath = path.join(process.cwd(), '.gitignore');
1154
1154
  if (fs.existsSync(gitignorePath)) {
1155
1155
  const gitignoreContent = fs.readFileSync(gitignorePath, 'utf-8');
1156
+ // NOTE: Do NOT add StoryUI/ to gitignore - it must be committed for production deployments
1157
+ // The StoryUI panel component needs to be deployed to Railway/production environments
1156
1158
  const patterns = [
1157
1159
  '.env',
1158
1160
  path.relative(process.cwd(), config.generatedStoriesPath),
1159
- `${path.relative(process.cwd(), storiesDir)}/StoryUI/`
1161
+ '.story-ui-history/'
1160
1162
  ];
1161
1163
  let gitignoreUpdated = false;
1162
1164
  for (const pattern of patterns) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpitre/story-ui",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
4
4
  "description": "AI-powered Storybook story generator with dynamic component discovery",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",