siyuan 1.0.8 → 1.0.9

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,12 @@
1
1
  # Changelog
2
2
 
3
- ## v1.0.9 2025-01
3
+ ## v1.1.0 2025-03
4
+
5
+ ## v1.0.9 2025-02-11
6
+
7
+ * [Backlink count at the doc block title including sub-blocks](https://github.com/siyuan-note/siyuan/issues/13791)
8
+ * [Improve list item, super block and blockquote backlink propagation](https://github.com/siyuan-note/siyuan/issues/13776)
9
+ * [Add plugin function `openSetting`](https://github.com/siyuan-note/siyuan/pull/13761)
4
10
 
5
11
  ## v1.0.8 2024-12-24
6
12
 
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "1.0.8",
15
+ "version": "1.0.9",
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "git+https://github.com/siyuan-note/petal.git"
package/siyuan.d.ts CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  App,
21
21
  Files,
22
22
  Tab, Model,
23
- IMenuItem,
23
+ IMenuItem, IRefDefs,
24
24
  } from "./types";
25
25
 
26
26
  export * from "./types";
@@ -303,6 +303,8 @@ export function getAllModels(): {
303
303
  custom: [],
304
304
  }
305
305
 
306
+ export function openSetting(app: App): Dialog | undefined;
307
+
306
308
  export function getModelByDockType(type: TDock | string): Model | any;
307
309
 
308
310
  /**
@@ -403,11 +405,12 @@ export abstract class Plugin {
403
405
  addCommand(options: ICommand): void;
404
406
 
405
407
  addFloatLayer(options: {
406
- ids: string[],
407
- defIds?: string[],
408
+ refDefs: IRefDefs[],
408
409
  x?: number,
409
410
  y?: number,
410
- targetElement?: HTMLElement
411
+ targetElement?: HTMLElement,
412
+ originalRefBlockIDs?: IObject,
413
+ isBacklink: boolean,
411
414
  }): void;
412
415
 
413
416
  updateCards(options: ICardData): Promise<ICardData> | ICardData;
package/types/index.d.ts CHANGED
@@ -148,6 +148,11 @@ export interface IOperation {
148
148
  removeDest?: boolean // removeAttrViewCol 专享
149
149
  }
150
150
 
151
+ export interface IRefDefs {
152
+ refID: string,
153
+ defIDs?: string[]
154
+ }
155
+
151
156
  export interface IPosition {
152
157
  x: number,
153
158
  y: number,
@@ -206,6 +211,7 @@ export interface ISiyuan {
206
211
  }[]
207
212
  },
208
213
  dragElement?: HTMLElement,
214
+ currentDragOverTabHeadersElement?: HTMLElement,
209
215
  layout?: {
210
216
  layout?: Layout,
211
217
  centerLayout?: Layout,
@@ -95,6 +95,7 @@ export interface IProtyleOptions {
95
95
  mode?: TEditorMode,
96
96
  blockId?: string
97
97
  rootId?: string
98
+ originalRefBlockIDs?: IObject
98
99
  key?: string
99
100
  defId?: string
100
101
  render?: {