@marinoscar/platform-cli 0.1.0-next.21 → 0.1.0-next.23
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/CHANGELOG.md +21 -0
- package/README.md +6 -1
- package/dist/engine/config.d.ts +38 -0
- package/dist/engine/config.d.ts.map +1 -1
- package/dist/engine/config.js +55 -0
- package/dist/engine/config.js.map +1 -1
- package/dist/engine/create-cli.d.ts +8 -0
- package/dist/engine/create-cli.d.ts.map +1 -1
- package/dist/engine/create-cli.js +7 -0
- package/dist/engine/create-cli.js.map +1 -1
- package/dist/engine/index.d.ts +10 -2
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +6 -1
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/registries.d.ts.map +1 -1
- package/dist/engine/registries.js +5 -0
- package/dist/engine/registries.js.map +1 -1
- package/dist/engine/tui/app-registry.d.ts +103 -0
- package/dist/engine/tui/app-registry.d.ts.map +1 -0
- package/dist/engine/tui/app-registry.js +103 -0
- package/dist/engine/tui/app-registry.js.map +1 -0
- package/dist/engine/tui/app.d.ts +9 -1
- package/dist/engine/tui/app.d.ts.map +1 -1
- package/dist/engine/tui/app.js +38 -17
- package/dist/engine/tui/app.js.map +1 -1
- package/dist/engine/tui/context.d.ts +220 -0
- package/dist/engine/tui/context.d.ts.map +1 -0
- package/dist/engine/tui/context.js +258 -0
- package/dist/engine/tui/context.js.map +1 -0
- package/dist/engine/tui/index.d.ts +2 -0
- package/dist/engine/tui/index.d.ts.map +1 -1
- package/dist/engine/tui/index.js +19 -1
- package/dist/engine/tui/index.js.map +1 -1
- package/dist/engine/tui/layout.d.ts.map +1 -1
- package/dist/engine/tui/layout.js +10 -3
- package/dist/engine/tui/layout.js.map +1 -1
- package/dist/engine/tui/raw-mode.d.ts +54 -0
- package/dist/engine/tui/raw-mode.d.ts.map +1 -0
- package/dist/engine/tui/raw-mode.js +106 -0
- package/dist/engine/tui/raw-mode.js.map +1 -0
- package/dist/engine/tui/screen-registry.d.ts +3 -1
- package/dist/engine/tui/screen-registry.d.ts.map +1 -1
- package/dist/engine/tui/screen-registry.js.map +1 -1
- package/dist/engine/tui/screens/invoke.d.ts.map +1 -1
- package/dist/engine/tui/screens/invoke.js +5 -2
- package/dist/engine/tui/screens/invoke.js.map +1 -1
- package/dist/engine/tui/screens/login.d.ts.map +1 -1
- package/dist/engine/tui/screens/login.js +17 -9
- package/dist/engine/tui/screens/login.js.map +1 -1
- package/dist/engine/tui/screens/logout.d.ts.map +1 -1
- package/dist/engine/tui/screens/logout.js +12 -5
- package/dist/engine/tui/screens/logout.js.map +1 -1
- package/dist/engine/tui/screens/menu.d.ts.map +1 -1
- package/dist/engine/tui/screens/menu.js +8 -41
- package/dist/engine/tui/screens/menu.js.map +1 -1
- package/dist/engine/tui/screens/node.d.ts.map +1 -1
- package/dist/engine/tui/screens/node.js +7 -3
- package/dist/engine/tui/screens/node.js.map +1 -1
- package/dist/engine/tui/screens/status.d.ts.map +1 -1
- package/dist/engine/tui/screens/status.js +8 -4
- package/dist/engine/tui/screens/status.js.map +1 -1
- package/dist/engine/tui/theme.d.ts +179 -0
- package/dist/engine/tui/theme.d.ts.map +1 -0
- package/dist/engine/tui/theme.js +111 -0
- package/dist/engine/tui/theme.js.map +1 -0
- package/dist/engine/tui/tty.d.ts +7 -0
- package/dist/engine/tui/tty.d.ts.map +1 -1
- package/dist/engine/tui/tty.js +8 -1
- package/dist/engine/tui/tty.js.map +1 -1
- package/dist/tui/index.d.ts +2 -2
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/index.js +6 -4
- package/dist/tui/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { createCliRegistry } from '../../core/index.js';
|
|
2
|
+
const ID_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
3
|
+
function validateId(kind, id) {
|
|
4
|
+
if (typeof id !== 'string' || !ID_PATTERN.test(id)) {
|
|
5
|
+
throw new Error(`TUI ${kind} id "${String(id)}" is invalid: use lowercase letters, digits and hyphens.`);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
const selections = createCliRegistry({
|
|
9
|
+
name: 'TUI selection',
|
|
10
|
+
registerFn: 'registerTuiSelection',
|
|
11
|
+
idOf: (entry) => entry.id,
|
|
12
|
+
validate: (entry) => {
|
|
13
|
+
validateId('selection', entry.id);
|
|
14
|
+
if (typeof entry.label !== 'string' || entry.label.trim() === '') {
|
|
15
|
+
throw new Error(`TUI selection "${entry.id}" needs a label.`);
|
|
16
|
+
}
|
|
17
|
+
if (typeof entry.load !== 'function' || typeof entry.display !== 'function') {
|
|
18
|
+
throw new Error(`TUI selection "${entry.id}" needs load and display functions.`);
|
|
19
|
+
}
|
|
20
|
+
if (entry.persist !== undefined && entry.persist !== 'config' && entry.persist !== 'none') {
|
|
21
|
+
throw new Error(`TUI selection "${entry.id}": persist must be 'config' or 'none'.`);
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
const stateLoaders = createCliRegistry({
|
|
26
|
+
name: 'TUI state loader',
|
|
27
|
+
registerFn: 'registerTuiStateLoader',
|
|
28
|
+
idOf: (entry) => entry.id,
|
|
29
|
+
validate: (entry) => {
|
|
30
|
+
validateId('state loader', entry.id);
|
|
31
|
+
if (typeof entry.load !== 'function')
|
|
32
|
+
throw new Error(`TUI state loader "${entry.id}" needs a load function.`);
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* Declares a selection: shown as a chip in the TUI header, read by screens
|
|
37
|
+
* with `useTuiSelection(id)`. None registered means no chip.
|
|
38
|
+
*
|
|
39
|
+
* @typeParam T - The selectable item.
|
|
40
|
+
* @param selection - The id, label, loader, display function and persistence.
|
|
41
|
+
* @throws Error when the id is malformed or taken, the shape is wrong, or `createCli` has already built the CLI.
|
|
42
|
+
* @stability experimental
|
|
43
|
+
* @extensionPoint registry
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* registerTuiSelection<Project>({
|
|
47
|
+
* id: 'project',
|
|
48
|
+
* label: 'Project',
|
|
49
|
+
* persist: 'config',
|
|
50
|
+
* load: async () => (await listProjects()),
|
|
51
|
+
* display: (project) => project.name,
|
|
52
|
+
* keyOf: (project) => project.id,
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export function registerTuiSelection(selection) {
|
|
57
|
+
selections.register(selection);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The selections registered so far, in registration order.
|
|
61
|
+
*
|
|
62
|
+
* @returns A frozen copy.
|
|
63
|
+
* @stability experimental
|
|
64
|
+
*/
|
|
65
|
+
export function listTuiSelections() {
|
|
66
|
+
return selections.list();
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Declares data loaded once for every screen, read with `useTuiState(id)`.
|
|
70
|
+
*
|
|
71
|
+
* @typeParam T - The loaded value.
|
|
72
|
+
* @param loader - The id and the loader.
|
|
73
|
+
* @throws Error when the id is malformed or taken, or `createCli` has already built the CLI.
|
|
74
|
+
* @stability experimental
|
|
75
|
+
* @extensionPoint registry
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* registerTuiStateLoader({ id: 'update-info', load: async () => checkForUpdate() });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export function registerTuiStateLoader(loader) {
|
|
82
|
+
stateLoaders.register(loader);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The state loaders registered so far, in registration order.
|
|
86
|
+
*
|
|
87
|
+
* @returns A frozen copy.
|
|
88
|
+
* @stability experimental
|
|
89
|
+
*/
|
|
90
|
+
export function listTuiStateLoaders() {
|
|
91
|
+
return stateLoaders.list();
|
|
92
|
+
}
|
|
93
|
+
/** Refuses later registrations; `createCli` calls it. */
|
|
94
|
+
export function freezeTuiAppRegistries(by) {
|
|
95
|
+
selections.freeze(by);
|
|
96
|
+
stateLoaders.freeze(by);
|
|
97
|
+
}
|
|
98
|
+
/** Empties both registries. Tests only. */
|
|
99
|
+
export function resetTuiAppRegistriesForTests() {
|
|
100
|
+
selections.reset();
|
|
101
|
+
stateLoaders.reset();
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=app-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-registry.js","sourceRoot":"","sources":["../../../src/engine/tui/app-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAuExD,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAEvC,SAAS,UAAU,CAAC,IAAY,EAAE,EAAW;IAC3C,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,OAAO,IAAI,QAAQ,MAAM,CAAC,EAAE,CAAC,0DAA0D,CAAC,CAAC;IAC3G,CAAC;AACH,CAAC;AAED,MAAM,UAAU,GAAG,iBAAiB,CAA2B;IAC7D,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,sBAAsB;IAClC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QAClB,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QAClC,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YACjE,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,EAAE,kBAAkB,CAAC,CAAC;QAChE,CAAC;QACD,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;YAC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AAU,sBAAsB,CAAC,EAAU;IAC/C,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtB,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC1B,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,6BAA6B;IAC3C,UAAU,CAAC,KAAK,EAAE,CAAC;IACnB,YAAY,CAAC,KAAK,EAAE,CAAC;AACvB,CAAC"}
|
package/dist/engine/tui/app.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { type TuiAppProviderProps } from './context.js';
|
|
3
|
+
/**
|
|
4
|
+
* The app root: the context provider around the router.
|
|
5
|
+
*
|
|
6
|
+
* @param props - The provider's seams (tests only).
|
|
7
|
+
*/
|
|
8
|
+
export declare function App(props?: Omit<TuiAppProviderProps, 'children'>): ReactNode;
|
|
9
|
+
/** Renders the top frame of the navigation stack and nothing else. */
|
|
10
|
+
export declare function Router(): ReactNode;
|
|
3
11
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxF,OAAO,EAA6B,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA4CnF;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,KAAK,GAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAM,GAAG,SAAS,CAMhF;AAED,sEAAsE;AACtE,wBAAgB,MAAM,IAAI,SAAS,CAkElC"}
|
package/dist/engine/tui/app.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Text, useApp, useInput } from 'ink';
|
|
3
|
-
import { lazy, Suspense, useCallback
|
|
3
|
+
import { lazy, Suspense, useCallback } from 'react';
|
|
4
4
|
import { allTuiScreens } from './builtin-screens.js';
|
|
5
|
+
import { TuiAppProvider, useTuiApp } from './context.js';
|
|
5
6
|
import { useTerminalSize } from './layout.js';
|
|
6
|
-
import {
|
|
7
|
+
import { textColor } from './theme.js';
|
|
7
8
|
import { MenuScreen } from './screens/menu.js';
|
|
8
9
|
// =============================================================================
|
|
9
10
|
// The app root (issue #145, epic #110)
|
|
@@ -21,9 +22,13 @@ import { MenuScreen } from './screens/menu.js';
|
|
|
21
22
|
// between pressing Esc during a login and the process quietly continuing to
|
|
22
23
|
// poll for the remaining fourteen minutes.
|
|
23
24
|
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
25
|
+
// THE STACK (RETRO-G1.2). Navigation is a stack of frames held by the app
|
|
26
|
+
// context (context.tsx): the menu is the root, `nav.push(route, params)` opens a
|
|
27
|
+
// screen on top, and `onDone` is `nav.pop()`. A screen opened from the menu
|
|
28
|
+
// therefore still goes back to the menu, exactly as before, while a screen can
|
|
29
|
+
// now open a sub-screen and return to it. Only the TOP frame is mounted; a
|
|
30
|
+
// frame below it is not rendered at all, so it receives no keys and its
|
|
31
|
+
// effects are cleaned up. Coming back remounts it with the same `params`.
|
|
27
32
|
// =============================================================================
|
|
28
33
|
/**
|
|
29
34
|
* Below this many columns, ink cannot lay anything out usefully.
|
|
@@ -37,13 +42,22 @@ import { MenuScreen } from './screens/menu.js';
|
|
|
37
42
|
* starts in `Frame`.
|
|
38
43
|
*/
|
|
39
44
|
const UNRENDERABLE_COLUMNS = 10;
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
/**
|
|
46
|
+
* The app root: the context provider around the router.
|
|
47
|
+
*
|
|
48
|
+
* @param props - The provider's seams (tests only).
|
|
49
|
+
*/
|
|
50
|
+
export function App(props = {}) {
|
|
51
|
+
return (_jsx(TuiAppProvider, { ...props, children: _jsx(Router, {}) }));
|
|
52
|
+
}
|
|
53
|
+
/** Renders the top frame of the navigation stack and nothing else. */
|
|
54
|
+
export function Router() {
|
|
55
|
+
const { nav, theme } = useTuiApp();
|
|
42
56
|
const { columns } = useTerminalSize();
|
|
43
57
|
const { exit } = useApp();
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
}, []);
|
|
58
|
+
const pop = useCallback(() => {
|
|
59
|
+
nav.pop();
|
|
60
|
+
}, [nav]);
|
|
47
61
|
// `useApp().exit()` is the ONLY way out, and it is the same path Ctrl-C
|
|
48
62
|
// takes. It performs a real React unmount — every screen's effect cleanup
|
|
49
63
|
// runs, aborting an in-flight poll loop or request — and then resolves the
|
|
@@ -60,7 +74,12 @@ export function App() {
|
|
|
60
74
|
// intercepted here — a handler that swallowed it would make the app
|
|
61
75
|
// unkillable from the keyboard, which is the worst thing a full-screen
|
|
62
76
|
// program can be.
|
|
63
|
-
useInput(() => {
|
|
77
|
+
useInput((_input, key) => {
|
|
78
|
+
// A frame pushed with a route nobody registered has no screen to handle
|
|
79
|
+
// Esc, so the router does; every real screen binds its own.
|
|
80
|
+
if (key.escape && nav.current.kind === 'screen' && !allTuiScreens().some((screen) => screen.route === nav.current.route)) {
|
|
81
|
+
nav.pop();
|
|
82
|
+
}
|
|
64
83
|
/* Present so the app holds stdin in raw mode even on a screen with no
|
|
65
84
|
bindings of its own; without a mounted handler ink would release it and
|
|
66
85
|
the first keypress after a screen transition could be echoed to the
|
|
@@ -69,18 +88,20 @@ export function App() {
|
|
|
69
88
|
if (columns < UNRENDERABLE_COLUMNS) {
|
|
70
89
|
return _jsx(Text, { children: "Terminal too narrow \u2014 widen it." });
|
|
71
90
|
}
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
const frame = nav.current;
|
|
92
|
+
if (frame.kind === 'menu') {
|
|
93
|
+
return _jsx(MenuScreen, { onSelect: (route) => nav.push(route), onQuit: quit });
|
|
94
|
+
}
|
|
74
95
|
// The built-in screens and every app screen (`registerTuiScreen`, #715).
|
|
75
|
-
const registration = allTuiScreens().find((screen) => screen.route === route);
|
|
96
|
+
const registration = allTuiScreens().find((screen) => screen.route === frame.route);
|
|
76
97
|
const Screen = registration === undefined ? undefined : screenComponent(registration);
|
|
77
98
|
if (Screen !== undefined) {
|
|
78
|
-
return (_jsx(Suspense, { fallback: _jsx(Text, { dimColor: true, children: "Loading\u2026" }), children: _jsx(Screen, { onDone:
|
|
99
|
+
return (_jsx(Suspense, { fallback: _jsx(Text, { dimColor: true, children: "Loading\u2026" }), children: _jsx(Screen, { onDone: pop, params: frame.params }) }));
|
|
79
100
|
}
|
|
80
101
|
// Unreachable while the menu lists only registered routes, and present so
|
|
81
102
|
// that a route without a screen is a blank frame with an explanation rather
|
|
82
103
|
// than an app that renders nothing and looks hung.
|
|
83
|
-
return (_jsx(Box, { children:
|
|
104
|
+
return (_jsx(Box, { children: _jsxs(Text, { ...textColor(theme.error), children: ["Unknown screen \"", frame.route, "\". Press esc to go back, or ctrl-c to exit."] }) }));
|
|
84
105
|
}
|
|
85
106
|
/** One lazy component per `load` screen, so reopening it does not reload it. */
|
|
86
107
|
const lazyScreens = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAA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from 'react';
|
|
2
|
+
import { type ConfigContext } from '../config.js';
|
|
3
|
+
import { type TuiSelectionRegistration, type TuiStateLoaderRegistration } from './app-registry.js';
|
|
4
|
+
import { type TuiTheme } from './theme.js';
|
|
5
|
+
/**
|
|
6
|
+
* A frame of the navigation stack.
|
|
7
|
+
*
|
|
8
|
+
* @stability experimental
|
|
9
|
+
*/
|
|
10
|
+
export type TuiNavFrame = TuiMenuFrame | TuiScreenFrame;
|
|
11
|
+
/**
|
|
12
|
+
* The menu frame, the root of the stack.
|
|
13
|
+
*
|
|
14
|
+
* @stability experimental
|
|
15
|
+
*/
|
|
16
|
+
export interface TuiMenuFrame {
|
|
17
|
+
/** Discriminant. */
|
|
18
|
+
readonly kind: 'menu';
|
|
19
|
+
/** The menu section to open at, once the menu tree has sections. */
|
|
20
|
+
readonly sectionId?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A screen frame.
|
|
24
|
+
*
|
|
25
|
+
* @stability experimental
|
|
26
|
+
*/
|
|
27
|
+
export interface TuiScreenFrame {
|
|
28
|
+
/** Discriminant. */
|
|
29
|
+
readonly kind: 'screen';
|
|
30
|
+
/** The registered route id. */
|
|
31
|
+
readonly route: string;
|
|
32
|
+
/** What the opener passed to `nav.push`. */
|
|
33
|
+
readonly params?: unknown;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The signed-in user as the server described them.
|
|
37
|
+
*
|
|
38
|
+
* @stability experimental
|
|
39
|
+
*/
|
|
40
|
+
export interface TuiSessionIdentity {
|
|
41
|
+
/** The account's email address. */
|
|
42
|
+
email?: string | undefined;
|
|
43
|
+
/** The display name, when the account has one. */
|
|
44
|
+
displayName?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The stored login state.
|
|
48
|
+
*
|
|
49
|
+
* @stability experimental
|
|
50
|
+
*/
|
|
51
|
+
export interface TuiStoredSession {
|
|
52
|
+
/** Whether a token and a server are stored. */
|
|
53
|
+
loggedIn: boolean;
|
|
54
|
+
/** The configured server, if any. */
|
|
55
|
+
serverUrl?: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Navigation. Only the top frame is mounted, so leaving a screen unmounts it
|
|
59
|
+
* and runs its effect cleanups; coming back mounts it afresh with the same
|
|
60
|
+
* `params`.
|
|
61
|
+
*
|
|
62
|
+
* @stability experimental
|
|
63
|
+
*/
|
|
64
|
+
export interface TuiNav {
|
|
65
|
+
/** Opens a registered screen on top of the current one. */
|
|
66
|
+
push(route: string, params?: unknown): void;
|
|
67
|
+
/** Returns to the previous frame; on the menu (the root) it does nothing. */
|
|
68
|
+
pop(): void;
|
|
69
|
+
/** Clears the stack back to the menu, optionally at a menu section. */
|
|
70
|
+
toMenu(sectionId?: string): void;
|
|
71
|
+
/** The top frame, the only one mounted. */
|
|
72
|
+
readonly current: TuiNavFrame;
|
|
73
|
+
/** The stack's size: 1 on the menu. */
|
|
74
|
+
readonly depth: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Who is signed in, as far as the TUI knows. Never carries the token.
|
|
78
|
+
*
|
|
79
|
+
* @stability experimental
|
|
80
|
+
*/
|
|
81
|
+
export interface TuiSession {
|
|
82
|
+
/** Whether a token is stored. */
|
|
83
|
+
readonly loggedIn: boolean;
|
|
84
|
+
/** The configured server, as the user typed it. */
|
|
85
|
+
readonly serverUrl?: string | undefined;
|
|
86
|
+
/** The signed-in user, once the server has answered `GET /auth/me`; absent offline or logged out. */
|
|
87
|
+
readonly identity?: TuiSessionIdentity | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Re-reads the stored config and the identity, then re-runs every state
|
|
90
|
+
* loader and selection loader. Call it after a login or a logout.
|
|
91
|
+
*/
|
|
92
|
+
refresh(): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* One registered selection, as a screen sees it.
|
|
96
|
+
*
|
|
97
|
+
* @typeParam T - The selectable item.
|
|
98
|
+
* @stability experimental
|
|
99
|
+
*/
|
|
100
|
+
export interface TuiSelectionState<T = unknown> {
|
|
101
|
+
/** The selection id. */
|
|
102
|
+
readonly id: string;
|
|
103
|
+
/** The chip label. */
|
|
104
|
+
readonly label: string;
|
|
105
|
+
/** The loaded choices; empty until loaded. */
|
|
106
|
+
readonly items: readonly T[];
|
|
107
|
+
/** The chosen item, if any. After a load: the persisted or previous choice, else the first item. */
|
|
108
|
+
readonly current: T | undefined;
|
|
109
|
+
/** The chip text for `current`. */
|
|
110
|
+
readonly text: string | undefined;
|
|
111
|
+
/** True while the choices load. */
|
|
112
|
+
readonly loading: boolean;
|
|
113
|
+
/** Why the load failed, if it did. */
|
|
114
|
+
readonly error: string | undefined;
|
|
115
|
+
/** Chooses an item and, for `persist: 'config'`, stores its key. */
|
|
116
|
+
select(item: T): void;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Everything a TUI screen can read.
|
|
120
|
+
*
|
|
121
|
+
* @stability experimental
|
|
122
|
+
*/
|
|
123
|
+
export interface TuiAppContext {
|
|
124
|
+
/** The signed-in session. */
|
|
125
|
+
readonly session: TuiSession;
|
|
126
|
+
/** The navigation stack. */
|
|
127
|
+
readonly nav: TuiNav;
|
|
128
|
+
/** The app's registered selections by id. Empty when none is registered. */
|
|
129
|
+
readonly selection: Readonly<Record<string, TuiSelectionState>>;
|
|
130
|
+
/** Colour tokens and glyphs; colourless under `NO_COLOR` / `--no-color`. */
|
|
131
|
+
readonly theme: TuiTheme;
|
|
132
|
+
/** The app's registered state loaders' values by id; absent until loaded or after a failure. */
|
|
133
|
+
readonly appState: Readonly<Record<string, unknown>>;
|
|
134
|
+
/** Why a state loader failed, by id. */
|
|
135
|
+
readonly appStateErrors: Readonly<Record<string, string>>;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The app context, or `undefined` outside a {@link TuiAppProvider}. For
|
|
139
|
+
* chrome that must also render in a bare test.
|
|
140
|
+
*
|
|
141
|
+
* @returns The context, if any.
|
|
142
|
+
* @stability experimental
|
|
143
|
+
*/
|
|
144
|
+
export declare function useOptionalTuiApp(): TuiAppContext | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* The app context: session, navigation, selections, theme and shared state.
|
|
147
|
+
*
|
|
148
|
+
* @returns The context.
|
|
149
|
+
* @throws Error when called outside a {@link TuiAppProvider} (the TUI app root mounts one).
|
|
150
|
+
* @stability experimental
|
|
151
|
+
* @example
|
|
152
|
+
* ```tsx
|
|
153
|
+
* function ProjectScreen(): ReactNode {
|
|
154
|
+
* const { session, nav, theme } = useTuiApp();
|
|
155
|
+
* return <Text color={theme.primary}>{session.serverUrl} <Text dimColor>esc: {nav.depth}</Text></Text>;
|
|
156
|
+
* }
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
export declare function useTuiApp(): TuiAppContext;
|
|
160
|
+
/**
|
|
161
|
+
* The theme: the context's inside the TUI, the resolved default outside it.
|
|
162
|
+
*
|
|
163
|
+
* @returns The theme.
|
|
164
|
+
* @stability experimental
|
|
165
|
+
*/
|
|
166
|
+
export declare function useTuiTheme(): TuiTheme;
|
|
167
|
+
/**
|
|
168
|
+
* A registered selection.
|
|
169
|
+
*
|
|
170
|
+
* @typeParam T - The selectable item.
|
|
171
|
+
* @param id - The id given to `registerTuiSelection`.
|
|
172
|
+
* @returns Its choices, current item, chip text and `select`.
|
|
173
|
+
* @throws Error when no selection has that id, or outside a provider.
|
|
174
|
+
* @stability experimental
|
|
175
|
+
*/
|
|
176
|
+
export declare function useTuiSelection<T = unknown>(id: string): TuiSelectionState<T>;
|
|
177
|
+
/**
|
|
178
|
+
* A value loaded by a registered state loader.
|
|
179
|
+
*
|
|
180
|
+
* @typeParam T - The loaded value.
|
|
181
|
+
* @param id - The id given to `registerTuiStateLoader`.
|
|
182
|
+
* @returns The value, or `undefined` while loading or after a failed load.
|
|
183
|
+
* @stability experimental
|
|
184
|
+
*/
|
|
185
|
+
export declare function useTuiState<T = unknown>(id: string): T | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* What {@link TuiAppProvider} reads from the outside world; each defaults to
|
|
188
|
+
* the real CLI config, and a test supplies its own.
|
|
189
|
+
*
|
|
190
|
+
* @stability experimental
|
|
191
|
+
*/
|
|
192
|
+
export interface TuiAppProviderProps {
|
|
193
|
+
/** The tree that reads the context. */
|
|
194
|
+
children: ReactNode;
|
|
195
|
+
/** Reads the stored login state. Defaults to the CLI config (`resolveConfig`). */
|
|
196
|
+
readSession?: (() => TuiStoredSession) | undefined;
|
|
197
|
+
/** Asks the server who is signed in. Defaults to `GET /auth/me` with the stored token. Return `undefined` when unknown. */
|
|
198
|
+
loadIdentity?: ((serverUrl: string, signal: AbortSignal) => Promise<TuiSessionIdentity | undefined>) | undefined;
|
|
199
|
+
/** Replaces the resolved theme. */
|
|
200
|
+
theme?: TuiTheme | undefined;
|
|
201
|
+
/** Config location seam for persisted selections. */
|
|
202
|
+
configContext?: ConfigContext | undefined;
|
|
203
|
+
/** Replaces the registered selections (a test seam). */
|
|
204
|
+
selections?: readonly TuiSelectionRegistration[] | undefined;
|
|
205
|
+
/** Replaces the registered state loaders (a test seam). */
|
|
206
|
+
stateLoaders?: readonly TuiStateLoaderRegistration[] | undefined;
|
|
207
|
+
/** The stack to start with. Defaults to the menu. */
|
|
208
|
+
initialStack?: readonly TuiNavFrame[] | undefined;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Provides {@link TuiAppContext} to the TUI. The app root mounts it.
|
|
212
|
+
*
|
|
213
|
+
* Loads once on mount: the session, the identity (best effort), every state
|
|
214
|
+
* loader and every selection; `session.refresh()` repeats all of it.
|
|
215
|
+
*
|
|
216
|
+
* @param props - Children and, for tests, the seams.
|
|
217
|
+
* @stability experimental
|
|
218
|
+
*/
|
|
219
|
+
export declare function TuiAppProvider(props: TuiAppProviderProps): ReactNode;
|
|
220
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.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