@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.
- package/native.d.cts +6 -3
- package/package.json +36 -28
- package/patches/react-native-enriched-markdown@1.1.1.patch +2000 -3379
- package/skills/spark/UPGRADING.md +106 -3
- package/vendor/node_modules/@legendapp/spark-ai/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-audio/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-audio/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-auth-session/package.json +6 -6
- package/vendor/node_modules/@legendapp/spark-auth-session/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +11 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/cli-arguments.js +4 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/create.js +8 -4
- package/vendor/node_modules/@legendapp/spark-cli/dist/dependency-pins.js +45 -1
- package/vendor/node_modules/@legendapp/spark-cli/dist/dev.js +13 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/examples.js +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-patch.cjs +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/expo-dev-preload.cjs +3 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/index.js +26 -7
- package/vendor/node_modules/@legendapp/spark-cli/dist/metro.cjs +3 -1
- package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.cjs +20 -5
- package/vendor/node_modules/@legendapp/spark-cli/dist/migration-helpers.d.cts +1 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +7 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/native-patch-preflight.js +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +16 -10
- package/vendor/node_modules/@legendapp/spark-cli/dist/release-runner-root.js +108 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +13 -13
- package/vendor/node_modules/@legendapp/spark-cli/dist/runner-install.js +4 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/session-status.js +7 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/watchman.js +12 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/windows-geometry.js +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/desktop.config.json +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +27 -25
- package/vendor/node_modules/@legendapp/spark-cli/templates/universal/desktop.config.json +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +35 -33
- package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +29 -27
- package/vendor/node_modules/@legendapp/spark-clipboard/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-clipboard/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-codex/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-commands/package.json +7 -7
- package/vendor/node_modules/@legendapp/spark-context-menu/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +7 -2
- package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-desktop-config/accessibility-state.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +12 -0
- package/vendor/node_modules/@legendapp/spark-desktop-config/autolinking.cjs +4 -4
- package/vendor/node_modules/@legendapp/spark-desktop-config/config.d.cts +1 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/fabric-lifecycle.cjs +1 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/keyboard-events.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/macos-host.cjs +39 -0
- package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.cjs +47 -12
- package/vendor/node_modules/@legendapp/spark-desktop-config/native-patches.d.cts +2 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +8 -6
- package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-scroll-view.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-alignment.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-input-alignment.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-config/text-input-accessibility.cjs +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-host/macos/AppDelegate.h +6 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/macos/Main.storyboard +684 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/macos/main.m +5 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +3 -2
- package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-desktop-links/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +68 -17
- package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-desktop-windows/src/macos-adapter.ts +2 -1
- package/vendor/node_modules/@legendapp/spark-documents/package.json +9 -9
- package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-system/macos/RNDesktopFileSystem.mm +14 -5
- package/vendor/node_modules/@legendapp/spark-file-system/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-system/src/index.ts +1 -1
- package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-html/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-markdown/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-native-menu/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-notifications/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-processes/macos/RNDesktopProcesses.mm +110 -19
- package/vendor/node_modules/@legendapp/spark-processes/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-processes/src/index.ts +17 -3
- package/vendor/node_modules/@legendapp/spark-processes/src/types.ts +6 -0
- package/vendor/node_modules/@legendapp/spark-rich-text/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-secure-storage/src/index.macos.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +6 -6
- package/vendor/node_modules/@legendapp/spark-sqlite/package.json +12 -5
- package/vendor/node_modules/@legendapp/spark-system/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-tray/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +82 -18
- package/vendor/node_modules/@legendapp/spark-ui/package.json +6 -6
- package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/SidebarSplitViewNativeComponent.ts +4 -0
- package/vendor/node_modules/@legendapp/spark-ui/src/appkit-split-view/index.tsx +11 -9
- package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +20 -10
- package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +15 -10
- package/vendor/node_modules/@legendapp/spark-ui/src/index.macos.tsx +1 -0
- package/vendor/node_modules/@legendapp/spark-updates/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-webview/package.json +11 -4
- package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
- package/camera.ts +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-desktop-config",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
15
|
-
"@legendapp/spark-window-options": "0.0.
|
|
16
|
-
"@expo/config-plugins": "
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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) {
|