@devframes/plugin-messages 0.9.1 → 0.9.2
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/dist/cli.mjs
CHANGED
package/dist/client/index.mjs
CHANGED
|
@@ -13016,13 +13016,19 @@ var jx = { class: "h-full w-full grid grid-rows-[max-content_1fr] bg-base color-
|
|
|
13016
13016
|
function s() {
|
|
13017
13017
|
location.reload();
|
|
13018
13018
|
}
|
|
13019
|
-
let c =
|
|
13019
|
+
let c = /* @__PURE__ */ dn(t.rpc.services.has("@devframes/service-open"));
|
|
13020
|
+
bi(() => {
|
|
13021
|
+
t.rpc.services.state().then((e) => {
|
|
13022
|
+
c.value = t.rpc.services.has("@devframes/service-open"), e.on("updated", () => c.value = t.rpc.services.has("@devframes/service-open"));
|
|
13023
|
+
}).catch(() => {});
|
|
13024
|
+
});
|
|
13025
|
+
let l = W(() => t.rpc.connectionMeta.backend !== "static" && c.value), u = /* @__PURE__ */ dn(!1);
|
|
13020
13026
|
bi(() => {
|
|
13021
13027
|
t.rpc.sharedState.get("devframe:docks", { initialValue: null }).then((e) => {
|
|
13022
|
-
|
|
13028
|
+
u.value = e.value() != null, e.on("updated", (e) => u.value = e != null);
|
|
13023
13029
|
}).catch(() => {});
|
|
13024
13030
|
});
|
|
13025
|
-
async function
|
|
13031
|
+
async function d(e) {
|
|
13026
13032
|
let n = t.rpc.callOptional;
|
|
13027
13033
|
if (e.kind === "activate") {
|
|
13028
13034
|
await n("hub:docks:activate", e.activate);
|
|
@@ -13030,22 +13036,26 @@ var jx = { class: "h-full w-full grid grid-rows-[max-content_1fr] bg-base color-
|
|
|
13030
13036
|
}
|
|
13031
13037
|
e.kind === "command" && await n("hub:commands:execute", e.command.id, ...e.command.params ?? []);
|
|
13032
13038
|
}
|
|
13033
|
-
async function
|
|
13039
|
+
async function f(e) {
|
|
13034
13040
|
await t.rpc.call("devframes:plugin:messages:remove", e);
|
|
13035
13041
|
}
|
|
13036
|
-
async function
|
|
13042
|
+
async function p() {
|
|
13037
13043
|
for (let e of r.filteredEntries) await t.rpc.call("devframes:plugin:messages:remove", e.id);
|
|
13038
13044
|
}
|
|
13039
|
-
async function
|
|
13045
|
+
async function m() {
|
|
13040
13046
|
await t.rpc.call("devframes:plugin:messages:clear");
|
|
13041
13047
|
}
|
|
13042
|
-
async function
|
|
13048
|
+
async function h(e) {
|
|
13043
13049
|
await t.rpc.call("devframes:plugin:messages:update", e, { autoDelete: 0 });
|
|
13044
13050
|
}
|
|
13045
|
-
async function
|
|
13051
|
+
async function g(e) {
|
|
13046
13052
|
if (!e.filePosition) return;
|
|
13047
|
-
let { file: n, line: r, column: i } = e.filePosition
|
|
13048
|
-
|
|
13053
|
+
let { file: n, line: r, column: i } = e.filePosition;
|
|
13054
|
+
await t.rpc.services.get("@devframes/service-open")?.rpc.call("open-in-editor", {
|
|
13055
|
+
path: n,
|
|
13056
|
+
line: r,
|
|
13057
|
+
column: i
|
|
13058
|
+
});
|
|
13049
13059
|
}
|
|
13050
13060
|
return (e, t) => (R(), z("div", jx, [H(Qg, {
|
|
13051
13061
|
glass: !1,
|
|
@@ -13069,8 +13079,8 @@ var jx = { class: "h-full w-full grid grid-rows-[max-content_1fr] bg-base color-
|
|
|
13069
13079
|
end: Br(() => [o.value ? U("", !0) : (R(), B(Cx, {
|
|
13070
13080
|
key: 0,
|
|
13071
13081
|
filters: N(r),
|
|
13072
|
-
onDismissFiltered:
|
|
13073
|
-
onClear:
|
|
13082
|
+
onDismissFiltered: p,
|
|
13083
|
+
onClear: m
|
|
13074
13084
|
}, null, 8, ["filters"])), a.value ? (R(), z("span", {
|
|
13075
13085
|
key: 1,
|
|
13076
13086
|
class: k(a.value.class)
|
|
@@ -13095,12 +13105,12 @@ var jx = { class: "h-full w-full grid grid-rows-[max-content_1fr] bg-base color-
|
|
|
13095
13105
|
], 2)) : (R(), B(xx, {
|
|
13096
13106
|
key: 1,
|
|
13097
13107
|
filters: N(r),
|
|
13098
|
-
"can-open-file":
|
|
13099
|
-
"can-activate":
|
|
13100
|
-
onDismiss:
|
|
13101
|
-
onPersist:
|
|
13102
|
-
onOpenFile:
|
|
13103
|
-
onActivate:
|
|
13108
|
+
"can-open-file": l.value,
|
|
13109
|
+
"can-activate": u.value,
|
|
13110
|
+
onDismiss: f,
|
|
13111
|
+
onPersist: h,
|
|
13112
|
+
onOpenFile: g,
|
|
13113
|
+
onActivate: d
|
|
13104
13114
|
}, null, 8, [
|
|
13105
13115
|
"filters",
|
|
13106
13116
|
"can-open-file",
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createMessagesDevframe } from "./src-
|
|
1
|
+
import { t as createMessagesDevframe } from "./src-BkyqdIW4.mjs";
|
|
2
2
|
import { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID } from "./constants.mjs";
|
|
3
3
|
export { DEFAULT_PORT, MESSAGES_UPDATED_EVENT, PLUGIN_ID, createMessagesDevframe, createMessagesDevframe as default };
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PLUGIN_ID } from "./constants.mjs";
|
|
2
2
|
import { n as getMessagesHost, t as serverFunctions } from "./rpc-BRlKSu4p.mjs";
|
|
3
|
-
import { commonRpcFunctions } from "devframe/recipes/common-rpc-functions";
|
|
4
3
|
import { defineDiagnostics } from "devframe/utils/nostics";
|
|
5
4
|
//#region src/diagnostics.ts
|
|
6
5
|
/**
|
|
@@ -30,7 +29,6 @@ const diagnostics = defineDiagnostics({
|
|
|
30
29
|
function setupMessages(ctx) {
|
|
31
30
|
if (!getMessagesHost(ctx)) diagnostics.DP_MESSAGES_0001({ id: PLUGIN_ID });
|
|
32
31
|
for (const fn of serverFunctions) ctx.rpc.register(fn);
|
|
33
|
-
for (const fn of commonRpcFunctions) if (!ctx.rpc.definitions.has(fn.name)) ctx.rpc.register(fn);
|
|
34
32
|
}
|
|
35
33
|
//#endregion
|
|
36
34
|
export { setupMessages as t };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import "./constants.mjs";
|
|
2
|
-
import { t as setupMessages } from "./node-
|
|
2
|
+
import { t as setupMessages } from "./node-BSNBb_rJ.mjs";
|
|
3
3
|
import { defineDevframe } from "devframe";
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@devframes/plugin-messages";
|
|
6
|
-
var version = "0.9.
|
|
6
|
+
var version = "0.9.2";
|
|
7
7
|
var description = "Devframe plugin for browsing, filtering, and dismissing the hub message feed.";
|
|
8
8
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/index.ts
|
|
11
11
|
const remoteAssets = {
|
|
12
12
|
package: `${name}--assets`,
|
|
13
|
-
version
|
|
14
|
-
resolveFrom: import.meta.url
|
|
13
|
+
version
|
|
15
14
|
};
|
|
16
15
|
/**
|
|
17
16
|
* Build a {@link DevframeDefinition} for the hub message feed panel —
|
|
@@ -30,6 +29,7 @@ function createMessagesDevframe(options = {}) {
|
|
|
30
29
|
name: options.name ?? "Messages",
|
|
31
30
|
version,
|
|
32
31
|
packageName: name,
|
|
32
|
+
importMetaUrl: import.meta.url,
|
|
33
33
|
homepage,
|
|
34
34
|
description,
|
|
35
35
|
icon: options.icon ?? "ph:notification-duotone",
|
|
@@ -41,6 +41,7 @@ function createMessagesDevframe(options = {}) {
|
|
|
41
41
|
auth: options.auth ?? true
|
|
42
42
|
},
|
|
43
43
|
dock: { category: "~builtin" },
|
|
44
|
+
services: [{ package: "@devframes/service-open" }],
|
|
44
45
|
setup(ctx) {
|
|
45
46
|
setupMessages(ctx);
|
|
46
47
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-messages",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"description": "Devframe plugin for browsing, filtering, and dismissing the hub message feed.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"vite": "^7.0.0 || ^8.0.0",
|
|
42
|
-
"@devframes/hub": "0.9.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
42
|
+
"@devframes/hub": "0.9.2",
|
|
43
|
+
"@devframes/plugin-messages--assets": "0.9.2",
|
|
44
|
+
"devframe": "0.9.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"@devframes/plugin-messages--assets": {
|
|
@@ -52,20 +52,21 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"cac": "^7.0.0"
|
|
55
|
+
"cac": "^7.0.0",
|
|
56
|
+
"@devframes/service-open": "0.9.2"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@antfu/design": "^0.3.4",
|
|
59
60
|
"@iconify-json/ph": "^1.2.2",
|
|
60
|
-
"@storybook/addon-docs": "^10.5.
|
|
61
|
-
"@storybook/vue3-vite": "^10.5.
|
|
61
|
+
"@storybook/addon-docs": "^10.5.8",
|
|
62
|
+
"@storybook/vue3-vite": "^10.5.8",
|
|
62
63
|
"@types/node": "^26.2.0",
|
|
63
64
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
64
65
|
"@vueuse/core": "^14.4.0",
|
|
65
66
|
"colorjs.io": "^0.7.1",
|
|
66
67
|
"floating-vue": "^5.2.2",
|
|
67
68
|
"h3": "^2.0.1-rc.26",
|
|
68
|
-
"storybook": "^10.5.
|
|
69
|
+
"storybook": "^10.5.8",
|
|
69
70
|
"tsdown": "^0.22.14",
|
|
70
71
|
"unocss": "^66.7.5",
|
|
71
72
|
"vite": "^8.2.1",
|
|
@@ -73,10 +74,10 @@
|
|
|
73
74
|
"vitest": "^4.1.10",
|
|
74
75
|
"vue": "^3.5.41",
|
|
75
76
|
"ws": "^8.21.3",
|
|
76
|
-
"@devframes/
|
|
77
|
-
"@devframes/
|
|
78
|
-
"devframe": "0.9.
|
|
79
|
-
"@devframes/
|
|
77
|
+
"@devframes/plugin-messages--assets": "0.9.2",
|
|
78
|
+
"@devframes/vite": "0.9.2",
|
|
79
|
+
"devframe": "0.9.2",
|
|
80
|
+
"@devframes/hub": "0.9.2"
|
|
80
81
|
},
|
|
81
82
|
"scripts": {
|
|
82
83
|
"build": "tsdown && vite build --config src/client/vite.config.ts && vite build --config src/spa/vite.config.ts",
|