siyuan 1.1.0 → 1.1.1

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,11 @@
1
1
  # Changelog
2
2
 
3
- ## v1.1.1 2025-03
3
+ ## v1.1.2 2025-05
4
+
5
+ ## v1.1.1 2025-04-08
6
+
7
+ * [Add plugin function `globalCommand`](https://github.com/siyuan-note/siyuan/issues/14499)
8
+ * [Add plugin function `openAttributePanel`](https://github.com/siyuan-note/siyuan/issues/14276)
4
9
 
5
10
  ## v1.1.0 2025-03-04
6
11
 
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "1.1.0",
15
+ "version": "1.1.1",
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "git+https://github.com/siyuan-note/petal.git"
package/siyuan.d.ts CHANGED
@@ -309,7 +309,27 @@ export function openSetting(app: App): Dialog | undefined;
309
309
  export function getModelByDockType(type: TDock | string): Model | any;
310
310
 
311
311
  /**
312
- * @param timeout - ms. 0: manual close;-1: always show; 6000: default
312
+ * @param {IObject} [options.data] - 块属性值
313
+ * @param {HTMLElement} [options.nodeElement] - 块元素
314
+ * @param {"bookmark" | "name" | "alias" | "memo" | "av" | "custom"} [options.focusName="bookmark"] - av 为数据库页签,custom 为自定义页签,其余为内置输入框
315
+ * @param {IProtyle} [options.protyle] - 有数据库时需要传入 protyle
316
+ */
317
+ export function openAttributePanel(options: {
318
+ data?: IObject
319
+ nodeElement?: HTMLElement,
320
+ focusName: "bookmark" | "name" | "alias" | "memo" | "av" | "custom",
321
+ protyle?: IProtyle,
322
+ }): void;
323
+
324
+ /**
325
+ * 全局命令
326
+ * @param {string} command - 命令名称 https://github.com/siyuan-note/siyuan/blob/master/app/src/boot/globalEvent/command/global.ts#L71
327
+ * @param {App} app
328
+ */
329
+ export function globalCommand(command: string, app: App): void;
330
+
331
+ /**
332
+ * @param {number} [timeout=6000] - ms. 0: manual close;-1: always show;
313
333
  * @param {string} [type=info]
314
334
  */
315
335
  export function showMessage(text: string, timeout?: number, type?: "info" | "error", id?: string): void;