@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-desktop-config",
3
- "version": "0.0.1-next.9",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "main": "app.plugin.cjs",
6
6
  "files": [
@@ -11,11 +11,13 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "expo-desktop-config-plugins": "1.3.2",
14
- "@legendapp/spark-desktop-host": "0.0.1-next.9",
15
- "@legendapp/spark-window-options": "0.0.1-next.9",
16
- "@expo/config-plugins": "54.0.5",
17
- "@expo/config-types": "54.0.10",
14
+ "@legendapp/spark-desktop-host": "0.0.2",
15
+ "@legendapp/spark-window-options": "0.0.2",
16
+ "@expo/config-plugins": "55.0.12",
18
17
  "diff": "8.0.4"
19
18
  },
20
- "private": true
19
+ "private": true,
20
+ "devDependencies": {
21
+ "@expo/config-types": "55.0.6"
22
+ }
21
23
  }
@@ -1,4 +1,4 @@
1
- // RN macOS 0.81.7 Fabric mirrors ScrollView content in RTL: it flips the content container with a
1
+ // RN macOS 0.83.0 Fabric mirrors ScrollView content in RTL: it flips the content container with a
2
2
  // layer transform, but the scroll view flip that cancels it on iOS is iOS-only. AppKit ignores layer
3
3
  // transforms when it scrolls NSClipView and routes events, so macOS flips nothing (Yoga already
4
4
  // places RTL content), reports offsets unconverted, and anchors RTL content to its right end.
@@ -132,7 +132,7 @@ function patchScrollViewSource(source) {
132
132
  function installRTLScrollViewPatch(root) {
133
133
  const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
134
134
  const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
135
- if (version !== "0.81.7") throw new Error(`spark's RTL scroll patch requires react-native-macos@0.81.7; found ${version}.`);
135
+ if (version !== "0.83.0") throw new Error(`spark's RTL scroll patch requires react-native-macos@0.83.0; found ${version}.`);
136
136
  const target = path.join(path.dirname(manifest), file);
137
137
  const before = fs.readFileSync(target, "utf8"), after = patchScrollViewSource(before);
138
138
  if (before !== after) {
@@ -1,4 +1,4 @@
1
- // RN macOS 0.81.7 Fabric leaves natural ("auto" or unset) textAlign as NSTextAlignmentNatural. TextKit resolves that
1
+ // RN macOS 0.83.0 Fabric leaves natural ("auto" or unset) textAlign as NSTextAlignmentNatural. TextKit resolves that
2
2
  // from the user's language, not the Yoga layout direction, so text in an RTL subtree of an LTR-localized app aligns
3
3
  // left. The patch resolves natural alignment from the layout direction. "left" and "right" keep the upstream
4
4
  // behavior, shared with iOS: they swap in RTL.
@@ -48,7 +48,7 @@ function patchTextAlignmentSource(source) {
48
48
  function installRTLTextAlignmentPatch(root) {
49
49
  const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
50
50
  const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
51
- if (version !== "0.81.7") throw new Error(`spark's RTL text alignment patch requires react-native-macos@0.81.7; found ${version}.`);
51
+ if (version !== "0.83.0") throw new Error(`spark's RTL text alignment patch requires react-native-macos@0.83.0; found ${version}.`);
52
52
  const target = path.join(path.dirname(manifest), file);
53
53
  const source = fs.readFileSync(target, "utf8"), patched = patchTextAlignmentSource(source);
54
54
  if (source !== patched) {
@@ -1,4 +1,4 @@
1
- // RN macOS 0.81.7 Fabric gives a TextInput no layout direction: its text attributes have none, and the iOS
1
+ // RN macOS 0.83.0 Fabric gives a TextInput no layout direction: its text attributes have none, and the iOS
2
2
  // semanticContentAttribute that makes UIKit's natural alignment follow it isn't set on macOS. TextKit resolves
3
3
  // NSTextAlignmentNatural from the user's language, so in an RTL layout a TextInput with natural ("auto" or unset)
4
4
  // textAlign draws its text and placeholder from the left. The patch aligns them to the leading edge of the input's
@@ -100,7 +100,7 @@ function patchTextInputAlignmentSource(source) {
100
100
  function installRTLTextInputAlignmentPatch(root) {
101
101
  const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
102
102
  const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
103
- if (version !== "0.81.7") throw new Error(`spark's RTL TextInput alignment patch requires react-native-macos@0.81.7; found ${version}.`);
103
+ if (version !== "0.83.0") throw new Error(`spark's RTL TextInput alignment patch requires react-native-macos@0.83.0; found ${version}.`);
104
104
  const target = path.join(path.dirname(manifest), file);
105
105
  const source = fs.readFileSync(target, "utf8"), patched = patchTextInputAlignmentSource(source);
106
106
  if (source !== patched) {
@@ -1,4 +1,4 @@
1
- // RN macOS 0.81.7 Fabric sets a TextInput's accessibilityLabel on its accessibilityElement, the backed text input view.
1
+ // RN macOS 0.83.0 Fabric sets a TextInput's accessibilityLabel on its accessibilityElement, the backed text input view.
2
2
  // A multiline input's backed view is RCTWrappedTextView, a plain view around a scroll view, while the NSTextView inside
3
3
  // it is the accessibility element, so VoiceOver announces a labelled multiline input without its label. The patch
4
4
  // keeps the label on that text view.
@@ -35,7 +35,7 @@ function patchTextInputAccessibilitySource(source) {
35
35
  function installTextInputAccessibilityPatch(root) {
36
36
  const manifest = require.resolve("react-native-macos/package.json", { paths: [root] });
37
37
  const version = JSON.parse(fs.readFileSync(manifest, "utf8")).version;
38
- if (version !== "0.81.7") throw new Error(`spark's TextInput accessibility patch requires react-native-macos@0.81.7; found ${version}.`);
38
+ if (version !== "0.83.0") throw new Error(`spark's TextInput accessibility patch requires react-native-macos@0.83.0; found ${version}.`);
39
39
  const target = path.join(path.dirname(manifest), file);
40
40
  const source = fs.readFileSync(target, "utf8"), patched = patchTextInputAccessibilitySource(source);
41
41
  if (source !== patched) {
@@ -0,0 +1,6 @@
1
+ #import <RCTAppDelegate.h>
2
+ #import <Cocoa/Cocoa.h>
3
+
4
+ @interface AppDelegate : RCTAppDelegate
5
+
6
+ @end