@legendapp/spark 0.0.4 → 0.0.5
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/package.json +3 -3
- package/skills/spark/UPGRADING.md +58 -0
- package/skills/spark/storage-settings.md +2 -28
- package/skills/spark/ui.md +27 -1
- package/vendor/node_modules/@legendapp/spark-ai/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-audio/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-auth-session/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +43 -24
- package/vendor/node_modules/@legendapp/spark-cli/dist/migrations.cjs +3 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/package.js +4 -8
- package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +1 -1
- package/vendor/node_modules/@legendapp/spark-cli/dist/publish-directory.js +32 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/release-app.js +139 -0
- package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +21 -21
- package/vendor/node_modules/@legendapp/spark-cli/dist/signing.js +61 -41
- package/vendor/node_modules/@legendapp/spark-cli/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-clipboard/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-codex/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-commands/package.json +5 -5
- package/vendor/node_modules/@legendapp/spark-context-menu/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkTestDriver.h +2 -0
- package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkTestDriver.mm +1 -0
- package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +1 -1
- package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +1 -0
- package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-desktop-config/rpaths.cjs +20 -0
- package/vendor/node_modules/@legendapp/spark-desktop-config/rpaths.d.cts +1 -0
- package/vendor/node_modules/@legendapp/spark-desktop-host/AppDelegate.mm +16 -5
- package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-documents/package.json +7 -7
- package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-expo-compat/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-file-system/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-html/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-markdown/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-native-menu/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-notifications/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-processes/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-rich-text/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +4 -4
- package/vendor/node_modules/@legendapp/spark-settings-ui/src/index.tsx +122 -334
- package/vendor/node_modules/@legendapp/spark-settings-ui/src/rows.tsx +183 -0
- package/vendor/node_modules/@legendapp/spark-sqlite/package.json +3 -3
- package/vendor/node_modules/@legendapp/spark-system/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-tray/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSegmentedControl.mm +2 -0
- package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSelect.mm +17 -1
- package/vendor/node_modules/@legendapp/spark-ui/macos/sidebar/RNSidebar.mm +20 -0
- package/vendor/node_modules/@legendapp/spark-ui/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-ui/src/availability.ts +2 -1
- package/vendor/node_modules/@legendapp/spark-ui/src/control.ts +1 -1
- package/vendor/node_modules/@legendapp/spark-ui/src/desktop.tsx +10 -8
- package/vendor/node_modules/@legendapp/spark-ui/src/index.android.tsx +7 -6
- package/vendor/node_modules/@legendapp/spark-ui/src/index.ios.tsx +10 -9
- package/vendor/node_modules/@legendapp/spark-ui/src/index.web.tsx +6 -4
- package/vendor/node_modules/@legendapp/spark-ui/src/native-select/NativeSelectNativeComponent.ts +1 -0
- package/vendor/node_modules/@legendapp/spark-ui/src/select.ts +4 -0
- package/vendor/node_modules/@legendapp/spark-ui/src/switch.tsx +13 -0
- package/vendor/node_modules/@legendapp/spark-ui/src/types.ts +16 -4
- package/vendor/node_modules/@legendapp/spark-updates/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-webview/package.json +2 -2
- package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
- /package/{settings-window.ts → ui-settings.ts} +0 -0
|
@@ -26,6 +26,12 @@ export interface ButtonProps extends ControlProps {
|
|
|
26
26
|
/** AppKit control size; `regular` (default) everywhere, `small` and `mini` on macOS and web. */
|
|
27
27
|
size?: "regular" | "small" | "mini";
|
|
28
28
|
}
|
|
29
|
+
/** A controlled on/off switch. */
|
|
30
|
+
export interface SwitchProps extends ControlProps {
|
|
31
|
+
value: boolean;
|
|
32
|
+
onValueChange: (value: boolean) => void;
|
|
33
|
+
accessibilityHint?: string;
|
|
34
|
+
}
|
|
29
35
|
/** A controlled native checkbox. `children` is its label; without one, set `accessibilityLabel`. */
|
|
30
36
|
export interface CheckboxProps extends ControlProps {
|
|
31
37
|
value: boolean;
|
|
@@ -51,22 +57,28 @@ export interface UncontrolledTextInputProps extends TextInputCommonProps {
|
|
|
51
57
|
}
|
|
52
58
|
export type TextInputProps = ControlledTextInputProps | UncontrolledTextInputProps;
|
|
53
59
|
export interface SelectOption { label: string; value: string }
|
|
54
|
-
|
|
60
|
+
interface ChoiceControlProps extends ControlProps {
|
|
55
61
|
options: readonly SelectOption[];
|
|
56
62
|
value: string;
|
|
57
63
|
onValueChange: (value: string) => void;
|
|
58
64
|
}
|
|
59
|
-
export interface
|
|
65
|
+
export interface SelectProps extends ChoiceControlProps {
|
|
66
|
+
accessibilityHint?: string;
|
|
67
|
+
/** Borderless popup on macOS and web. Other platforms report `E_UNSUPPORTED_PLATFORM`. */
|
|
68
|
+
variant?: "default" | "borderless";
|
|
69
|
+
}
|
|
70
|
+
export interface SegmentedControlProps extends ChoiceControlProps {
|
|
71
|
+
accessibilityHint?: string;
|
|
60
72
|
/** `small` is the compact control size. Defaults to `regular`. */
|
|
61
73
|
size?: "regular" | "small";
|
|
62
74
|
/** `fit` sizes segments to their labels; `fill` shares the control's width equally. Defaults to `fit`. */
|
|
63
75
|
distribution?: "fit" | "fill";
|
|
64
76
|
}
|
|
65
77
|
/** A controlled group of native radio buttons: one per option, with `value` selected. */
|
|
66
|
-
export interface RadioGroupProps extends
|
|
78
|
+
export interface RadioGroupProps extends ChoiceControlProps {
|
|
67
79
|
/** `vertical` (default) stacks the buttons; `horizontal` puts them on one line. */
|
|
68
80
|
orientation?: "vertical" | "horizontal";
|
|
69
81
|
/** AppKit control size: `regular` (default), `small` or `mini`. */
|
|
70
82
|
size?: "regular" | "small" | "mini";
|
|
71
83
|
}
|
|
72
|
-
export type ControlKind = "button" | "text-input" | "select" | "segmented-control" | "checkbox" | "radio-group";
|
|
84
|
+
export type ControlKind = "button" | "text-input" | "select" | "segmented-control" | "checkbox" | "radio-group" | "switch";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-updates",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
35
|
+
"@legendapp/spark-desktop-app": "0.0.5"
|
|
36
36
|
},
|
|
37
37
|
"private": true
|
|
38
38
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/spark-webview",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"src"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@legendapp/spark-desktop-app": "0.0.
|
|
11
|
+
"@legendapp/spark-desktop-app": "0.0.5"
|
|
12
12
|
},
|
|
13
13
|
"private": true,
|
|
14
14
|
"peerDependencies": {
|
|
File without changes
|