@qping/plugin-bus 0.5.0 → 0.8.0
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/actions.d.ts +3 -0
- package/dist/i18n.mjs +129 -105
- package/dist/node.mjs +1 -0
- package/dist/webClient.mjs +129 -105
- package/package.json +2 -2
- package/src/actions.ts +4 -0
- package/src/i18n.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qping/plugin-bus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "v3 message-bus runtime for MyTools plugins (named-pipe transport).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"i18next": "^
|
|
49
|
+
"i18next": "^26.4.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
package/src/actions.ts
CHANGED
|
@@ -144,6 +144,8 @@ export type ActionDefinition<TItem = any> = {
|
|
|
144
144
|
title: LocalizedText;
|
|
145
145
|
description?: LocalizedText;
|
|
146
146
|
hotkey?: Hotkey;
|
|
147
|
+
/** Keep this action visible in the host action bar instead of the overflow menu. */
|
|
148
|
+
pinned?: boolean;
|
|
147
149
|
execute: (context: ActionContext<TItem>) => ActionOutcome | void | Promise<ActionOutcome | void>;
|
|
148
150
|
};
|
|
149
151
|
|
|
@@ -153,6 +155,7 @@ export type ActionManifestEntry = {
|
|
|
153
155
|
title: LocalizedText;
|
|
154
156
|
description?: LocalizedText;
|
|
155
157
|
hotkey?: Hotkey;
|
|
158
|
+
pinned?: boolean;
|
|
156
159
|
};
|
|
157
160
|
|
|
158
161
|
export function toActionManifest(definition: ActionDefinition): ActionManifestEntry {
|
|
@@ -162,5 +165,6 @@ export function toActionManifest(definition: ActionDefinition): ActionManifestEn
|
|
|
162
165
|
};
|
|
163
166
|
if (definition.description) entry.description = definition.description;
|
|
164
167
|
if (definition.hotkey) entry.hotkey = definition.hotkey;
|
|
168
|
+
if (definition.pinned) entry.pinned = true;
|
|
165
169
|
return entry;
|
|
166
170
|
}
|
package/src/i18n.ts
CHANGED
|
@@ -43,9 +43,8 @@ class MyToolsI18n {
|
|
|
43
43
|
void this.#instance.init({
|
|
44
44
|
lng: this.#locale,
|
|
45
45
|
fallbackLng: this.#fallbackLocale,
|
|
46
|
-
|
|
46
|
+
initAsync: false,
|
|
47
47
|
debug: false,
|
|
48
|
-
showSupportNotice: false,
|
|
49
48
|
keySeparator: false,
|
|
50
49
|
nsSeparator: false,
|
|
51
50
|
interpolation: { escapeValue: false },
|