@qping/plugin-bus 0.5.0 → 0.7.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 +1 -1
- package/dist/node.mjs +1 -0
- package/dist/webClient.mjs +1 -1
- package/package.json +1 -1
- package/src/actions.ts +4 -0
package/dist/actions.d.ts
CHANGED
|
@@ -212,6 +212,8 @@ export type ActionDefinition<TItem = any> = {
|
|
|
212
212
|
title: LocalizedText;
|
|
213
213
|
description?: LocalizedText;
|
|
214
214
|
hotkey?: Hotkey;
|
|
215
|
+
/** Keep this action visible in the host action bar instead of the overflow menu. */
|
|
216
|
+
pinned?: boolean;
|
|
215
217
|
execute: (context: ActionContext<TItem>) => ActionOutcome | void | Promise<ActionOutcome | void>;
|
|
216
218
|
};
|
|
217
219
|
/** The registry shape sent to the host in the initialize response (no `execute`). */
|
|
@@ -220,6 +222,7 @@ export type ActionManifestEntry = {
|
|
|
220
222
|
title: LocalizedText;
|
|
221
223
|
description?: LocalizedText;
|
|
222
224
|
hotkey?: Hotkey;
|
|
225
|
+
pinned?: boolean;
|
|
223
226
|
};
|
|
224
227
|
export declare function toActionManifest(definition: ActionDefinition): ActionManifestEntry;
|
|
225
228
|
export {};
|
package/dist/i18n.mjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -626,6 +626,7 @@ function toActionManifest(definition) {
|
|
|
626
626
|
};
|
|
627
627
|
if (definition.description) entry.description = definition.description;
|
|
628
628
|
if (definition.hotkey) entry.hotkey = definition.hotkey;
|
|
629
|
+
if (definition.pinned) entry.pinned = true;
|
|
629
630
|
return entry;
|
|
630
631
|
}
|
|
631
632
|
|
package/dist/webClient.mjs
CHANGED
package/package.json
CHANGED
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
|
}
|