siyuan 0.9.7 → 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,8 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 0.9.9 2024-04
3
+ ## v0.9.9 2024-05
4
4
 
5
- ## 0.9.7 2024-04-02
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
6
11
 
7
12
  * [Add `global.siyuan.config` type definition](https://github.com/siyuan-note/petal/pull/27)
8
13
 
package/package.json CHANGED
@@ -12,6 +12,6 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "0.9.7",
15
+ "version": "0.9.8",
16
16
  "repository": "https://github.com/siyuan-note/petal"
17
17
  }
package/siyuan.d.ts CHANGED
@@ -236,6 +236,7 @@ export interface ICustomModel extends IModel {
236
236
  data: any;
237
237
  type: string;
238
238
  element: HTMLElement;
239
+ editors: Protyle[]; // 系统内部处理快捷键等操作需要用到 https://github.com/siyuan-note/siyuan/issues/11072
239
240
 
240
241
  init(): void;
241
242
 
@@ -586,6 +587,7 @@ export class Setting {
586
587
 
587
588
  addItem(options: {
588
589
  title: string,
590
+ direction?: "column" | "row"
589
591
  description?: string,
590
592
  actionElement?: HTMLElement,
591
593
  createActionElement?(): HTMLElement,