xyne-plugin 1.2.17 → 1.2.19

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/hooks.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyne-plugin",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "SDK for writing Xyne plugins — define custom tools, hooks, and extensions",
5
5
  "type": "module",
6
6
  "exports": {
package/src/hooks.ts CHANGED
@@ -242,6 +242,13 @@ export type AuthHook = {
242
242
  // ─── Hook definitions ────────────────────────────────────────────────────────
243
243
 
244
244
  export interface Hooks {
245
+ /**
246
+ * Plugin dependencies — package names that must be installed.
247
+ * If missing, the system auto-adds them to the plugins config and installs them.
248
+ * Example: ["xyne-plugin-spaces"]
249
+ */
250
+ dependencies?: string[]
251
+
245
252
  /** Subscribe to bus events. */
246
253
  event?: (input: { event: unknown }) => Promise<void>
247
254