@legendapp/spark 0.0.5 → 0.0.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 (56) hide show
  1. package/package.json +3 -3
  2. package/skills/spark/UPGRADING.md +47 -0
  3. package/vendor/node_modules/@legendapp/spark-ai/package.json +3 -3
  4. package/vendor/node_modules/@legendapp/spark-audio/package.json +2 -2
  5. package/vendor/node_modules/@legendapp/spark-auth-session/package.json +3 -3
  6. package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +4 -1
  7. package/vendor/node_modules/@legendapp/spark-cli/dist/expo-desktop-template-bare-minimum-55.83.10.tgz +0 -0
  8. package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +3 -0
  9. package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +5 -3
  10. package/vendor/node_modules/@legendapp/spark-cli/dist/publish-directory.js +9 -1
  11. package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +11 -11
  12. package/vendor/node_modules/@legendapp/spark-cli/package.json +4 -4
  13. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +2 -2
  14. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +2 -2
  15. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +2 -2
  16. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +2 -2
  17. package/vendor/node_modules/@legendapp/spark-codex/package.json +2 -2
  18. package/vendor/node_modules/@legendapp/spark-commands/package.json +5 -5
  19. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +2 -2
  20. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +1 -1
  21. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +15 -1
  22. package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +1 -0
  23. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +3 -3
  24. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +2 -2
  25. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +2 -2
  26. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +2 -2
  27. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +3 -3
  28. package/vendor/node_modules/@legendapp/spark-documents/package.json +7 -7
  29. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +2 -2
  30. package/vendor/node_modules/@legendapp/spark-expo-compat/package.json +4 -4
  31. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +2 -2
  32. package/vendor/node_modules/@legendapp/spark-file-system/package.json +2 -2
  33. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +2 -2
  34. package/vendor/node_modules/@legendapp/spark-html/package.json +2 -2
  35. package/vendor/node_modules/@legendapp/spark-markdown/package.json +2 -2
  36. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +2 -2
  37. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +2 -2
  38. package/vendor/node_modules/@legendapp/spark-notifications/package.json +2 -2
  39. package/vendor/node_modules/@legendapp/spark-processes/package.json +2 -2
  40. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +2 -2
  41. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +2 -2
  42. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  43. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +5 -5
  44. package/vendor/node_modules/@legendapp/spark-settings-ui/src/heading.tsx +14 -0
  45. package/vendor/node_modules/@legendapp/spark-settings-ui/src/index.tsx +34 -22
  46. package/vendor/node_modules/@legendapp/spark-settings-ui/src/rows.tsx +12 -10
  47. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +3 -3
  48. package/vendor/node_modules/@legendapp/spark-system/package.json +2 -2
  49. package/vendor/node_modules/@legendapp/spark-tray/package.json +2 -2
  50. package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSegmentedControl.mm +27 -0
  51. package/vendor/node_modules/@legendapp/spark-ui/package.json +2 -2
  52. package/vendor/node_modules/@legendapp/spark-ui/src/desktop.tsx +6 -5
  53. package/vendor/node_modules/@legendapp/spark-ui/src/native-select/NativeSegmentedControlNativeComponent.ts +2 -1
  54. package/vendor/node_modules/@legendapp/spark-updates/package.json +2 -2
  55. package/vendor/node_modules/@legendapp/spark-webview/package.json +2 -2
  56. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -127,7 +127,7 @@
127
127
  "react-native-enriched-html": "1.1.1",
128
128
  "expo-linking": "~55.0.17",
129
129
  "expo-secure-store": "~55.0.18",
130
- "@legendapp/list": ">=3.3.0",
130
+ "@legendapp/list": ">=3.3.4",
131
131
  "@op-engineering/op-sqlite": "18.2.1",
132
132
  "@expo/ui": "55.0.17",
133
133
  "uniwind": "^1.6.3",
@@ -188,7 +188,7 @@
188
188
  "spark": {
189
189
  "nativePatchRequirements": {
190
190
  "schema": 1,
191
- "frameworkVersion": "0.0.5",
191
+ "frameworkVersion": "0.0.6",
192
192
  "packages": {
193
193
  "@react-native-runtimes/core": {
194
194
  "version": "0.1.0-alpha.2",
@@ -612,3 +612,50 @@ settings value persistence after reopening the window.
612
612
  `bun run release:check <project-directory> <signed.app>` from the Spark
613
613
  source checkout. Local rebuilds keep the last complete output available until
614
614
  the new app is ready (#562).
615
+
616
+ ## 0.0.6
617
+
618
+ Breaking: yes. macOS settings windows require `@legendapp/list` 3.3.4 or later in
619
+ the app's dependencies (#568). Upgrade the app's pin and lockfile if needed.
620
+
621
+ Settings pages now fit their content, and the sidebar and native window title
622
+ follow the visible page. The in-pane heading defaults to the page's `title`.
623
+ Pass a string to customize it, or `heading={false}` if the page already renders
624
+ its own heading. The sidebar and window still use `title`. The default in-pane
625
+ heading uses the SF title2 style (17/22 pt regular) so it stands apart from
626
+ 13/16 pt semibold card section headers (#569).
627
+
628
+ **Before**
629
+
630
+ ```tsx
631
+ <SettingsPage id="general" title="General" icon="gearshape">
632
+ <GeneralHeading />
633
+ <GeneralSettings />
634
+ </SettingsPage>
635
+ ```
636
+
637
+ **After**
638
+
639
+ ```tsx
640
+ <SettingsPage id="general" title="General" icon="gearshape" heading={false}>
641
+ <GeneralHeading />
642
+ <GeneralSettings />
643
+ </SettingsPage>
644
+ ```
645
+
646
+ - Recheck settings rows that use fixed widths or spacing. Segmented controls
647
+ using fit distribution size to their labels, and row and section spacing
648
+ matches Journal (#563, #565, #566).
649
+ - Expo Constants reports the local computer name as `hostName` on macOS.
650
+ Review consumers that expect a DNS hostname. macOS prebuild uses a bundled
651
+ template, so template generation works offline. Installing Pods can still
652
+ require network access (#563).
653
+ - The build output swap helper uses a full Xcode installation and its matching
654
+ SDK. If Command Line Tools are selected, Spark looks for standard Xcode.
655
+ Select a full installation with `DEVELOPER_DIR` on custom build hosts (#564).
656
+ - The Kitchen Sink driver answers Metro's `/status` probe during one-shot bundle
657
+ tests. The app's Metro setup needs no change (#567).
658
+
659
+ Run `spark upgrade`, `spark doctor`, and the app's typecheck and tests. Rebuild
660
+ custom macOS hosts and verify startup, segmented controls, and that scrolling
661
+ and clicking the sidebar keep the visible page and native title in sync.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@legendapp/spark-ai",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
7
7
  "dependencies": {
8
- "@legendapp/spark-desktop-app": "0.0.5",
9
- "@legendapp/spark-processes": "0.0.5"
8
+ "@legendapp/spark-desktop-app": "0.0.6",
9
+ "@legendapp/spark-processes": "0.0.6"
10
10
  },
11
11
  "peerDependencies": {
12
12
  "react": "^19.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-audio",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -37,6 +37,6 @@
37
37
  },
38
38
  "private": true,
39
39
  "dependencies": {
40
- "@legendapp/spark-desktop-app": "0.0.5"
40
+ "@legendapp/spark-desktop-app": "0.0.6"
41
41
  }
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-auth-session",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -8,9 +8,9 @@
8
8
  "src"
9
9
  ],
10
10
  "dependencies": {
11
- "@legendapp/spark-desktop-links": "0.0.5",
11
+ "@legendapp/spark-desktop-links": "0.0.6",
12
12
  "base64-js": "1.5.1",
13
- "@legendapp/spark-desktop-app": "0.0.5"
13
+ "@legendapp/spark-desktop-app": "0.0.6"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react-native": "0.83.10",
@@ -381,6 +381,9 @@ async function prepareMacOS(root, chosen, force) {
381
381
  if (needsPreparation || missing.length)
382
382
  rmSync(preparedFile, { force: true });
383
383
  if (needsProject) {
384
+ const template = path.join(import.meta.dirname, "expo-desktop-template-bare-minimum-55.83.10.tgz");
385
+ if (!existsSync(template))
386
+ throw new Error("Spark's bundled macOS prebuild template is missing. Reinstall Spark and retry.");
384
387
  console.log(`Preparing native project (preserving CocoaPods cache): ${force ? "forced build" : !hasNativeProject ? "native project missing" : preparationChanges(prepared, preparation).join("; ") || "native project provenance missing"}.`);
385
388
  const manifest = readFileSync(path.join(root, "package.json"), "utf8");
386
389
  const appJson = path.join(root, "app.json");
@@ -392,7 +395,7 @@ async function prepareMacOS(root, chosen, force) {
392
395
  "--platform",
393
396
  "macos",
394
397
  "--template",
395
- "expo-desktop-template-bare-minimum@55.83.10",
398
+ template,
396
399
  "--no-install",
397
400
  // Template renaming is not idempotent (HelloWorld becomes
398
401
  // LegendHelloWorld, then LegendLegendHelloWorld). Native projects
@@ -109,6 +109,9 @@ const migrations = [
109
109
  { version: '0.0.5', automatic: false, breaking: true, apply(context) {
110
110
  context.manualStep('For macOS settings windows, replace @legendapp/spark/settings/window with @legendapp/spark/ui/settings, install @legendapp/list if missing, and migrate the pages and rows to the new JSX API. See the linked upgrade notes and verify the settings window after rebuilding custom macOS hosts.');
111
111
  } },
112
+ { version: '0.0.6', automatic: false, breaking: true, apply(context) {
113
+ context.manualStep('For macOS settings windows, upgrade @legendapp/list to 3.3.4 or later and review the new in-pane SettingsPage heading. Set heading={false} on pages that already render their own heading. See the linked upgrade notes.');
114
+ } },
112
115
  ];
113
116
 
114
117
  /** @param {string} root */
@@ -2,7 +2,7 @@ import { patchSourceSHA } from "@legendapp/spark-desktop-config/patch-registry.c
2
2
  import { SparkError, validatePackageSettings } from "@legendapp/spark-desktop-config/validation.cjs";
3
3
  import { assertEnrichedHtmlPins } from "./enriched-html-pins.js";
4
4
  import { nativeWindowOptions } from "@legendapp/spark-window-options";
5
- import { prepareNativePatches, removeExpoApplicationAlias } from "@legendapp/spark-desktop-config/native-patches.cjs";
5
+ import { prepareNativePatches, removeExpoApplicationAlias, patchExpoComputerName } from "@legendapp/spark-desktop-config/native-patches.cjs";
6
6
  import { macOSReleaseSettings } from "./macos-release.js";
7
7
  import { projectPlatform, architecture } from "./platform.js";
8
8
  import { resolveHelpers } from "./helpers.js";
@@ -14,7 +14,7 @@ import { existsSync, readFileSync, readdirSync, realpathSync, } from "node:fs";
14
14
  import path from "node:path";
15
15
  import { readJson, writeJson } from "./json.js";
16
16
  export { readJson, writeJson };
17
- export const VERSION = "0.0.5";
17
+ export const VERSION = "0.0.6";
18
18
  export function digest(value) {
19
19
  return createHash("sha256").update(value).digest("hex");
20
20
  }
@@ -155,8 +155,10 @@ export function nativePackages(root, { applyExcludes = true } = {}) {
155
155
  return windowsNativePackages(root, installed);
156
156
  const rootOf = (name) => installed.find(pkg => pkg.name === name)?.root;
157
157
  const [macOS, expoCore] = [rootOf("react-native-macos"), rootOf("expo-modules-core")];
158
- if (macOS && expoCore)
158
+ if (macOS && expoCore) {
159
159
  removeExpoApplicationAlias(macOS, expoCore);
160
+ patchExpoComputerName(expoCore);
161
+ }
160
162
  const excluded = ["app.json", "desktop.config.json"].some(file => existsSync(path.join(root, file)))
161
163
  ? readAppConfig(root).expo?.autolinking?.exclude ?? [] : [];
162
164
  if (!applyExcludes) {
@@ -11,6 +11,13 @@ int main(int argc, char **argv) {
11
11
  return 1;
12
12
  }
13
13
  `;
14
+ export function swapToolchainEnv(selected = process.env.DEVELOPER_DIR || execFileSync("xcode-select", ["-p"], { encoding: "utf8" }).trim()) {
15
+ const developerDir = selected.endsWith("/CommandLineTools") ? "/Applications/Xcode.app/Contents/Developer" : selected;
16
+ return { ...process.env, DEVELOPER_DIR: developerDir };
17
+ }
18
+ export function swapSdkPath(env = swapToolchainEnv()) {
19
+ return execFileSync("xcrun", ["--sdk", "macosx", "--show-sdk-path"], { env, encoding: "utf8" }).trim();
20
+ }
14
21
  export function publishDirectory(staged, target, tools) {
15
22
  if (!existsSync(target)) {
16
23
  renameSync(staged, target);
@@ -21,7 +28,8 @@ export function publishDirectory(staged, target, tools) {
21
28
  mkdirSync(tools, { recursive: true });
22
29
  const pending = `${tool}.${process.pid}.tmp`;
23
30
  try {
24
- execFileSync("xcrun", ["clang", "-x", "c", "-o", pending, "-"], { input: source });
31
+ const env = swapToolchainEnv();
32
+ execFileSync("xcrun", ["clang", "-isysroot", swapSdkPath(env), "-x", "c", "-o", pending, "-"], { input: source, env });
25
33
  renameSync(pending, tool);
26
34
  }
27
35
  finally {
@@ -1,42 +1,42 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "0.0.5",
4
- "revision": "8eeb0302ebfcf7fc49e3628b18171badaee46007",
3
+ "version": "0.0.6",
4
+ "revision": "f127c1d97f3b75f3382091f065ea4dc4d096f328",
5
5
  "packages": {
6
6
  "@react-native-runtimes/core": {
7
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.5/runtimes-4df45cb5ea74.tgz",
7
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.6/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.5/react-native-nitro-modules-0.37.0-71ddf8c04084.tgz",
12
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.6/react-native-nitro-modules-0.37.0-71ddf8c04084.tgz",
13
13
  "size": 145595,
14
14
  "sha256": "71ddf8c0408471b46db6dc32112586cc7a0bbb63c606721ef3be8fe3438dfb3c"
15
15
  },
16
16
  "@op-engineering/op-sqlite": {
17
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.5/op-engineering-op-sqlite-18.2.1-afe4b8ce5706.tgz",
17
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.6/op-engineering-op-sqlite-18.2.1-afe4b8ce5706.tgz",
18
18
  "size": 5847598,
19
19
  "sha256": "afe4b8ce5706385af514319ba38076f2d768220e043cc706ace99d0d7adcacd8"
20
20
  },
21
21
  "react-native-webview": {
22
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.5/react-native-webview-16.0.0-fb06fd26c218.tgz",
22
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.6/react-native-webview-16.0.0-fb06fd26c218.tgz",
23
23
  "size": 116275,
24
24
  "sha256": "fb06fd26c2188cc9a67581e2a634de385818a7ca7f749226b172fdda561d36d6"
25
25
  },
26
26
  "expo-audio": {
27
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.5/expo-audio-55.0.18-a8d70b5b39bd.tgz",
27
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.6/expo-audio-55.0.18-a8d70b5b39bd.tgz",
28
28
  "size": 610139,
29
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.5/spark-runner-macos-arm64.zip",
35
- "size": 13454160,
36
- "sha256": "0155991945a298d19b10e8be9dfa89fce0c67277d6d957f46a67520d9686f55b",
34
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.6/spark-runner-macos-arm64.zip",
35
+ "size": 13458273,
36
+ "sha256": "5a134d076c4fc13b5c03288f33d9eca847e793f9401d2b9ced79d4417c4e43c9",
37
37
  "app": "SparkRunner.app",
38
38
  "teamId": "56DD97VT22",
39
- "fingerprint": "2d47860cb29f29bd1ddcd776ecf00c554e76c07f7e987331d97afc49391364ca"
39
+ "fingerprint": "51f179c1bcc7213b2801837d4decb093ff4bc4153d67f90f1b42b521cd48a1f2"
40
40
  }
41
41
  }
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -11,16 +11,16 @@
11
11
  "node": ">=24.19.0"
12
12
  },
13
13
  "dependencies": {
14
- "@legendapp/spark-desktop-config": "0.0.5",
14
+ "@legendapp/spark-desktop-config": "0.0.6",
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.5",
20
+ "@legendapp/spark-window-options": "0.0.6",
21
21
  "diff": "8.0.4",
22
22
  "yaml": "2.9.1",
23
- "@legendapp/spark-expo-compat": "0.0.5"
23
+ "@legendapp/spark-expo-compat": "0.0.6"
24
24
  },
25
25
  "private": true
26
26
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-template-blank-typescript",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
14
14
  },
15
15
  "dependencies": {
16
- "@legendapp/spark": "0.0.5",
16
+ "@legendapp/spark": "0.0.6",
17
17
  "expo": "55.0.32",
18
18
  "expo-desktop": "1.0.6",
19
19
  "expo-desktop-prebuild-config": "1.1.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-template-universal",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -41,7 +41,7 @@
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.5"
44
+ "@legendapp/spark": "0.0.6"
45
45
  },
46
46
  "overrides": {
47
47
  "expo": "55.0.32",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-template-windows",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -28,7 +28,7 @@
28
28
  "react-native-windows": "0.83.2",
29
29
  "expo-desktop-modules-core": "55.0.2",
30
30
  "expo-desktop-stubs": "55.0.2",
31
- "@legendapp/spark": "0.0.5"
31
+ "@legendapp/spark": "0.0.6"
32
32
  },
33
33
  "overrides": {
34
34
  "expo": "55.0.32",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-clipboard",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -34,7 +34,7 @@
34
34
  ]
35
35
  },
36
36
  "dependencies": {
37
- "@legendapp/spark-desktop-app": "0.0.5"
37
+ "@legendapp/spark-desktop-app": "0.0.6"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "expo-clipboard": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-codex",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@legendapp/spark-desktop-app": "0.0.5",
13
+ "@legendapp/spark-desktop-app": "0.0.6",
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.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "main": "src/index.tsx",
@@ -8,11 +8,11 @@
8
8
  "src"
9
9
  ],
10
10
  "dependencies": {
11
- "@legendapp/spark-ui": "0.0.5",
12
- "@legendapp/spark-desktop-shortcuts": "0.0.5",
13
- "@legendapp/spark-settings": "0.0.5",
11
+ "@legendapp/spark-ui": "0.0.6",
12
+ "@legendapp/spark-desktop-shortcuts": "0.0.6",
13
+ "@legendapp/spark-settings": "0.0.6",
14
14
  "@legendapp/state": "^3.0.0-beta.42",
15
- "@legendapp/spark-desktop-app": "0.0.5"
15
+ "@legendapp/spark-desktop-app": "0.0.6"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": "^19.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-context-menu",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -34,7 +34,7 @@
34
34
  ]
35
35
  },
36
36
  "dependencies": {
37
- "@legendapp/spark-desktop-app": "0.0.5"
37
+ "@legendapp/spark-desktop-app": "0.0.6"
38
38
  },
39
39
  "private": true
40
40
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-app",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -385,4 +385,18 @@ function removeExpoApplicationAlias(rn, expo) {
385
385
  fs.renameSync(temporary, file); // Preserve package-manager cache hardlinks.
386
386
  }
387
387
 
388
- module.exports = { appPatchIssues, prepareNativePatches, removeExpoApplicationAlias, appPatches, layerPatches, resolveManifest, withoutReceipt };
388
+ function patchExpoComputerName(expo) {
389
+ const file = path.join(expo, "ios/Utilities/ConstantsProvider.swift");
390
+ if (!fs.existsSync(file)) return;
391
+ const source = fs.readFileSync(file, "utf8");
392
+ const lookup = "#elseif os(macOS)\n return ProcessInfo.processInfo.hostName";
393
+ if (!source.includes(lookup)) return;
394
+ const patched = source
395
+ .replace("internal final class ConstantsProvider", "#if os(macOS)\nimport SystemConfiguration\n#endif\n\ninternal final class ConstantsProvider")
396
+ .replace(lookup, '#elseif os(macOS)\n return SCDynamicStoreCopyComputerName(nil, nil) as String? ?? ""');
397
+ const temporary = `${file}.spark-${process.pid}.tmp`;
398
+ fs.writeFileSync(temporary, patched);
399
+ fs.renameSync(temporary, file);
400
+ }
401
+
402
+ module.exports = { appPatchIssues, prepareNativePatches, removeExpoApplicationAlias, patchExpoComputerName, appPatches, layerPatches, resolveManifest, withoutReceipt };
@@ -1,5 +1,6 @@
1
1
  export function prepareNativePatches(root: string, installed?: { name: string; root: string; json: any }[]): Record<string, { root: string }>;
2
2
  export function removeExpoApplicationAlias(reactNativeMacOSRoot: string, expoModulesCoreRoot: string): void;
3
+ export function patchExpoComputerName(expoModulesCoreRoot: string): void;
3
4
  export type AppPatch = { version?: string; file: string; thirdParty: boolean; error?: string; bytes: Buffer };
4
5
  export function appPatches(root: string, app: any): Record<string, AppPatch>;
5
6
  export type PatchLayer = { text: string; applied?: string; apply: boolean; error(relative: string): string } | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-config",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "app.plugin.cjs",
6
6
  "files": [
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "expo-desktop-config-plugins": "1.3.2",
14
- "@legendapp/spark-desktop-host": "0.0.5",
15
- "@legendapp/spark-window-options": "0.0.5",
14
+ "@legendapp/spark-desktop-host": "0.0.6",
15
+ "@legendapp/spark-window-options": "0.0.6",
16
16
  "@expo/config-plugins": "55.0.12",
17
17
  "diff": "8.0.4"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-host",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "AppDelegate.mm",
@@ -9,7 +9,7 @@
9
9
  "SparkCustomize.mm"
10
10
  ],
11
11
  "dependencies": {
12
- "@legendapp/spark-desktop-app": "0.0.5"
12
+ "@legendapp/spark-desktop-app": "0.0.6"
13
13
  },
14
14
  "private": true
15
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-links",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -35,7 +35,7 @@
35
35
  ]
36
36
  },
37
37
  "dependencies": {
38
- "@legendapp/spark-desktop-app": "0.0.5"
38
+ "@legendapp/spark-desktop-app": "0.0.6"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "expo-linking": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-shortcuts",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -33,7 +33,7 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@legendapp/spark-desktop-app": "0.0.5"
36
+ "@legendapp/spark-desktop-app": "0.0.6"
37
37
  },
38
38
  "private": true
39
39
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-windows",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -33,8 +33,8 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@legendapp/spark-desktop-app": "0.0.5",
37
- "@legendapp/spark-window-options": "0.0.5",
36
+ "@legendapp/spark-desktop-app": "0.0.6",
37
+ "@legendapp/spark-window-options": "0.0.6",
38
38
  "@legendapp/state": "^3.0.0-beta.42"
39
39
  },
40
40
  "private": true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-documents",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "main": "src/index.tsx",
@@ -8,12 +8,12 @@
8
8
  "src"
9
9
  ],
10
10
  "dependencies": {
11
- "@legendapp/spark-file-dialog": "0.0.5",
12
- "@legendapp/spark-file-system": "0.0.5",
13
- "@legendapp/spark-native-menu": "0.0.5",
14
- "@legendapp/spark-desktop-app": "0.0.5",
15
- "@legendapp/spark-desktop-windows": "0.0.5",
16
- "@legendapp/spark-desktop-links": "0.0.5"
11
+ "@legendapp/spark-file-dialog": "0.0.6",
12
+ "@legendapp/spark-file-system": "0.0.6",
13
+ "@legendapp/spark-native-menu": "0.0.6",
14
+ "@legendapp/spark-desktop-app": "0.0.6",
15
+ "@legendapp/spark-desktop-windows": "0.0.6",
16
+ "@legendapp/spark-desktop-links": "0.0.6"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": "^19.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-drag-drop",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "react-native": "src/index.tsx",
@@ -34,7 +34,7 @@
34
34
  ]
35
35
  },
36
36
  "dependencies": {
37
- "@legendapp/spark-desktop-app": "0.0.5"
37
+ "@legendapp/spark-desktop-app": "0.0.6"
38
38
  },
39
39
  "private": true
40
40
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-expo-compat",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "files": [
@@ -8,10 +8,10 @@
8
8
  "metro.cjs"
9
9
  ],
10
10
  "dependencies": {
11
- "@legendapp/spark-clipboard": "0.0.5",
11
+ "@legendapp/spark-clipboard": "0.0.6",
12
12
  "base64-js": "1.5.1",
13
- "@legendapp/spark-file-dialog": "0.0.5",
14
- "@legendapp/spark-file-system": "0.0.5"
13
+ "@legendapp/spark-file-dialog": "0.0.6",
14
+ "@legendapp/spark-file-system": "0.0.6"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "^19.2.0",