@legendapp/spark 0.0.1 → 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 (102) 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 +141 -10
  4. package/skills/spark/UPGRADING.md +88 -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 +8 -1
  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/watchman.js +12 -0
  29. package/vendor/node_modules/@legendapp/spark-cli/dist/windows-geometry.js +2 -2
  30. package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +1 -1
  31. package/vendor/node_modules/@legendapp/spark-cli/package.json +3 -3
  32. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/desktop.config.json +1 -1
  33. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +27 -25
  34. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/desktop.config.json +1 -1
  35. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +35 -33
  36. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +29 -27
  37. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +5 -5
  38. package/vendor/node_modules/@legendapp/spark-clipboard/src/index.macos.ts +1 -0
  39. package/vendor/node_modules/@legendapp/spark-codex/package.json +4 -4
  40. package/vendor/node_modules/@legendapp/spark-commands/package.json +7 -7
  41. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +4 -4
  42. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +7 -2
  43. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +3 -3
  44. package/vendor/node_modules/@legendapp/spark-desktop-config/accessibility-state.cjs +2 -2
  45. package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +12 -0
  46. package/vendor/node_modules/@legendapp/spark-desktop-config/autolinking.cjs +4 -4
  47. package/vendor/node_modules/@legendapp/spark-desktop-config/config.d.cts +1 -1
  48. package/vendor/node_modules/@legendapp/spark-desktop-config/fabric-lifecycle.cjs +1 -1
  49. package/vendor/node_modules/@legendapp/spark-desktop-config/keyboard-events.cjs +2 -2
  50. package/vendor/node_modules/@legendapp/spark-desktop-config/macos-host.cjs +39 -0
  51. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +47 -12
  52. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +2 -1
  53. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +8 -6
  54. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-scroll-view.cjs +2 -2
  55. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-alignment.cjs +2 -2
  56. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-input-alignment.cjs +2 -2
  57. package/vendor/node_modules/@legendapp/spark-desktop-config/text-input-accessibility.cjs +2 -2
  58. package/vendor/node_modules/@legendapp/spark-desktop-host/macos/AppDelegate.h +6 -0
  59. package/vendor/node_modules/@legendapp/spark-desktop-host/macos/Main.storyboard +684 -0
  60. package/vendor/node_modules/@legendapp/spark-desktop-host/macos/main.m +5 -0
  61. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +3 -2
  62. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +5 -5
  63. package/vendor/node_modules/@legendapp/spark-desktop-links/src/index.macos.ts +1 -0
  64. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +4 -4
  65. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +68 -17
  66. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +5 -5
  67. package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +2 -1
  68. package/vendor/node_modules/@legendapp/spark-documents/package.json +9 -9
  69. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +4 -4
  70. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +4 -4
  71. package/vendor/node_modules/@legendapp/spark-file-system/macos/RNDesktopFileSystem.mm +14 -5
  72. package/vendor/node_modules/@legendapp/spark-file-system/package.json +4 -4
  73. package/vendor/node_modules/@legendapp/spark-file-system/src/index.ts +1 -1
  74. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +4 -4
  75. package/vendor/node_modules/@legendapp/spark-html/package.json +4 -4
  76. package/vendor/node_modules/@legendapp/spark-markdown/package.json +4 -4
  77. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +4 -4
  78. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +4 -4
  79. package/vendor/node_modules/@legendapp/spark-notifications/package.json +4 -4
  80. package/vendor/node_modules/@legendapp/spark-processes/macos/RNDesktopProcesses.mm +110 -19
  81. package/vendor/node_modules/@legendapp/spark-processes/package.json +4 -4
  82. package/vendor/node_modules/@legendapp/spark-processes/src/index.ts +17 -3
  83. package/vendor/node_modules/@legendapp/spark-processes/src/types.ts +6 -0
  84. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +4 -4
  85. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +5 -5
  86. package/vendor/node_modules/@legendapp/spark-secure-storage/src/index.macos.ts +1 -0
  87. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  88. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +6 -6
  89. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +12 -5
  90. package/vendor/node_modules/@legendapp/spark-system/package.json +4 -4
  91. package/vendor/node_modules/@legendapp/spark-tray/package.json +4 -4
  92. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +82 -18
  93. package/vendor/node_modules/@legendapp/spark-ui/package.json +6 -6
  94. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +4 -0
  95. package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +11 -9
  96. package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +20 -10
  97. package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +15 -10
  98. package/vendor/node_modules/@legendapp/spark-ui/src/index.macos.tsx +1 -0
  99. package/vendor/node_modules/@legendapp/spark-updates/package.json +4 -4
  100. package/vendor/node_modules/@legendapp/spark-webview/package.json +11 -4
  101. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
  102. package/camera.ts +0 -13
@@ -1,42 +1,42 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "0.0.1",
4
- "revision": "32dceb8493b2f1542677df8166293f73ff717bc5",
3
+ "version": "0.0.2",
4
+ "revision": "d3a7eead32459f8f6baf29ef868ea732c5081e47",
5
5
  "packages": {
6
6
  "@react-native-runtimes/core": {
7
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1/runtimes-4df45cb5ea74.tgz",
7
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.2/runtimes-4df45cb5ea74.tgz",
8
8
  "size": 54050,
9
9
  "sha256": "3a04e0455ac44b0bc11cfa315943ad84509c445111a2b3974ca85c8ed489827c"
10
10
  },
11
11
  "react-native-nitro-modules": {
12
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1/react-native-nitro-modules-0.37.0-5df8774796c4.tgz",
12
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.2/react-native-nitro-modules-0.37.0-5df8774796c4.tgz",
13
13
  "size": 145600,
14
14
  "sha256": "5df8774796c48ed54d238f3fada01b64d710b14077983c37f639607eb805e066"
15
15
  },
16
16
  "@op-engineering/op-sqlite": {
17
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1/op-engineering-op-sqlite-18.2.1-a14b99ecf491.tgz",
17
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.2/op-engineering-op-sqlite-18.2.1-a14b99ecf491.tgz",
18
18
  "size": 5847607,
19
19
  "sha256": "a14b99ecf4911b55f586b2c5d1f58ac48b0a9d8fe4b84fa6edef1a167630646b"
20
20
  },
21
21
  "react-native-webview": {
22
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1/react-native-webview-16.0.0-333e421ad38b.tgz",
22
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.2/react-native-webview-16.0.0-333e421ad38b.tgz",
23
23
  "size": 116285,
24
24
  "sha256": "333e421ad38b0da2b1dc7b3306de019f257e31bfd6cdb0272d97b1bb2b129354"
25
25
  },
26
26
  "expo-audio": {
27
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1/expo-audio-1.1.1-aff5604f2c4c.tgz",
28
- "size": 381841,
29
- "sha256": "aff5604f2c4cab23299a71e37e802a572b2e66e2e2250b20a261e664d5346693"
27
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.2/expo-audio-55.0.18-a8d70b5b39bd.tgz",
28
+ "size": 610139,
29
+ "sha256": "a8d70b5b39bd3b69d95528011f14aa93a0fdf7ff1e6c89e0f7489329230be060"
30
30
  }
31
31
  },
32
32
  "runners": {
33
33
  "macos-arm64": {
34
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1/spark-runner-macos-arm64.zip",
35
- "size": 20591017,
36
- "sha256": "e1b5edc98772cb1cfc488966f8110302d0eaa59a79937c001b31eb29fd83b7d2",
34
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.2/spark-runner-macos-arm64.zip",
35
+ "size": 13252497,
36
+ "sha256": "35a3051740765dcc2bec7547f56427b93c87843aa71157511b26975b44971d2c",
37
37
  "app": "SparkRunner.app",
38
38
  "teamId": "56DD97VT22",
39
- "fingerprint": "928cf0714e1e4a3105d7be2aa6db162b518af893c0428008c3465533106cb2fb"
39
+ "fingerprint": "4e0557cd9fe18a54c8554b09294f8e58f6c38d85db5302641acadccb6acdbadf"
40
40
  }
41
41
  }
42
42
  }
@@ -0,0 +1,12 @@
1
+ import { spawn } from "node:child_process";
2
+ // Metro waits on Watchman's watch-project without a timeout, so a wedged Watchman
3
+ // server leaves the app on a blank window. True when Watchman is installed but
4
+ // does not answer; a missing Watchman is Metro's ordinary Node-crawler case.
5
+ export function watchmanStalls(root, timeout = 10_000) {
6
+ return new Promise(resolve => {
7
+ const child = spawn("watchman", ["watch-project", root], { stdio: "ignore" });
8
+ const timer = setTimeout(() => { child.kill(); resolve(true); }, timeout);
9
+ const done = () => { clearTimeout(timer); resolve(false); };
10
+ child.on("error", done).on("exit", done);
11
+ });
12
+ }
@@ -21,8 +21,8 @@ export function patchWindowsGeometry(source) {
21
21
  export function prepareWindowsGeometry(root) {
22
22
  const req = createRequire(path.join(root, "package.json"));
23
23
  const manifest = req.resolve("react-native-windows/package.json");
24
- if (JSON.parse(readFileSync(manifest, "utf8")).version !== "0.81.35")
25
- throw new Error("spark's Windows geometry adapter requires react-native-windows 0.81.35");
24
+ if (JSON.parse(readFileSync(manifest, "utf8")).version !== "0.83.2")
25
+ throw new Error("spark's Windows geometry adapter requires react-native-windows 0.83.2");
26
26
  const rnw = path.dirname(manifest), source = path.join(rnw, "Microsoft.ReactNative/Fabric/ComponentView.h");
27
27
  const original = readFileSync(source, "utf8");
28
28
  const patched = patchWindowsGeometry(original);
@@ -65,7 +65,7 @@ export async function prepareWindows(root, mode) {
65
65
  const manifest = readFileSync(path.join(root, "package.json"), "utf8");
66
66
  try {
67
67
  await preserveWindowsBuildOutputs(root, async () => {
68
- await run(root, nodeCommand(root, "expo-desktop", "expo-desktop", ["prebuild", "--platform", "windows", "--template", "expo-desktop-template-bare-minimum@54.81.6", "--no-install"]), { env: { CI: "1" }, capture: true });
68
+ await run(root, nodeCommand(root, "expo-desktop", "expo-desktop", ["prebuild", "--platform", "windows", "--template", "expo-desktop-template-bare-minimum@55.83.10", "--no-install"]), { env: { CI: "1" }, capture: true });
69
69
  });
70
70
  // The beta template expands all-platform dependencies. Keep the consumer's installed graph.
71
71
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -11,13 +11,13 @@
11
11
  "node": ">=24.19.0"
12
12
  },
13
13
  "dependencies": {
14
- "@legendapp/spark-desktop-config": "0.0.1",
14
+ "@legendapp/spark-desktop-config": "0.0.2",
15
15
  "ws": "8.21.0",
16
16
  "expo-desktop": "1.0.6",
17
17
  "npm": "11.21.1",
18
18
  "typescript": "5.9.3",
19
19
  "cross-spawn": "7.0.6",
20
- "@legendapp/spark-window-options": "0.0.1",
20
+ "@legendapp/spark-window-options": "0.0.2",
21
21
  "diff": "8.0.4",
22
22
  "yaml": "2.9.1"
23
23
  },
@@ -10,7 +10,7 @@
10
10
  "restoreBounds": true
11
11
  },
12
12
  "macos": {
13
- "bundleIdentifier": "so.legend.spark.prototype.helloworld"
13
+ "bundleIdentifier": "com.example.helloworld"
14
14
  },
15
15
  "platforms": [
16
16
  "macos"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-template-blank-typescript",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": true,
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -13,40 +13,40 @@
13
13
  "postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
14
14
  },
15
15
  "dependencies": {
16
- "@legendapp/spark": "0.0.1",
17
- "expo": "54.0.37",
16
+ "@legendapp/spark": "0.0.2",
17
+ "expo": "55.0.32",
18
18
  "expo-desktop": "1.0.6",
19
19
  "expo-desktop-prebuild-config": "1.1.3",
20
20
  "expo-desktop-config-plugins": "1.3.2",
21
- "expo-desktop-metro-config": "54.81.3",
22
- "expo-desktop-template-bare-minimum": "54.81.6",
23
- "react": "19.1.4",
24
- "react-dom": "19.1.4",
25
- "react-native": "0.81.6",
26
- "react-native-macos": "0.81.7",
21
+ "expo-desktop-metro-config": "55.83.3",
22
+ "expo-desktop-template-bare-minimum": "55.83.10",
23
+ "react": "19.2.0",
24
+ "react-dom": "19.2.0",
25
+ "react-native": "0.83.10",
26
+ "react-native-macos": "0.83.0",
27
27
  "@react-native-community/cli": "20.1.3",
28
28
  "typescript": "5.9.3",
29
- "@types/react": "19.1.10",
29
+ "@types/react": "19.2.18",
30
30
  "@react-native-runtimes/core": "0.1.0-alpha.2"
31
31
  },
32
32
  "overrides": {
33
- "expo": "54.0.37",
34
- "@expo/cli": "54.0.27",
33
+ "expo": "55.0.32",
34
+ "@expo/cli": "55.0.37",
35
35
  "react-native-nitro-modules": "0.37.0",
36
36
  "react-native-webview": "16.0.0",
37
37
  "@op-engineering/op-sqlite": "18.2.1",
38
- "expo-asset": "12.0.13",
39
- "expo-constants": "18.0.14",
40
- "expo-file-system": "19.0.24",
41
- "expo-font": "14.0.12",
42
- "expo-keep-awake": "15.0.8",
43
- "expo-modules-core": "3.0.30",
44
- "expo-desktop-modules-core": "54.0.14",
45
- "expo-desktop-stubs": "54.0.15",
46
- "react": "19.1.4",
47
- "react-native": "0.81.6",
48
- "react-native-macos": "0.81.7",
49
- "react-native-windows": "0.81.35",
38
+ "expo-asset": "55.0.20",
39
+ "expo-constants": "55.0.17",
40
+ "expo-file-system": "55.0.26",
41
+ "expo-font": "55.0.8",
42
+ "expo-keep-awake": "55.0.8",
43
+ "expo-modules-core": "55.0.27",
44
+ "expo-desktop-modules-core": "55.0.2",
45
+ "expo-desktop-stubs": "55.0.2",
46
+ "react": "19.2.0",
47
+ "react-native": "0.83.10",
48
+ "react-native-macos": "0.83.0",
49
+ "react-native-windows": "0.83.2",
50
50
  "postcss": "8.5.31",
51
51
  "dompurify": "3.4.17",
52
52
  "@tiptap/core": "3.32.0",
@@ -71,7 +71,9 @@
71
71
  "@tiptap/extension-bubble-menu": "3.32.0",
72
72
  "@tiptap/extension-floating-menu": "3.32.0",
73
73
  "fast-xml-parser": "5.11.2",
74
- "react-dom": "19.1.4"
74
+ "react-dom": "19.2.0",
75
+ "react-native-enriched-markdown": "1.1.1",
76
+ "react-native-enriched-html": "1.1.1"
75
77
  },
76
78
  "expo": {
77
79
  "install": {
@@ -10,7 +10,7 @@
10
10
  "restoreBounds": true
11
11
  },
12
12
  "macos": {
13
- "bundleIdentifier": "so.legend.spark.prototype.helloworld"
13
+ "bundleIdentifier": "com.example.helloworld"
14
14
  },
15
15
  "platforms": [
16
16
  "ios",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-template-universal",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": true,
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -17,50 +17,50 @@
17
17
  "postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
18
18
  },
19
19
  "dependencies": {
20
- "expo": "54.0.37",
20
+ "expo": "55.0.32",
21
21
  "expo-desktop": "1.0.6",
22
22
  "expo-desktop-prebuild-config": "1.1.3",
23
23
  "expo-desktop-config-plugins": "1.3.2",
24
- "expo-desktop-metro-config": "54.81.3",
25
- "expo-desktop-template-bare-minimum": "54.81.6",
26
- "react": "19.1.4",
27
- "react-native": "0.81.6",
28
- "react-native-macos": "0.81.7",
24
+ "expo-desktop-metro-config": "55.83.3",
25
+ "expo-desktop-template-bare-minimum": "55.83.10",
26
+ "react": "19.2.0",
27
+ "react-native": "0.83.10",
28
+ "react-native-macos": "0.83.0",
29
29
  "@react-native-community/cli": "20.1.3",
30
30
  "typescript": "5.9.3",
31
- "@types/react": "19.1.10",
32
- "react-native-windows": "0.81.35",
33
- "expo-desktop-modules-core": "54.0.14",
34
- "expo-desktop-stubs": "54.0.15",
35
- "@expo/ui": "0.2.0-beta.9",
36
- "expo-dev-client": "6.0.21",
37
- "expo-clipboard": "8.0.8",
38
- "expo-secure-store": "15.0.8",
39
- "expo-linking": "8.0.12",
40
- "react-dom": "19.1.4",
31
+ "@types/react": "19.2.18",
32
+ "react-native-windows": "0.83.2",
33
+ "expo-desktop-modules-core": "55.0.2",
34
+ "expo-desktop-stubs": "55.0.2",
35
+ "@expo/ui": "55.0.17",
36
+ "expo-dev-client": "55.0.41",
37
+ "expo-clipboard": "55.0.17",
38
+ "expo-secure-store": "55.0.18",
39
+ "expo-linking": "55.0.17",
40
+ "react-dom": "19.2.0",
41
41
  "react-native-web": "0.21.0",
42
42
  "uniwind": "1.6.3",
43
43
  "tailwindcss": "4.2.4",
44
- "@legendapp/spark": "0.0.1"
44
+ "@legendapp/spark": "0.0.2"
45
45
  },
46
46
  "overrides": {
47
- "expo": "54.0.37",
48
- "@expo/cli": "54.0.27",
47
+ "expo": "55.0.32",
48
+ "@expo/cli": "55.0.37",
49
49
  "react-native-nitro-modules": "0.37.0",
50
50
  "react-native-webview": "16.0.0",
51
51
  "@op-engineering/op-sqlite": "18.2.1",
52
- "expo-asset": "12.0.13",
53
- "expo-constants": "18.0.14",
54
- "expo-file-system": "19.0.24",
55
- "expo-font": "14.0.12",
56
- "expo-keep-awake": "15.0.8",
57
- "expo-modules-core": "3.0.30",
58
- "expo-desktop-modules-core": "54.0.14",
59
- "expo-desktop-stubs": "54.0.15",
60
- "react": "19.1.4",
61
- "react-native": "0.81.6",
62
- "react-native-macos": "0.81.7",
63
- "react-native-windows": "0.81.35",
52
+ "expo-asset": "55.0.20",
53
+ "expo-constants": "55.0.17",
54
+ "expo-file-system": "55.0.26",
55
+ "expo-font": "55.0.8",
56
+ "expo-keep-awake": "55.0.8",
57
+ "expo-modules-core": "55.0.27",
58
+ "expo-desktop-modules-core": "55.0.2",
59
+ "expo-desktop-stubs": "55.0.2",
60
+ "react": "19.2.0",
61
+ "react-native": "0.83.10",
62
+ "react-native-macos": "0.83.0",
63
+ "react-native-windows": "0.83.2",
64
64
  "postcss": "8.5.31",
65
65
  "dompurify": "3.4.17",
66
66
  "@tiptap/core": "3.32.0",
@@ -85,7 +85,9 @@
85
85
  "@tiptap/extension-bubble-menu": "3.32.0",
86
86
  "@tiptap/extension-floating-menu": "3.32.0",
87
87
  "fast-xml-parser": "5.11.2",
88
- "react-dom": "19.1.4"
88
+ "react-dom": "19.2.0",
89
+ "react-native-enriched-markdown": "1.1.1",
90
+ "react-native-enriched-html": "1.1.1"
89
91
  },
90
92
  "expo": {
91
93
  "install": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-template-windows",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": true,
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -13,41 +13,41 @@
13
13
  "postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
14
14
  },
15
15
  "dependencies": {
16
- "expo": "54.0.37",
16
+ "expo": "55.0.32",
17
17
  "expo-desktop": "1.0.6",
18
18
  "expo-desktop-prebuild-config": "1.1.3",
19
19
  "expo-desktop-config-plugins": "1.3.2",
20
- "expo-desktop-metro-config": "54.81.3",
21
- "expo-desktop-template-bare-minimum": "54.81.6",
22
- "react": "19.1.4",
23
- "react-dom": "19.1.4",
24
- "react-native": "0.81.6",
20
+ "expo-desktop-metro-config": "55.83.3",
21
+ "expo-desktop-template-bare-minimum": "55.83.10",
22
+ "react": "19.2.0",
23
+ "react-dom": "19.2.0",
24
+ "react-native": "0.83.10",
25
25
  "@react-native-community/cli": "20.1.3",
26
26
  "typescript": "5.9.3",
27
- "@types/react": "19.1.10",
28
- "react-native-windows": "0.81.35",
29
- "expo-desktop-modules-core": "54.0.14",
30
- "expo-desktop-stubs": "54.0.15",
31
- "@legendapp/spark": "0.0.1"
27
+ "@types/react": "19.2.18",
28
+ "react-native-windows": "0.83.2",
29
+ "expo-desktop-modules-core": "55.0.2",
30
+ "expo-desktop-stubs": "55.0.2",
31
+ "@legendapp/spark": "0.0.2"
32
32
  },
33
33
  "overrides": {
34
- "expo": "54.0.37",
35
- "@expo/cli": "54.0.27",
34
+ "expo": "55.0.32",
35
+ "@expo/cli": "55.0.37",
36
36
  "react-native-nitro-modules": "0.37.0",
37
37
  "react-native-webview": "16.0.0",
38
38
  "@op-engineering/op-sqlite": "18.2.1",
39
- "expo-asset": "12.0.13",
40
- "expo-constants": "18.0.14",
41
- "expo-file-system": "19.0.24",
42
- "expo-font": "14.0.12",
43
- "expo-keep-awake": "15.0.8",
44
- "expo-modules-core": "3.0.30",
45
- "expo-desktop-modules-core": "54.0.14",
46
- "expo-desktop-stubs": "54.0.15",
47
- "react": "19.1.4",
48
- "react-native": "0.81.6",
49
- "react-native-macos": "0.81.7",
50
- "react-native-windows": "0.81.35",
39
+ "expo-asset": "55.0.20",
40
+ "expo-constants": "55.0.17",
41
+ "expo-file-system": "55.0.26",
42
+ "expo-font": "55.0.8",
43
+ "expo-keep-awake": "55.0.8",
44
+ "expo-modules-core": "55.0.27",
45
+ "expo-desktop-modules-core": "55.0.2",
46
+ "expo-desktop-stubs": "55.0.2",
47
+ "react": "19.2.0",
48
+ "react-native": "0.83.10",
49
+ "react-native-macos": "0.83.0",
50
+ "react-native-windows": "0.83.2",
51
51
  "postcss": "8.5.31",
52
52
  "dompurify": "3.4.17",
53
53
  "@tiptap/core": "3.32.0",
@@ -72,7 +72,9 @@
72
72
  "@tiptap/extension-bubble-menu": "3.32.0",
73
73
  "@tiptap/extension-floating-menu": "3.32.0",
74
74
  "fast-xml-parser": "5.11.2",
75
- "react-dom": "19.1.4"
75
+ "react-dom": "19.2.0",
76
+ "react-native-enriched-markdown": "1.1.1",
77
+ "react-native-enriched-html": "1.1.1"
76
78
  },
77
79
  "expo": {
78
80
  "install": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-clipboard",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -12,9 +12,9 @@
12
12
  "windows"
13
13
  ],
14
14
  "peerDependencies": {
15
- "react": "^19.1.0",
16
- "react-native": "0.81.6",
17
- "expo-clipboard": "~8.0.8"
15
+ "react": "^19.2.0",
16
+ "react-native": "0.83.10",
17
+ "expo-clipboard": "~55.0.17"
18
18
  },
19
19
  "codegenConfig": {
20
20
  "name": "RNDesktopClipboardSpec",
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "dependencies": {
44
- "@legendapp/spark-desktop-app": "0.0.1"
44
+ "@legendapp/spark-desktop-app": "0.0.2"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "expo-clipboard": {
@@ -0,0 +1 @@
1
+ export * from "./desktop";
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@legendapp/spark-codex",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": true,
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
7
7
  "peerDependencies": {
8
- "react": "^19.1.0",
9
- "react-native": "0.81.6"
8
+ "react": "^19.2.0",
9
+ "react-native": "0.83.10"
10
10
  },
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@legendapp/spark-desktop-app": "0.0.1",
13
+ "@legendapp/spark-desktop-app": "0.0.2",
14
14
  "react-native-nitro-modules": "0.37.0"
15
15
  },
16
16
  "files": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-commands",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "main": "src/index.tsx",
@@ -8,14 +8,14 @@
8
8
  "src"
9
9
  ],
10
10
  "dependencies": {
11
- "@legendapp/spark-ui": "0.0.1",
12
- "@legendapp/spark-desktop-shortcuts": "0.0.1",
13
- "@legendapp/spark-settings": "0.0.1",
11
+ "@legendapp/spark-ui": "0.0.2",
12
+ "@legendapp/spark-desktop-shortcuts": "0.0.2",
13
+ "@legendapp/spark-settings": "0.0.2",
14
14
  "@legendapp/state": "^3.0.0-beta.42",
15
- "@legendapp/spark-desktop-app": "0.0.1"
15
+ "@legendapp/spark-desktop-app": "0.0.2"
16
16
  },
17
17
  "peerDependencies": {
18
- "react": "^19.1.0",
19
- "react-native": "0.81.6"
18
+ "react": "^19.2.0",
19
+ "react-native": "0.83.10"
20
20
  }
21
21
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-context-menu",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -12,8 +12,8 @@
12
12
  "react-native.config.js"
13
13
  ],
14
14
  "peerDependencies": {
15
- "react": "^19.1.0",
16
- "react-native": "0.81.6"
15
+ "react": "^19.2.0",
16
+ "react-native": "0.83.10"
17
17
  },
18
18
  "codegenConfig": {
19
19
  "name": "RNContextMenuSpec",
@@ -41,7 +41,7 @@
41
41
  ]
42
42
  },
43
43
  "dependencies": {
44
- "@legendapp/spark-desktop-app": "0.0.1"
44
+ "@legendapp/spark-desktop-app": "0.0.2"
45
45
  },
46
46
  "private": true
47
47
  }
@@ -34,7 +34,12 @@ NSDictionary *SparkContext(void) {
34
34
  NSString *runtimePath = [bundle pathForResource:@"spark-runtime" ofType:@"json"];
35
35
  NSData *data = runtimePath ? [NSData dataWithContentsOfFile:runtimePath] : nil;
36
36
  id rawRuntime = data ? [NSJSONSerialization JSONObjectWithData:data options:0 error:nil] : nil;
37
- NSDictionary *runtime = [rawRuntime isKindOfClass:NSDictionary.class] ? rawRuntime : @{};
37
+ #if DEBUG
38
+ NSString *defaultMode = @"dev";
39
+ #else
40
+ NSString *defaultMode = @"release";
41
+ #endif
42
+ NSDictionary *runtime = [rawRuntime isKindOfClass:NSDictionary.class] ? rawRuntime : @{ @"mode": defaultMode, @"modules": @{} };
38
43
  NSString *project = [bundle objectForInfoDictionaryKey:@"SparkProjectIdentifier"] ?: bundle.bundleIdentifier;
39
44
  NSString *version = [bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"] ?: @"0.0.0";
40
45
  NSString *name = [bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"] ?: [bundle objectForInfoDictionaryKey:@"CFBundleName"];
@@ -48,7 +53,7 @@ NSDictionary *SparkContext(void) {
48
53
  #endif
49
54
  context = @{ @"projectId": project ?: @"desktop.app", @"name": name ?: @"Desktop App",
50
55
  @"version": version,
51
- @"runtime": runtime ?: @{}, @"launchArguments": NSProcessInfo.processInfo.arguments };
56
+ @"runtime": runtime, @"launchArguments": NSProcessInfo.processInfo.arguments };
52
57
  });
53
58
  return context;
54
59
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-app",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -12,8 +12,8 @@
12
12
  "cpp"
13
13
  ],
14
14
  "peerDependencies": {
15
- "react": "^19.1.0",
16
- "react-native": "0.81.6"
15
+ "react": "^19.2.0",
16
+ "react-native": "0.83.10"
17
17
  },
18
18
  "codegenConfig": {
19
19
  "name": "RNDesktopAppSpec",
@@ -1,4 +1,4 @@
1
- // RN macOS 0.81.7 Fabric applies accessibilityState only on iOS: RCTViewComponentView's accessibilityState block is
1
+ // RN macOS 0.83.0 Fabric applies accessibilityState only on iOS: RCTViewComponentView's accessibilityState block is
2
2
  // inside #if !TARGET_OS_OSX, so a disabled Pressable with an accessibilityRole reports itself enabled to VoiceOver and a
3
3
  // selected one unselected. A view whose accessibility traits never changed (no accessibilityRole) reported
4
4
  // isAccessibilityEnabled NO, as a plain NSView does, enabled or not. The patch answers both from the view's current
@@ -38,7 +38,7 @@ function patchAccessibilityStateSource(source) {
38
38
  function installAccessibilityStatePatch(root) {
39
39
  const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
40
40
  const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
41
- if (version !== "0.81.7") throw new Error(`spark's accessibility state patch requires react-native-macos@0.81.7; found ${version}.`);
41
+ if (version !== "0.83.0") throw new Error(`spark's accessibility state patch requires react-native-macos@0.83.0; found ${version}.`);
42
42
  const target = path.join(path.dirname(manifest), file);
43
43
  const source = fs.readFileSync(target, "utf8"), patched = patchAccessibilityStateSource(source);
44
44
  if (source !== patched) {
@@ -8,6 +8,8 @@ const {
8
8
  withEntitlementsPlist,
9
9
  withXcodeProject,
10
10
  } = require("expo-desktop-config-plugins");
11
+ const { withMod } = require("@expo/config-plugins");
12
+ const { installHostFiles, installHostProject } = require("./macos-host.cjs");
11
13
  const { identity } = require("./identity.cjs");
12
14
  const { resolveEntitlements } = require("./entitlements.cjs");
13
15
  const { version: sparkVersion } = require("@legendapp/spark/package.json");
@@ -33,6 +35,15 @@ module.exports = function withSparkDesktop(config) {
33
35
  mod.modResults = resolveEntitlements({ macos: { entitlements: declaredEntitlements } }, packages);
34
36
  return mod;
35
37
  });
38
+ // Expo Desktop 55's template hosts React Native in a SwiftUI App; Spark keeps its AppKit host.
39
+ config = withMod(config, { platform: "macos", mod: "dangerous", action: (mod) => {
40
+ installHostFiles(mod.modRequest.platformProjectRoot);
41
+ return mod;
42
+ } });
43
+ config = withXcodeProject(config, (mod) => {
44
+ installHostProject(mod.modResults);
45
+ return mod;
46
+ });
36
47
  config = withAppDelegate(config, (mod) => {
37
48
  // Own this adapter; application customizations belong in configuration/plugins.
38
49
  mod.modResults.contents = fs.readFileSync(
@@ -56,6 +67,7 @@ module.exports = function withSparkDesktop(config) {
56
67
  if (!(key in generated)) delete mod.modResults[key];
57
68
  Object.assign(mod.modResults, generated);
58
69
  mod.modResults.SparkFrameworkVersion = sparkVersion;
70
+ mod.modResults.NSMainStoryboardFile = "Main";
59
71
  mod.modResults.NSAppTransportSecurity = { NSAllowsLocalNetworking: true };
60
72
  return mod;
61
73
  });