@tpitre/story-ui 4.16.2 → 4.16.3

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.
@@ -880,13 +880,15 @@ app.listen(PORT, () => {
880
880
  console.error(`MCP server running on port ${PORT}`);
881
881
  console.error(`Stories will be generated to: ${config.generatedStoriesPath}`);
882
882
  // Ensure voice-canvas scratchpad story file exists before client polling starts.
883
- // If it's missing, the first canvas generate creates it, triggering a false-positive
884
- // "externally generated story" detection which reloads the page and kills Voice Canvas.
885
- try {
886
- ensureVoiceCanvasStory(config.generatedStoriesPath || './src/stories/generated/');
887
- }
888
- catch (err) {
889
- console.error('[voice-canvas] Could not pre-create story template:', err);
883
+ // Only for React projects voice-canvas.stories.tsx imports react-live which
884
+ // breaks non-React Storybook builds (Vue, Angular, Svelte, Web Components).
885
+ if (!config.componentFramework || config.componentFramework === 'react') {
886
+ try {
887
+ ensureVoiceCanvasStory(config.generatedStoriesPath || './src/stories/generated/');
888
+ }
889
+ catch (err) {
890
+ console.error('[voice-canvas] Could not pre-create story template:', err);
891
+ }
890
892
  }
891
893
  // Initialize manifest manager (loads file, migrates from StoryTracker, reconciles)
892
894
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpitre/story-ui",
3
- "version": "4.16.2",
3
+ "version": "4.16.3",
4
4
  "description": "AI-powered Storybook story generator with dynamic component discovery",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",