siyuan 0.9.6 → 0.9.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 0.9.7 2024-03
3
+ ## v0.9.9 2024-05
4
+
5
+ ## v0.9.8 2024-04-30
6
+
7
+ * [Add `editors` to the plugin's `Custom` class](https://github.com/siyuan-note/siyuan/issues/11072)
8
+ * [Add `direction` to plugin method `Setting.addItem`](https://github.com/siyuan-note/siyuan/issues/11183)
9
+
10
+ ## v0.9.7 2024-04-02
11
+
12
+ * [Add `global.siyuan.config` type definition](https://github.com/siyuan-note/petal/pull/27)
4
13
 
5
14
  ## 0.9.6 2024-03-19
6
15
 
package/package.json CHANGED
@@ -12,6 +12,6 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "0.9.6",
15
+ "version": "0.9.8",
16
16
  "repository": "https://github.com/siyuan-note/petal"
17
17
  }
package/siyuan.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./types";
2
2
 
3
3
  import {IProtyle, Lute, Protyle, Toolbar, IProtyleOption, TProtyleAction} from "./types/protyle";
4
+ import {Config} from "./types/config";
4
5
  import {IMenuBaseDetail} from "./types/events";
5
6
  import {IGetDocInfo, IGetTreeStat} from "./types/response";
6
7
 
@@ -64,8 +65,13 @@ export type TAVCol =
64
65
  | "email"
65
66
  | "phone"
66
67
 
68
+ export interface ISiyuan {
69
+ config: Config.IConf;
70
+ }
71
+
67
72
  export interface Global {
68
73
  Lute: typeof Lute;
74
+ siyuan: ISiyuan;
69
75
  }
70
76
 
71
77
  interface IKeymapItem {
@@ -230,6 +236,7 @@ export interface ICustomModel extends IModel {
230
236
  data: any;
231
237
  type: string;
232
238
  element: HTMLElement;
239
+ editors: Protyle[]; // 系统内部处理快捷键等操作需要用到 https://github.com/siyuan-note/siyuan/issues/11072
233
240
 
234
241
  init(): void;
235
242
 
@@ -580,6 +587,7 @@ export class Setting {
580
587
 
581
588
  addItem(options: {
582
589
  title: string,
590
+ direction?: "column" | "row"
583
591
  description?: string,
584
592
  actionElement?: HTMLElement,
585
593
  createActionElement?(): HTMLElement,