@legendapp/spark 0.0.1-next.9 → 0.0.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.
Files changed (104) hide show
  1. package/native.d.cts +6 -3
  2. package/package.json +36 -28
  3. package/patches/react-native-enriched-markdown@1.1.1.patch +2000 -3379
  4. package/skills/spark/UPGRADING.md +106 -3
  5. package/vendor/node_modules/@legendapp/spark-ai/package.json +5 -5
  6. package/vendor/node_modules/@legendapp/spark-audio/package.json +5 -5
  7. package/vendor/node_modules/@legendapp/spark-audio/src/index.macos.ts +1 -0
  8. package/vendor/node_modules/@legendapp/spark-auth-session/package.json +6 -6
  9. package/vendor/node_modules/@legendapp/spark-auth-session/src/index.macos.ts +1 -0
  10. package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +2 -2
  11. package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +11 -2
  12. package/vendor/node_modules/@legendapp/spark-cli/dist/cli-arguments.js +4 -2
  13. package/vendor/node_modules/@legendapp/spark-cli/dist/create.js +8 -4
  14. package/vendor/node_modules/@legendapp/spark-cli/dist/dependency-pins.js +45 -1
  15. package/vendor/node_modules/@legendapp/spark-cli/dist/dev.js +13 -2
  16. package/vendor/node_modules/@legendapp/spark-cli/dist/examples.js +2 -2
  17. package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-patch.cjs +3 -3
  18. package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-preload.cjs +3 -0
  19. package/vendor/node_modules/@legendapp/spark-cli/dist/index.js +26 -7
  20. package/vendor/node_modules/@legendapp/spark-cli/dist/metro.cjs +3 -1
  21. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.cjs +20 -5
  22. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.d.cts +1 -0
  23. package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +7 -2
  24. package/vendor/node_modules/@legendapp/spark-cli/dist/native-patch-preflight.js +3 -3
  25. package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +16 -10
  26. package/vendor/node_modules/@legendapp/spark-cli/dist/release-runner-root.js +108 -0
  27. package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +13 -13
  28. package/vendor/node_modules/@legendapp/spark-cli/dist/runner-install.js +4 -2
  29. package/vendor/node_modules/@legendapp/spark-cli/dist/session-status.js +7 -3
  30. package/vendor/node_modules/@legendapp/spark-cli/dist/watchman.js +12 -0
  31. package/vendor/node_modules/@legendapp/spark-cli/dist/windows-geometry.js +2 -2
  32. package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +1 -1
  33. package/vendor/node_modules/@legendapp/spark-cli/package.json +3 -3
  34. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/desktop.config.json +1 -1
  35. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +27 -25
  36. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/desktop.config.json +1 -1
  37. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +35 -33
  38. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +29 -27
  39. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +5 -5
  40. package/vendor/node_modules/@legendapp/spark-clipboard/src/index.macos.ts +1 -0
  41. package/vendor/node_modules/@legendapp/spark-codex/package.json +4 -4
  42. package/vendor/node_modules/@legendapp/spark-commands/package.json +7 -7
  43. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +4 -4
  44. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +7 -2
  45. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +3 -3
  46. package/vendor/node_modules/@legendapp/spark-desktop-config/accessibility-state.cjs +2 -2
  47. package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +12 -0
  48. package/vendor/node_modules/@legendapp/spark-desktop-config/autolinking.cjs +4 -4
  49. package/vendor/node_modules/@legendapp/spark-desktop-config/config.d.cts +1 -1
  50. package/vendor/node_modules/@legendapp/spark-desktop-config/fabric-lifecycle.cjs +1 -1
  51. package/vendor/node_modules/@legendapp/spark-desktop-config/keyboard-events.cjs +2 -2
  52. package/vendor/node_modules/@legendapp/spark-desktop-config/macos-host.cjs +39 -0
  53. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +47 -12
  54. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +2 -1
  55. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +8 -6
  56. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-scroll-view.cjs +2 -2
  57. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-alignment.cjs +2 -2
  58. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-input-alignment.cjs +2 -2
  59. package/vendor/node_modules/@legendapp/spark-desktop-config/text-input-accessibility.cjs +2 -2
  60. package/vendor/node_modules/@legendapp/spark-desktop-host/macos/AppDelegate.h +6 -0
  61. package/vendor/node_modules/@legendapp/spark-desktop-host/macos/Main.storyboard +684 -0
  62. package/vendor/node_modules/@legendapp/spark-desktop-host/macos/main.m +5 -0
  63. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +3 -2
  64. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +5 -5
  65. package/vendor/node_modules/@legendapp/spark-desktop-links/src/index.macos.ts +1 -0
  66. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +4 -4
  67. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +68 -17
  68. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +5 -5
  69. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +2 -1
  70. package/vendor/node_modules/@legendapp/spark-documents/package.json +9 -9
  71. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +4 -4
  72. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +4 -4
  73. package/vendor/node_modules/@legendapp/spark-file-system/macos/RNDesktopFileSystem.mm +14 -5
  74. package/vendor/node_modules/@legendapp/spark-file-system/package.json +4 -4
  75. package/vendor/node_modules/@legendapp/spark-file-system/src/index.ts +1 -1
  76. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +4 -4
  77. package/vendor/node_modules/@legendapp/spark-html/package.json +4 -4
  78. package/vendor/node_modules/@legendapp/spark-markdown/package.json +4 -4
  79. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +4 -4
  80. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +4 -4
  81. package/vendor/node_modules/@legendapp/spark-notifications/package.json +4 -4
  82. package/vendor/node_modules/@legendapp/spark-processes/macos/RNDesktopProcesses.mm +110 -19
  83. package/vendor/node_modules/@legendapp/spark-processes/package.json +4 -4
  84. package/vendor/node_modules/@legendapp/spark-processes/src/index.ts +17 -3
  85. package/vendor/node_modules/@legendapp/spark-processes/src/types.ts +6 -0
  86. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +4 -4
  87. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +5 -5
  88. package/vendor/node_modules/@legendapp/spark-secure-storage/src/index.macos.ts +1 -0
  89. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  90. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +6 -6
  91. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +12 -5
  92. package/vendor/node_modules/@legendapp/spark-system/package.json +4 -4
  93. package/vendor/node_modules/@legendapp/spark-tray/package.json +4 -4
  94. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +82 -18
  95. package/vendor/node_modules/@legendapp/spark-ui/package.json +6 -6
  96. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +4 -0
  97. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +11 -9
  98. package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +20 -10
  99. package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +15 -10
  100. package/vendor/node_modules/@legendapp/spark-ui/src/index.macos.tsx +1 -0
  101. package/vendor/node_modules/@legendapp/spark-updates/package.json +4 -4
  102. package/vendor/node_modules/@legendapp/spark-webview/package.json +11 -4
  103. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
  104. package/camera.ts +0 -13
package/native.d.cts CHANGED
@@ -1,6 +1,9 @@
1
- import type { UserConfig } from "@react-native-community/cli-types";
2
- export type NativeConfiguration = Pick<Partial<UserConfig>, "platforms" | "dependencies">;
1
+ /** React Native discovery overrides produced by Spark. */
2
+ export type NativeConfiguration = {
3
+ platforms?: Record<string, { npmPackageName?: string }>;
4
+ dependencies?: Record<string, { root?: string; platforms?: Record<string, unknown> }>;
5
+ };
3
6
  /** Spark-owned project: generate native discovery configuration. */
4
7
  export function nativeConfig(root: string): NativeConfiguration;
5
8
  /** Existing Expo project: compose with its React Native CLI configuration. */
6
- export function withSparkNative<T extends Partial<UserConfig>>(config: T, root: string): T & NativeConfiguration;
9
+ export function withSparkNative<T extends object>(config: T, root: string): T & NativeConfiguration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark",
3
- "version": "0.0.1-next.9",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,7 +72,6 @@
72
72
  "./diagnostics": "./diagnostics.ts",
73
73
  "./ai": "./ai.ts",
74
74
  "./ai/codex": "./ai-codex.ts",
75
- "./camera": "./camera.ts",
76
75
  "./customize": "./customize.ts",
77
76
  "./markdown": "./markdown.ts",
78
77
  "./html": "./html.ts"
@@ -98,18 +97,11 @@
98
97
  "react-native-nitro-modules": "0.37.0",
99
98
  "@legendapp/state": "^3.0.0-beta.42",
100
99
  "expo-desktop-config-plugins": "1.3.2",
101
- "@expo/config-plugins": "54.0.5",
102
- "@expo/config-types": "54.0.10",
100
+ "@expo/config-plugins": "55.0.12",
103
101
  "@react-native-runtimes/core": "0.1.0-alpha.2",
104
- "@react-native-community/cli-types": "20.1.3",
105
- "react-native-vision-camera": "5.2.3",
106
- "react-native-nitro-image": "0.15.2",
107
- "react-native-enriched-markdown": "1.1.1",
108
- "react-native-enriched-html": "1.1.1",
109
- "@op-engineering/op-sqlite": "18.2.1",
102
+ "@react-native-windows/find-dotnet-tools": "0.0.0-canary.3",
110
103
  "clsx": "^2.1.1",
111
- "tailwind-merge": "^3.4.0",
112
- "react-native-webview": "16.0.0"
104
+ "tailwind-merge": "^3.4.0"
113
105
  },
114
106
  "description": "Legend Spark — native applications with React Native and Expo",
115
107
  "bin": {
@@ -119,20 +111,24 @@
119
111
  "node": ">=24.19.0"
120
112
  },
121
113
  "peerDependencies": {
122
- "react": "^19.1.0",
123
- "react-native": "0.81.6",
124
- "expo-audio": "1.1.1",
125
- "expo-web-browser": "~15.0.10",
126
- "expo-crypto": "~15.0.8",
127
- "expo-clipboard": "~8.0.8",
128
- "expo": "54.0.37",
129
- "react-dom": "^19.1.0",
130
- "expo-linking": "~8.0.12",
131
- "expo-secure-store": "~15.0.8",
114
+ "react": "^19.2.0",
115
+ "react-native": "0.83.10",
116
+ "expo-audio": "55.0.18",
117
+ "expo-web-browser": "~55.0.20",
118
+ "expo-crypto": "~55.0.19",
119
+ "expo-clipboard": "~55.0.17",
120
+ "expo": "55.0.32",
121
+ "react-dom": "^19.2.0",
122
+ "react-native-enriched-markdown": "1.1.1",
123
+ "react-native-enriched-html": "1.1.1",
124
+ "expo-linking": "~55.0.17",
125
+ "expo-secure-store": "~55.0.18",
132
126
  "@legendapp/list": ">=3.3.0",
133
- "@expo/ui": "0.2.0-beta.9",
127
+ "@op-engineering/op-sqlite": "18.2.1",
128
+ "@expo/ui": "55.0.17",
134
129
  "uniwind": "^1.6.3",
135
- "react-native-windows": "0.81.35"
130
+ "react-native-windows": "0.83.2",
131
+ "react-native-webview": "16.0.0"
136
132
  },
137
133
  "peerDependenciesMeta": {
138
134
  "expo-audio": {
@@ -150,12 +146,21 @@
150
146
  "react-dom": {
151
147
  "optional": true
152
148
  },
149
+ "react-native-enriched-markdown": {
150
+ "optional": true
151
+ },
152
+ "react-native-enriched-html": {
153
+ "optional": true
154
+ },
153
155
  "expo-linking": {
154
156
  "optional": true
155
157
  },
156
158
  "expo-secure-store": {
157
159
  "optional": true
158
160
  },
161
+ "@op-engineering/op-sqlite": {
162
+ "optional": true
163
+ },
159
164
  "@expo/ui": {
160
165
  "optional": true
161
166
  },
@@ -164,6 +169,9 @@
164
169
  },
165
170
  "react-native-windows": {
166
171
  "optional": true
172
+ },
173
+ "react-native-webview": {
174
+ "optional": true
167
175
  }
168
176
  },
169
177
  "publishConfig": {
@@ -176,7 +184,7 @@
176
184
  "spark": {
177
185
  "nativePatchRequirements": {
178
186
  "schema": 1,
179
- "frameworkVersion": "0.0.1-next.9",
187
+ "frameworkVersion": "0.0.2",
180
188
  "packages": {
181
189
  "@react-native-runtimes/core": {
182
190
  "version": "0.1.0-alpha.2",
@@ -199,9 +207,9 @@
199
207
  "upstreamIntegrity": "sha512-KIg5Yhy04lQfHdXC1JQPM+0kftMfPnH6AqDH7v6YskQ9kzfUacooofOFRmbaZHASq/0WY87Fx0peiFETFjOcCg=="
200
208
  },
201
209
  "expo-audio": {
202
- "version": "1.1.1",
203
- "patchHash": "e8b6a0cd4e2a111f23eb4f98b1d6577256064fdb451cc1a1538859220c7851f2",
204
- "upstreamIntegrity": "sha512-CPCpJ+0AEHdzWROc0f00Zh6e+irLSl2ALos/LPvxEeIcJw1APfBa4DuHPkL4CQCWsVe7EnUjFpdwpqsEUWcP0g=="
210
+ "version": "55.0.18",
211
+ "patchHash": "11548c0285732fa2898e3d1912633b8c4d2bded3ea46ff124a214e7d0d8e6770",
212
+ "upstreamIntegrity": "sha512-izDr80hhHXkfIZn0TXdCheUhWEVRV205a6j0gdhgJ9se36C9Yo+REyaqFrEI1La4p95vPXvaH7UkAx/EGRKNHQ=="
205
213
  }
206
214
  }
207
215
  },