@scm-js/plugin-api 1.38.0 → 1.39.0
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/index.d.ts +24 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2029,6 +2029,8 @@ export interface StringImport {
|
|
|
2029
2029
|
export type Locale = "en" | "ko";
|
|
2030
2030
|
/** `"auto"` follows the browser (or the desktop app's system language). */
|
|
2031
2031
|
export type LanguagePreference = "auto" | Locale;
|
|
2032
|
+
/** What `Preferences.hotkeys` holds: the commands the user changed, each with its whole list (`[]` = no keys). */
|
|
2033
|
+
export type HotkeyOverrides = Record<string, string[]>;
|
|
2032
2034
|
export interface Preferences {
|
|
2033
2035
|
/** The editor's own language: `"auto"` follows the browser's (the system's, in the desktop app), else one of `LOCALES`. Applied live. */
|
|
2034
2036
|
language: LanguagePreference;
|
|
@@ -2155,6 +2157,28 @@ export interface Preferences {
|
|
|
2155
2157
|
plugins: {
|
|
2156
2158
|
updates: PluginUpdateMode;
|
|
2157
2159
|
};
|
|
2160
|
+
/**
|
|
2161
|
+
* Preferences ▸ Hotkeys: the commands whose keys the user changed, by command id
|
|
2162
|
+
* (`editor/commands.ts`), each with its whole list — `[]` leaves it with none. A
|
|
2163
|
+
* command not here has the keys it ships with.
|
|
2164
|
+
*/
|
|
2165
|
+
hotkeys: HotkeyOverrides;
|
|
2166
|
+
/**
|
|
2167
|
+
* Which cells the status bar shows (Preferences ▸ View). The message, the symmetry badge
|
|
2168
|
+
* while a mode is on, and the plugins' items always show.
|
|
2169
|
+
*/
|
|
2170
|
+
statusBar: StatusBarCells;
|
|
2171
|
+
}
|
|
2172
|
+
/** See `Preferences.statusBar`, in the order the bar draws them. */
|
|
2173
|
+
export interface StatusBarCells {
|
|
2174
|
+
tile: boolean;
|
|
2175
|
+
pixel: boolean;
|
|
2176
|
+
tileId: boolean;
|
|
2177
|
+
size: boolean;
|
|
2178
|
+
tileset: boolean;
|
|
2179
|
+
layer: boolean;
|
|
2180
|
+
zoom: boolean;
|
|
2181
|
+
revision: boolean;
|
|
2158
2182
|
}
|
|
2159
2183
|
/** See `Preferences.plugins.updates`. */
|
|
2160
2184
|
export type PluginUpdateMode = "notify" | "manual" | "auto";
|