Skip to content

Commit d0c651a

Browse files
committed
fix(hub): align dock panel state event name
1 parent 7dacb3d commit d0c651a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/content/8.references/3.events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Each subsystem emits on `ctx.<subsystem>.events`, consumed **inside the same nod
3333
| Method | Signature | Purpose |
3434
|---|---|---|
3535
| `hub:docks:activate` | `({ dockId, params? }) => void` | Ask the hub UI provider to switch its active dock — see [Deep Linking](/guide/deep-linking). |
36-
| `hub:docks:panel-state` | `(open) => void` | Report this viewer connection's current dock-panel state. |
36+
| `hub:docks:panel:state` | `(open) => void` | Report this viewer connection's current dock-panel state. |
3737
| `hub:commands:execute` | `(id, ...args) => unknown` | Invoke a registered server command by id. |
3838
| `hub:messages:add` | `(input) => DevframeMessageEntry` | Add a message to the feed (marked `from: 'browser'`). |
3939
| `hub:messages:update` | `(id, patch) => DevframeMessageEntry \| undefined` | Patch a message by id. |

packages/hub/src/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const HUB_EVENTS = {
3535
/** Server RPC methods a connected client calls (client → server), `hub:` prefix. */
3636
rpc: {
3737
docksActivate: 'hub:docks:activate',
38-
docksPanelState: 'hub:docks:panel-state',
38+
docksPanelState: 'hub:docks:panel:state',
3939
commandsExecute: 'hub:commands:execute',
4040
messagesAdd: 'hub:messages:add',
4141
messagesUpdate: 'hub:messages:update',

packages/hub/src/node/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ declare module 'devframe/types' {
6565
*
6666
* @internal
6767
*/
68-
'hub:docks:panel-state': (open: boolean) => Promise<void>
68+
'hub:docks:panel:state': (open: boolean) => Promise<void>
6969
/**
7070
* Invoke a registered server command by id; trailing args are forwarded to
7171
* the command's handler. Handled by

tests/__snapshots__/tsnapi/@devframes/hub/constants.snapshot.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export declare const HUB_EVENTS: {
2525
};
2626
readonly rpc: {
2727
readonly docksActivate: "hub:docks:activate";
28-
readonly docksPanelState: "hub:docks:panel-state";
28+
readonly docksPanelState: "hub:docks:panel:state";
2929
readonly commandsExecute: "hub:commands:execute";
3030
readonly messagesAdd: "hub:messages:add";
3131
readonly messagesUpdate: "hub:messages:update";

tests/__snapshots__/tsnapi/@devframes/hub/node.snapshot.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export declare const hubDocksActivate: {
133133
}], Promise<void>>> | undefined;
134134
};
135135
export declare const hubDocksPanelState: {
136-
name: "hub:docks:panel-state";
136+
name: "hub:docks:panel:state";
137137
type?: "action" | undefined;
138138
cacheable?: boolean;
139139
args?: undefined;

0 commit comments

Comments
 (0)