@legendapp/spark 0.0.1-next.4 → 0.0.1-next.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.
Files changed (132) hide show
  1. package/README.md +1 -1
  2. package/customize.ts +2 -0
  3. package/html.ts +1 -0
  4. package/markdown.ts +1 -0
  5. package/package.json +22 -13
  6. package/patches/dependencies.json +10 -4
  7. package/patches/react-native-enriched-html@1.1.1.patch +854 -0
  8. package/patches/{react-native-enriched-markdown@1.0.2.patch → react-native-enriched-markdown@1.1.1.patch} +2560 -1983
  9. package/schema.json +104 -0
  10. package/skills/spark/SKILL.md +56 -0
  11. package/skills/spark/UPGRADING.md +254 -0
  12. package/vendor/node_modules/@legendapp/spark-ai/package.json +4 -4
  13. package/vendor/node_modules/@legendapp/spark-ai/src/invocation-command.cjs +11 -0
  14. package/vendor/node_modules/@legendapp/spark-ai/src/invocation-command.d.cts +2 -0
  15. package/vendor/node_modules/@legendapp/spark-ai/src/invocations.ts +2 -19
  16. package/vendor/node_modules/@legendapp/spark-audio/package.json +3 -3
  17. package/vendor/node_modules/@legendapp/spark-auth-session/package.json +3 -3
  18. package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +4 -4
  19. package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +3 -0
  20. package/vendor/node_modules/@legendapp/spark-cli/dist/create.js +31 -11
  21. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-ai.cjs +108 -0
  22. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-artifacts.js +315 -0
  23. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-cli.cjs +75 -0
  24. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-github.cjs +133 -0
  25. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-policy.cjs +102 -0
  26. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-provider.cjs +2 -0
  27. package/vendor/node_modules/@legendapp/spark-cli/dist/customize-worker.cjs +273 -0
  28. package/vendor/node_modules/@legendapp/spark-cli/dist/dependency-pins.js +54 -29
  29. package/vendor/node_modules/@legendapp/spark-cli/dist/dev-command.js +2 -0
  30. package/vendor/node_modules/@legendapp/spark-cli/dist/enriched-html-pins.js +128 -0
  31. package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-patch.cjs +30 -1
  32. package/vendor/node_modules/@legendapp/spark-cli/dist/index.js +16 -7
  33. package/vendor/node_modules/@legendapp/spark-cli/dist/init-template.d.cts +1 -0
  34. package/vendor/node_modules/@legendapp/spark-cli/dist/js-runtime.cjs +96 -0
  35. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.cjs +152 -0
  36. package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.d.cts +15 -0
  37. package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +184 -0
  38. package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.d.cts +16 -0
  39. package/vendor/node_modules/@legendapp/spark-cli/dist/native-patch-preflight.js +2 -0
  40. package/vendor/node_modules/@legendapp/spark-cli/dist/package-manager-config.js +41 -0
  41. package/vendor/node_modules/@legendapp/spark-cli/dist/package-manager.js +13 -0
  42. package/vendor/node_modules/@legendapp/spark-cli/dist/project-version.js +12 -0
  43. package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +40 -9
  44. package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +19 -19
  45. package/vendor/node_modules/@legendapp/spark-cli/dist/runtime-bootstrap.ps1 +87 -0
  46. package/vendor/node_modules/@legendapp/spark-cli/dist/runtime-bootstrap.sh +107 -0
  47. package/vendor/node_modules/@legendapp/spark-cli/dist/runtime-downloads.tsv +13 -0
  48. package/vendor/node_modules/@legendapp/spark-cli/dist/sdk-install.js +8 -3
  49. package/vendor/node_modules/@legendapp/spark-cli/dist/upgrade.js +102 -0
  50. package/vendor/node_modules/@legendapp/spark-cli/package.json +6 -4
  51. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/.claude/skills/spark/SKILL.md +9 -0
  52. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/AGENTS.md +4 -0
  53. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/CLAUDE.md +4 -0
  54. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/README.md +15 -0
  55. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +46 -2
  56. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/.claude/skills/spark/SKILL.md +9 -0
  57. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/AGENTS.md +4 -0
  58. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/CLAUDE.md +4 -0
  59. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/README.md +15 -0
  60. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +45 -2
  61. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/.claude/skills/spark/SKILL.md +9 -0
  62. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/AGENTS.md +4 -0
  63. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/CLAUDE.md +4 -0
  64. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/README.md +15 -0
  65. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +46 -2
  66. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +3 -3
  67. package/vendor/node_modules/@legendapp/spark-codex/package.json +3 -3
  68. package/vendor/node_modules/@legendapp/spark-commands/package.json +6 -6
  69. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +3 -3
  70. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/RNDesktopApp.mm +14 -1
  71. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +2 -2
  72. package/vendor/node_modules/@legendapp/spark-desktop-app/src/customize-hooks.ts +17 -0
  73. package/vendor/node_modules/@legendapp/spark-desktop-app/src/customize.ts +117 -0
  74. package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +20 -1
  75. package/vendor/node_modules/@legendapp/spark-desktop-config/config.cjs +3 -2
  76. package/vendor/node_modules/@legendapp/spark-desktop-config/config.d.cts +14 -0
  77. package/vendor/node_modules/@legendapp/spark-desktop-config/customize-provider.cjs +16 -0
  78. package/vendor/node_modules/@legendapp/spark-desktop-config/customize.cjs +16 -0
  79. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +4 -4
  80. package/vendor/node_modules/@legendapp/spark-desktop-config/schema.json +104 -0
  81. package/vendor/node_modules/@legendapp/spark-desktop-host/SparkCustomize.mm +517 -0
  82. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +4 -3
  83. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +3 -3
  84. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/macos/RNDesktopShortcuts.mm +3 -1
  85. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/macos/keyboard-manager/RNKeyboardManager.h +3 -0
  86. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/macos/keyboard-manager/RNKeyboardManager.mm +1 -1
  87. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +3 -3
  88. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +5 -4
  89. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +4 -4
  90. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/api.ts +62 -25
  91. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +7 -5
  92. package/vendor/node_modules/@legendapp/spark-documents/package.json +8 -8
  93. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +3 -3
  94. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +3 -3
  95. package/vendor/node_modules/@legendapp/spark-file-system/macos/SparkFileMutations.h +1 -0
  96. package/vendor/node_modules/@legendapp/spark-file-system/macos/SparkFileMutations.mm +11 -10
  97. package/vendor/node_modules/@legendapp/spark-file-system/package.json +3 -3
  98. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +3 -3
  99. package/vendor/node_modules/@legendapp/spark-html/package.json +24 -0
  100. package/vendor/node_modules/@legendapp/spark-html/src/Html.tsx +22 -0
  101. package/vendor/node_modules/@legendapp/spark-html/src/HtmlInput.tsx +102 -0
  102. package/vendor/node_modules/@legendapp/spark-html/src/index.ts +4 -0
  103. package/vendor/node_modules/@legendapp/spark-html/src/types.ts +4 -0
  104. package/vendor/node_modules/@legendapp/spark-markdown/package.json +24 -0
  105. package/vendor/node_modules/@legendapp/spark-markdown/src/Markdown.tsx +24 -0
  106. package/vendor/node_modules/@legendapp/spark-markdown/src/MarkdownInput.tsx +111 -0
  107. package/vendor/node_modules/@legendapp/spark-markdown/src/index.ts +4 -0
  108. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +3 -3
  109. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +3 -3
  110. package/vendor/node_modules/@legendapp/spark-notifications/package.json +3 -3
  111. package/vendor/node_modules/@legendapp/spark-processes/package.json +3 -3
  112. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +18 -0
  113. package/vendor/node_modules/@legendapp/spark-rich-text/src/components.tsx +52 -0
  114. package/vendor/node_modules/@legendapp/spark-rich-text/src/index.ts +4 -0
  115. package/vendor/node_modules/@legendapp/spark-rich-text/src/types.ts +24 -0
  116. package/vendor/node_modules/@legendapp/spark-rich-text/src/useInputShortcuts.macos.ts +55 -0
  117. package/vendor/node_modules/@legendapp/spark-rich-text/src/useInputShortcuts.ts +13 -0
  118. package/vendor/node_modules/@legendapp/spark-rich-text/src/useInputValue.ts +14 -0
  119. package/vendor/node_modules/@legendapp/spark-rich-text/src/value.ts +16 -0
  120. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +3 -3
  121. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  122. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +5 -5
  123. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +3 -3
  124. package/vendor/node_modules/@legendapp/spark-system/package.json +3 -3
  125. package/vendor/node_modules/@legendapp/spark-tray/package.json +3 -3
  126. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +102 -14
  127. package/vendor/node_modules/@legendapp/spark-ui/package.json +3 -3
  128. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +5 -0
  129. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +12 -4
  130. package/vendor/node_modules/@legendapp/spark-updates/package.json +3 -3
  131. package/vendor/node_modules/@legendapp/spark-webview/package.json +2 -2
  132. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ Legend Spark adds native desktop APIs and a managed development workflow to Reac
9
9
  Requires Node 24.19.0 or newer. The single `@legendapp/spark` npm package contains the CLI and private implementation modules; no separate Spark module installs are needed. Bun is optional.
10
10
 
11
11
  ```sh
12
- npx @legendapp/spark@next create MyApp
12
+ npm create @legendapp/spark@next MyApp
13
13
  cd MyApp
14
14
  npm run macos
15
15
  ```
package/customize.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./vendor/node_modules/@legendapp/spark-desktop-app/src/customize";
2
+ export * from "./vendor/node_modules/@legendapp/spark-desktop-app/src/customize-hooks";
package/html.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./vendor/node_modules/@legendapp/spark-html";
package/markdown.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./vendor/node_modules/@legendapp/spark-markdown";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark",
3
- "version": "0.0.1-next.4",
3
+ "version": "0.0.1-next.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,7 +72,10 @@
72
72
  "./diagnostics": "./diagnostics.ts",
73
73
  "./ai": "./ai.ts",
74
74
  "./ai/codex": "./ai-codex.ts",
75
- "./camera": "./camera.ts"
75
+ "./camera": "./camera.ts",
76
+ "./customize": "./customize.ts",
77
+ "./markdown": "./markdown.ts",
78
+ "./html": "./html.ts"
76
79
  },
77
80
  "files": [
78
81
  "*.ts",
@@ -80,26 +83,29 @@
80
83
  "schema.json",
81
84
  "bin",
82
85
  "*.d.cts",
83
- "patches"
86
+ "patches",
87
+ "skills"
84
88
  ],
85
89
  "dependencies": {
86
90
  "base64-js": "1.5.1",
87
91
  "ws": "8.21.0",
88
92
  "expo-desktop": "1.0.0",
89
- "npm": "11.21.0",
93
+ "npm": "11.21.1",
90
94
  "typescript": "5.9.3",
91
95
  "cross-spawn": "7.0.6",
96
+ "diff": "8.0.4",
97
+ "yaml": "2.9.1",
92
98
  "react-native-nitro-modules": "0.37.0",
93
99
  "@legendapp/state": "^3.0.0-beta.42",
94
100
  "expo-desktop-config-plugins": "1.2.0",
95
101
  "@expo/config-plugins": "54.0.5",
96
102
  "@expo/config-types": "54.0.10",
97
- "diff": "8.0.2",
98
103
  "@react-native-runtimes/core": "0.1.0-alpha.2",
99
104
  "@react-native-community/cli-types": "20.1.3",
100
105
  "react-native-vision-camera": "5.2.3",
101
106
  "react-native-nitro-image": "0.15.2",
102
- "react-native-enriched-markdown": "1.0.2",
107
+ "react-native-enriched-markdown": "1.1.1",
108
+ "react-native-enriched-html": "1.1.1",
103
109
  "@op-engineering/op-sqlite": "18.2.1",
104
110
  "clsx": "^2.1.1",
105
111
  "tailwind-merge": "^3.4.0",
@@ -113,14 +119,14 @@
113
119
  "node": ">=24.19.0"
114
120
  },
115
121
  "peerDependencies": {
116
- "react": "19.1.4",
122
+ "react": "^19.1.0",
117
123
  "react-native": "0.81.6",
118
124
  "expo-audio": "1.1.1",
119
125
  "expo-web-browser": "~15.0.10",
120
126
  "expo-crypto": "~15.0.8",
121
127
  "expo-clipboard": "~8.0.8",
122
128
  "expo": "54.0.37",
123
- "react-dom": "19.1.4",
129
+ "react-dom": "^19.1.0",
124
130
  "expo-linking": "~8.0.12",
125
131
  "expo-secure-store": "~15.0.8",
126
132
  "@legendapp/list": ">=3.3.0",
@@ -170,7 +176,7 @@
170
176
  "spark": {
171
177
  "nativePatchRequirements": {
172
178
  "schema": 1,
173
- "frameworkVersion": "0.0.1-next.4",
179
+ "frameworkVersion": "0.0.1-next.6",
174
180
  "packages": {
175
181
  "@react-native-runtimes/core": {
176
182
  "version": "0.1.0-alpha.2",
@@ -179,22 +185,22 @@
179
185
  },
180
186
  "react-native-nitro-modules": {
181
187
  "version": "0.37.0",
182
- "patchHash": "bd582f6bd686bd9058a2eae193854e86a1f66d0d8334fbcafd2b0cab16dadaa4",
188
+ "patchHash": "e6690996301b00fbfb1a5e5ac61bafaa53c53b1f292afbcaad2a005c0f1015ad",
183
189
  "upstreamIntegrity": "sha512-ULS2CBZcdwGw5d4Y35EV/tbCOsNsQOnQ9LC9CehMhDNm5c90lwF/LxRamzKuFpjI547G7teTQgD0peqYSGnP9g=="
184
190
  },
185
191
  "@op-engineering/op-sqlite": {
186
192
  "version": "18.2.1",
187
- "patchHash": "d535dcd20aa0f5bcf8860086eb6484c73b1e84d8a586ea9fe74dca76085955a0",
193
+ "patchHash": "ed2e06655ff679ed39c1674852a2fe02da6e93502cf0442a993f8e97cfcd92f5",
188
194
  "upstreamIntegrity": "sha512-atVOtXyFzO0e454eVS27AMwRs515URCKrkvLLG+mGKcyiF5UPfC53oukpNp2UmVzlLebyTEXNkTYs6n0dVGd0g=="
189
195
  },
190
196
  "react-native-webview": {
191
197
  "version": "16.0.0",
192
- "patchHash": "43cfd2d36780e085223bc7497719c7c64ec1bea1da82362e751f9937a0349e1a",
198
+ "patchHash": "79707d6b12a131a9cb92088082c8b50d4d1b459224bc963814935fb6c55e0ba6",
193
199
  "upstreamIntegrity": "sha512-KIg5Yhy04lQfHdXC1JQPM+0kftMfPnH6AqDH7v6YskQ9kzfUacooofOFRmbaZHASq/0WY87Fx0peiFETFjOcCg=="
194
200
  },
195
201
  "expo-audio": {
196
202
  "version": "1.1.1",
197
- "patchHash": "e9348063295113222c6d03e5bf8cac2c3a7a0b283e40166c257fad60b423dd14",
203
+ "patchHash": "e8b6a0cd4e2a111f23eb4f98b1d6577256064fdb451cc1a1538859220c7851f2",
198
204
  "upstreamIntegrity": "sha512-CPCpJ+0AEHdzWROc0f00Zh6e+irLSl2ALos/LPvxEeIcJw1APfBa4DuHPkL4CQCWsVe7EnUjFpdwpqsEUWcP0g=="
199
205
  }
200
206
  }
@@ -219,10 +225,13 @@
219
225
  "@legendapp/spark-file-dialog",
220
226
  "@legendapp/spark-file-system",
221
227
  "@legendapp/spark-global-shortcuts",
228
+ "@legendapp/spark-html",
229
+ "@legendapp/spark-markdown",
222
230
  "@legendapp/spark-message-dialog",
223
231
  "@legendapp/spark-native-menu",
224
232
  "@legendapp/spark-notifications",
225
233
  "@legendapp/spark-processes",
234
+ "@legendapp/spark-rich-text",
226
235
  "@legendapp/spark-secure-storage",
227
236
  "@legendapp/spark-settings",
228
237
  "@legendapp/spark-settings-ui",
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "react-native-enriched-markdown": {
3
- "version": "1.0.2",
4
- "url": "https://registry.npmjs.org/react-native-enriched-markdown/-/react-native-enriched-markdown-1.0.2.tgz",
5
- "integrity": "sha512-zvVM4W1VMV/cYAKUTYoVheadOGHLbny2kALFn0vi5av/WFa0JSYboeeq/vPRqS5dc8qvUTjXwVlrkhrcuinNQA==",
6
- "patch": "react-native-enriched-markdown@1.0.2.patch"
3
+ "version": "1.1.1",
4
+ "url": "https://registry.npmjs.org/react-native-enriched-markdown/-/react-native-enriched-markdown-1.1.1.tgz",
5
+ "integrity": "sha512-JvbRIVy75MAoGCv8V6sSscu11/Ian588wfIgH+j64XFpf6gy5sNNkMyG087MH88jNCf3p7fTjgEAGxZMhEqL4A==",
6
+ "patch": "react-native-enriched-markdown@1.1.1.patch"
7
+ },
8
+ "react-native-enriched-html": {
9
+ "version": "1.1.1",
10
+ "url": "https://registry.npmjs.org/react-native-enriched-html/-/react-native-enriched-html-1.1.1.tgz",
11
+ "integrity": "sha512-OlJLESOgA4eqgWQe3BXOK9kFk7iypOnQo22sIce5k/x2eGsOtnAwDPqHnaVfnOZlzzNWh+wXRzxuSL1tSBOkgA==",
12
+ "patch": "react-native-enriched-html@1.1.1.patch"
7
13
  }
8
14
  }