@devframes/plugin-messages 0.9.7 → 0.9.9
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 +2 -2
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2727 -2687
- package/dist/constants.d.mts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/{node-BSNBb_rJ.mjs → node-CAEXablA.mjs} +3 -3
- package/dist/rpc/index.d.mts +1 -1
- package/dist/rpc/index.mjs +1 -1
- package/dist/{rpc-BRlKSu4p.mjs → rpc-CdgIByLV.mjs} +3 -3
- package/dist/{src-Ob5z2C1I.mjs → src-BWFxGgye.mjs} +12 -3
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ import createMessagesDevframe from '@devframes/plugin-messages'
|
|
|
22
22
|
await hubContext.install(createMessagesDevframe())
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
The hub's `ctx.messages` feeds the panel live
|
|
25
|
+
The hub's `ctx.messages` feeds the panel live: every
|
|
26
26
|
`ctx.messages.add(...)` from any mounted tool shows up, updates stream over
|
|
27
27
|
the `devframe:messages:updated` broadcast, and dismissals write back through
|
|
28
28
|
the devframe's namespaced RPCs. On a plain (non-hub) context the devframe warns
|
|
@@ -34,7 +34,7 @@ the devframe's namespaced RPCs. On a plain (non-hub) context the devframe warns
|
|
|
34
34
|
import { mountMessages } from '@devframes/plugin-messages/client'
|
|
35
35
|
|
|
36
36
|
const handle = await mountMessages(document.querySelector('#panel')!, {
|
|
37
|
-
rpc, // optional
|
|
37
|
+
rpc, // optional; reuse the host page's client
|
|
38
38
|
})
|
|
39
39
|
```
|
|
40
40
|
|
package/dist/cli.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CacHandle } from "devframe/adapters/cac";
|
|
2
2
|
//#region src/cli.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* Build the standalone CLI for the messages panel
|
|
4
|
+
* Build the standalone CLI for the messages panel; backs the package `bin`
|
|
5
5
|
* (`devframe-messages`) and `pnpx @devframes/plugin-messages`. Wraps the
|
|
6
6
|
* default {@link createMessagesDevframe} definition with devframe's
|
|
7
7
|
* `dev` / `build` / `mcp` command shell.
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as createMessagesDevframe } from "./src-
|
|
1
|
+
import { t as createMessagesDevframe } from "./src-BWFxGgye.mjs";
|
|
2
2
|
import { createCac } from "devframe/adapters/cac";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
/**
|
|
5
|
-
* Build the standalone CLI for the messages panel
|
|
5
|
+
* Build the standalone CLI for the messages panel; backs the package `bin`
|
|
6
6
|
* (`devframe-messages`) and `pnpx @devframes/plugin-messages`. Wraps the
|
|
7
7
|
* default {@link createMessagesDevframe} definition with devframe's
|
|
8
8
|
* `dev` / `build` / `mcp` command shell.
|
package/dist/client/index.d.mts
CHANGED
|
@@ -30,7 +30,7 @@ interface MessagesHandle {
|
|
|
30
30
|
dispose: () => void;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Mount the messages panel into a DOM container
|
|
33
|
+
* Mount the messages panel into a DOM container, the embeddable form a
|
|
34
34
|
* hub `custom-render` dock uses. Styles are injected by the bundle; the
|
|
35
35
|
* host page owns the `.dark` class on `<html>`.
|
|
36
36
|
*/
|