siyuan 1.0.7 → 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,5 +1,19 @@
1
1
  # Changelog
2
2
 
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)
10
+
11
+ ## v1.0.8 2024-12-24
12
+
13
+ * [Add plugin function `getAllModels`](https://github.com/siyuan-note/siyuan/issues/13579)
14
+ * [Add `renderAVAttribute` method to Protyle](https://github.com/siyuan-note/siyuan/pull/13547)
15
+ * [Remove Sentry reporting diagnostic data](https://github.com/siyuan-note/siyuan/issues/13522)
16
+
3
17
  ## v1.0.7 2024-12-10
4
18
 
5
19
  * [Support HarmonyOS NEXT system](https://github.com/siyuan-note/siyuan/issues/13184)
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "1.0.7",
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";
@@ -289,6 +289,22 @@ export function exitSiYuan(): void
289
289
 
290
290
  export function getAllEditor(): Protyle[]
291
291
 
292
+ export function getAllModels(): {
293
+ editor: [],
294
+ graph: [],
295
+ asset: [],
296
+ outline: [],
297
+ backlink: [],
298
+ search: [],
299
+ inbox: [],
300
+ files: [],
301
+ bookmark: [],
302
+ tag: [],
303
+ custom: [],
304
+ }
305
+
306
+ export function openSetting(app: App): Dialog | undefined;
307
+
292
308
  export function getModelByDockType(type: TDock | string): Model | any;
293
309
 
294
310
  /**
@@ -389,11 +405,12 @@ export abstract class Plugin {
389
405
  addCommand(options: ICommand): void;
390
406
 
391
407
  addFloatLayer(options: {
392
- ids: string[],
393
- defIds?: string[],
408
+ refDefs: IRefDefs[],
394
409
  x?: number,
395
410
  y?: number,
396
- targetElement?: HTMLElement
411
+ targetElement?: HTMLElement,
412
+ originalRefBlockIDs?: IObject,
413
+ isBacklink: boolean,
397
414
  }): void;
398
415
 
399
416
  updateCards(options: ICardData): Promise<ICardData> | ICardData;
package/types/config.d.ts CHANGED
@@ -1527,10 +1527,6 @@ export namespace Config {
1527
1527
  * Operating system platform name
1528
1528
  */
1529
1529
  osPlatform: string;
1530
- /**
1531
- * Whether to upload error logs
1532
- */
1533
- uploadErrLog: boolean;
1534
1530
  /**
1535
1531
  * The absolute path of the workspace directory
1536
1532
  */
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?: {
@@ -606,4 +607,6 @@ export class Protyle {
606
607
  public disable(): void
607
608
 
608
609
  public enable(): void
610
+
611
+ public renderAVAttribute(element: HTMLElement, id: string, cb?: (element: HTMLElement) => void): void
609
612
  }