zelune 1.6.2 → 1.6.4

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/bin/cli.mjs +13 -54
  3. package/dist/assets/CheckoutScreen-6IdrpKgm.js +229 -0
  4. package/dist/assets/HomeScreen-Dxe9L4I2.js +316 -0
  5. package/dist/assets/LoginScreen-Dp1awI4F.js +189 -0
  6. package/dist/assets/ProductDetailScreen-Wa5_nlRP.js +196 -0
  7. package/dist/assets/ProfileScreen-riAU6vVh.js +185 -0
  8. package/dist/assets/index-hEzd4JVy.js +44697 -0
  9. package/{index.html → dist/index.html} +3 -7
  10. package/mcp/server.mjs +1370 -34
  11. package/package.json +10 -17
  12. package/plugin.json +1 -1
  13. package/socket.yml +11 -0
  14. package/mcp/server.ts +0 -446
  15. package/plugins/viteReactNativeFallbackPlugin.ts +0 -519
  16. package/plugins/viteRnSourceInject.ts +0 -117
  17. package/plugins/viteVirtualScreensPlugin.ts +0 -216
  18. package/src/canvas/CanvasApp.tsx +0 -1655
  19. package/src/canvas/FlowArrowsLayer.tsx +0 -239
  20. package/src/canvas/InspectorPanel.tsx +0 -1494
  21. package/src/canvas/ScreenArtboard.tsx +0 -1491
  22. package/src/canvas/types.ts +0 -23
  23. package/src/main.tsx +0 -80
  24. package/src/runtime/MockNavigationContext.tsx +0 -1795
  25. package/src/runtime/ScreenErrorBoundary.tsx +0 -86
  26. package/src/runtime/nativewindShim.ts +0 -997
  27. package/src/runtime/reactNativeShim.ts +0 -240
  28. package/src/screens/CheckoutScreen.tsx +0 -229
  29. package/src/screens/HomeScreen.tsx +0 -288
  30. package/src/screens/LoginScreen.tsx +0 -176
  31. package/src/screens/ProductDetailScreen.tsx +0 -207
  32. package/src/screens/ProfileScreen.tsx +0 -172
  33. package/src/screens/index.ts +0 -1
  34. package/src/server/apiMiddleware.ts +0 -375
  35. package/src/server/astEngine.ts +0 -2553
  36. package/src/vite-env.d.ts +0 -7
  37. package/tsconfig.json +0 -23
  38. package/vite.config.ts +0 -340
  39. /package/{src/styles.css → dist/assets/index-C7nrS82N.css} +0 -0
@@ -1,86 +0,0 @@
1
- import React from 'react';
2
-
3
- interface ScreenErrorBoundaryProps {
4
- screenName: string;
5
- children: React.ReactNode;
6
- }
7
-
8
- interface ScreenErrorBoundaryState {
9
- hasError: boolean;
10
- errorMessage: string | null;
11
- }
12
-
13
- export class ScreenErrorBoundary extends React.Component<
14
- ScreenErrorBoundaryProps,
15
- ScreenErrorBoundaryState
16
- > {
17
- constructor(props: ScreenErrorBoundaryProps) {
18
- super(props);
19
- this.state = { hasError: false, errorMessage: null };
20
- }
21
-
22
- static getDerivedStateFromError(error: unknown): ScreenErrorBoundaryState {
23
- return {
24
- hasError: true,
25
- errorMessage: error instanceof Error ? error.message : String(error),
26
- };
27
- }
28
-
29
- render() {
30
- if (this.state.hasError) {
31
- return (
32
- <div
33
- style={{
34
- height: '100%',
35
- width: '100%',
36
- backgroundColor: '#18181B',
37
- color: '#FCA5A5',
38
- padding: 24,
39
- display: 'flex',
40
- flexDirection: 'column',
41
- justifyContent: 'center',
42
- gap: 12,
43
- fontFamily: 'JetBrains Mono, monospace',
44
- }}
45
- >
46
- <div style={{ fontSize: 13, fontWeight: 700, color: '#F87171' }}>
47
- Runtime Error in {this.props.screenName}
48
- </div>
49
- <div
50
- style={{
51
- fontSize: 12,
52
- lineHeight: 1.5,
53
- backgroundColor: '#09090B',
54
- padding: 12,
55
- borderRadius: 8,
56
- border: '1px solid #7F1D1D',
57
- whiteSpace: 'pre-wrap',
58
- wordBreak: 'break-word',
59
- }}
60
- >
61
- {this.state.errorMessage}
62
- </div>
63
- <button
64
- type="button"
65
- onClick={() => this.setState({ hasError: false, errorMessage: null })}
66
- style={{
67
- alignSelf: 'flex-start',
68
- padding: '6px 12px',
69
- backgroundColor: '#EF4444',
70
- color: '#FFFFFF',
71
- border: 'none',
72
- borderRadius: 6,
73
- fontSize: 12,
74
- fontWeight: 600,
75
- cursor: 'pointer',
76
- }}
77
- >
78
- Retry Render
79
- </button>
80
- </div>
81
- );
82
- }
83
-
84
- return this.props.children;
85
- }
86
- }