@pokit/tabs-core 0.0.45 → 0.0.47
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/README.md +1 -1
- package/dist/constants/help-content.d.ts +1 -1
- package/dist/constants/help-content.js +1 -1
- package/dist/hooks/use-keyboard-handler.d.ts +1 -1
- package/dist/hooks/use-keyboard-handler.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/state-reducer.d.ts +1 -1
- package/dist/state-reducer.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/package.json +3 -3
- package/src/constants/help-content.ts +1 -1
- package/src/hooks/use-keyboard-handler.ts +1 -1
- package/src/index.ts +1 -1
- package/src/state-reducer.ts +1 -1
- package/src/types.ts +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Shared logic for pok tabbed terminal UI adapters.
|
|
|
4
4
|
|
|
5
5
|
## Purpose
|
|
6
6
|
|
|
7
|
-
This package provides framework-agnostic types, state management, and process handling used by tabs adapter implementations like `@pokit/
|
|
7
|
+
This package provides framework-agnostic types, state management, and process handling used by tabs adapter implementations like `@pokit/opentui`.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ export type ShortcutGroup = {
|
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Standard keyboard shortcut help content.
|
|
16
|
-
* Used by
|
|
16
|
+
* Used by tabs adapter help overlays.
|
|
17
17
|
*/
|
|
18
18
|
export declare const HELP_CONTENT: ShortcutGroup[];
|
|
19
19
|
//# sourceMappingURL=help-content.d.ts.map
|
|
@@ -89,7 +89,7 @@ export type KeyboardAction = {
|
|
|
89
89
|
* Process a normalized key event and return the appropriate action.
|
|
90
90
|
*
|
|
91
91
|
* This is the core keyboard handling logic, extracted to be framework-agnostic.
|
|
92
|
-
* Each adapter
|
|
92
|
+
* Each adapter normalizes keyboard events and calls this function.
|
|
93
93
|
*/
|
|
94
94
|
export declare function processKeyEvent(event: NormalizedKeyEvent, state: KeyboardState, viewHeight: number): KeyboardAction;
|
|
95
95
|
/**
|
|
@@ -10,7 +10,7 @@ import { KEY_SEQUENCES, ctrlKeyToSequence } from '../constants/keyboard.js';
|
|
|
10
10
|
* Process a normalized key event and return the appropriate action.
|
|
11
11
|
*
|
|
12
12
|
* This is the core keyboard handling logic, extracted to be framework-agnostic.
|
|
13
|
-
* Each adapter
|
|
13
|
+
* Each adapter normalizes keyboard events and calls this function.
|
|
14
14
|
*/
|
|
15
15
|
export function processKeyEvent(event, state, viewHeight) {
|
|
16
16
|
const { char, name, ctrl, shift, meta } = event;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @pokit/tabs-core
|
|
3
3
|
*
|
|
4
|
-
* Shared logic for CLI tabs adapters
|
|
4
|
+
* Shared logic for CLI tabs adapters.
|
|
5
5
|
* Framework-agnostic types, state management, and process handling.
|
|
6
6
|
*/
|
|
7
7
|
export type { TabStatus, TabProcess, StatusIndicator, ActivityNode, GroupNode, EventDrivenState, } from './types.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @pokit/tabs-core
|
|
3
3
|
*
|
|
4
|
-
* Shared logic for CLI tabs adapters
|
|
4
|
+
* Shared logic for CLI tabs adapters.
|
|
5
5
|
* Framework-agnostic types, state management, and process handling.
|
|
6
6
|
*/
|
|
7
7
|
export { MAX_OUTPUT_LINES, MAX_LINE_LENGTH, BUFFER_WARNING_THRESHOLD, STATUS_INDICATORS, getStatusIndicator, } from './types.js';
|
package/dist/state-reducer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* State Reducer for Event-Driven CLI
|
|
3
3
|
*
|
|
4
4
|
* Builds a state tree from CLI events using a reducer pattern.
|
|
5
|
-
* Framework-agnostic
|
|
5
|
+
* Framework-agnostic reducer used by tabs adapters.
|
|
6
6
|
*/
|
|
7
7
|
import type { CLIEvent, GroupId } from '@pokit/core';
|
|
8
8
|
import type { EventDrivenState, ActivityNode, GroupNode } from './types.js';
|
package/dist/state-reducer.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared Types for CLI Tabs
|
|
3
3
|
*
|
|
4
|
-
* Framework-agnostic types used by
|
|
4
|
+
* Framework-agnostic types used by tabs adapters.
|
|
5
5
|
*/
|
|
6
6
|
import type { ActivityId, GroupId, GroupLayout } from '@pokit/core';
|
|
7
7
|
export type TabStatus = 'running' | 'done' | 'error' | 'stopped';
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pokit/tabs-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "Core tab management utilities for pok CLI applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^18.0.0 || ^19.0.0",
|
|
48
|
-
"@pokit/core": "0.0.
|
|
48
|
+
"@pokit/core": "0.0.47"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"react": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/bun": "latest",
|
|
57
57
|
"@types/react": "^19.2.0",
|
|
58
58
|
"react": "^19.2.0",
|
|
59
|
-
"@pokit/core": "0.0.
|
|
59
|
+
"@pokit/core": "0.0.47"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"bun": ">=1.0.0"
|
|
@@ -77,7 +77,7 @@ export type KeyboardAction =
|
|
|
77
77
|
* Process a normalized key event and return the appropriate action.
|
|
78
78
|
*
|
|
79
79
|
* This is the core keyboard handling logic, extracted to be framework-agnostic.
|
|
80
|
-
* Each adapter
|
|
80
|
+
* Each adapter normalizes keyboard events and calls this function.
|
|
81
81
|
*/
|
|
82
82
|
export function processKeyEvent(
|
|
83
83
|
event: NormalizedKeyEvent,
|
package/src/index.ts
CHANGED
package/src/state-reducer.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* State Reducer for Event-Driven CLI
|
|
3
3
|
*
|
|
4
4
|
* Builds a state tree from CLI events using a reducer pattern.
|
|
5
|
-
* Framework-agnostic
|
|
5
|
+
* Framework-agnostic reducer used by tabs adapters.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { CLIEvent, ActivityId, GroupId } from '@pokit/core';
|