@neosh/api 0.3.0 → 0.4.1
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 +1 -1
- package/src/generated/ApiCall.ts +114 -0
- package/src/generated/ApiOk.ts +10 -1
- package/src/generated/AscpMessage.ts +2 -0
- package/src/generated/AuthRef.ts +6 -1
- package/src/generated/ChecksState.ts +14 -0
- package/src/generated/CredentialSource.ts +1 -0
- package/src/generated/Direction.ts +6 -0
- package/src/generated/Dock.ts +10 -4
- package/src/generated/FloatConfig.ts +33 -0
- package/src/generated/ModelInfo.ts +16 -0
- package/src/generated/NodeCapabilities.ts +11 -0
- package/src/generated/PaneChild.ts +18 -0
- package/src/generated/PaneId.ts +15 -0
- package/src/generated/PaneNode.ts +17 -0
- package/src/generated/PluginEvent.ts +1 -0
- package/src/generated/PullRequest.ts +30 -0
- package/src/generated/PullState.ts +11 -0
- package/src/generated/RemoteProject.ts +18 -0
- package/src/generated/ScrollAmount.ts +16 -0
- package/src/generated/SplitDir.ts +12 -0
- package/src/generated/TabId.ts +10 -0
- package/src/generated/TabInfo.ts +27 -0
- package/src/generated/UiEvent.ts +4 -0
- package/src/generated/WindowLayout.ts +11 -0
- package/src/index.ts +444 -9
- package/src/ui.ts +403 -70
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
import type { Dock } from "./Dock";
|
|
3
3
|
import type { FloatConfig } from "./FloatConfig";
|
|
4
4
|
import type { Gravity } from "./Gravity";
|
|
5
|
+
import type { PaneId } from "./PaneId";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Declarative placement for a window. The frontend turns this into a rectangle.
|
|
8
9
|
*/
|
|
9
10
|
export type WindowLayout = {
|
|
10
11
|
"kind": "docked";
|
|
12
|
+
/**
|
|
13
|
+
* Which pane's rectangle `dock` is measured against, or the screen's when absent.
|
|
14
|
+
*
|
|
15
|
+
* An `Option` rather than a pane that happens to mean "the whole screen", because the two
|
|
16
|
+
* are different things and one of them outlives the other: a pane is closed when its split
|
|
17
|
+
* is, and a window docked to the screen — the sidebar, the status line — must not go with
|
|
18
|
+
* it. A window naming a pane that has gone is not drawn at all, which is the honest answer
|
|
19
|
+
* and the one the frontend can give without inventing a rectangle.
|
|
20
|
+
*/
|
|
21
|
+
pane?: PaneId | null;
|
|
11
22
|
dock: Dock;
|
|
12
23
|
/**
|
|
13
24
|
* Preferred extent along the dock's variable axis.
|